On Sun, 29 Nov 2026 17:25:07 +0200, Edward Srouji wrote:
> Today mlx5 imports every dma-buf as movable. The mkey is sized for the
> worst case, one entry per PAGE_SIZE of the dma-buf, and an invalidation
> zaps the mkey and relies on ODP page faults to map it again. This makes
> dma-buf MRs depend on CONFIG_INFINIBAND_ON_DEMAND_PAGING, and wastes
> translation entries for exporters that never move their memory, such as
> when GPU or device memory is registered for peer-to-peer DMA.
>
> [...]
Applied, thanks!
[1/3] RDMA/uverbs: Permit dma-buf export to work with pinned importers
https://git.kernel.org/rdma/rdma/c/fd94c97b8495c7
[2/3] RDMA/mlx5: Move dma-buf MR init out of ODP-only compilation
https://git.kernel.org/rdma/rdma/c/a460c35a999e00
[3/3] RDMA/mlx5: Try pinned revocable dmabuf import by default
https://git.kernel.org/rdma/rdma/c/bd3cf336bedb1f
Best regards,
--
Leon Romanovsky <[email protected]>