linux-imx/drivers/infiniband
Chiara Meiohas 93090f08cf RDMA/mlx5: Set mkeys for dmabuf at PAGE_SIZE
[ Upstream commit a4e540119b ]

Set the mkey for dmabuf at PAGE_SIZE to support any SGL
after a move operation.

ib_umem_find_best_pgsz returns 0 on error, so it is
incorrect to check the returned page_size against PAGE_SIZE

Fixes: 90da7dc820 ("RDMA/mlx5: Support dma-buf based userspace memory region")
Signed-off-by: Chiara Meiohas <cmeiohas@nvidia.com>
Reviewed-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://lore.kernel.org/r/1e2289b9133e89f273a4e68d459057d032cbc2ce.1718301631.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-03 08:53:57 +02:00
..
core IB/core: Implement a limit on UMAD receive List 2024-07-11 12:49:03 +02:00
hw RDMA/mlx5: Set mkeys for dmabuf at PAGE_SIZE 2024-08-03 08:53:57 +02:00
sw RDMA/rxe: Fix data copy for IB_SEND_INLINE 2024-06-27 13:49:12 +02:00
ulp RDMA/IPoIB: Fix format truncation compilation errors 2024-06-12 11:12:11 +02:00
Kconfig RDMA: Disable IB HW for UML 2022-12-04 15:22:03 +02:00
Makefile