WSL2-Linux-Kernel/drivers/infiniband/hw/mlx5
Chiara Meiohas f8241991d9 RDMA/mlx5: Set mkeys for dmabuf at PAGE_SIZE
[ Upstream commit a4e540119be565f47c305f295ed43f8e0bc3f5c3 ]

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-19 05:45:04 +02:00
..
Kconfig
Makefile
ah.c
cmd.c
cmd.h
cong.c
counters.c
counters.h
cq.c
devx.c RDMA/mlx5: Relax DEVX access upon modify commands 2024-03-26 18:21:12 -04:00
devx.h
dm.c
dm.h
doorbell.c
fs.c
fs.h
gsi.c
ib_rep.c
ib_rep.h
ib_virt.c
mad.c RDMA/mlx5: Fix port number for counter query in multi-port configuration 2024-04-27 17:05:25 +02:00
main.c RDMA/mlx5: Fix NULL string error 2023-10-10 21:59:09 +02:00
mem.c
mlx5_ib.h RDMA/mlx5: Set mkeys for dmabuf at PAGE_SIZE 2024-08-19 05:45:04 +02:00
mr.c RDMA/mlx5: Adding remote atomic access flag to updatable flags 2024-06-16 13:39:30 +02:00
odp.c RDMA/mlx5: Set mkeys for dmabuf at PAGE_SIZE 2024-08-19 05:45:04 +02:00
qos.c
qp.c IB/mlx5: Fix rdma counter binding for RAW QP 2023-11-20 11:08:23 +01:00
qp.h
qpc.c
restrack.c
restrack.h
srq.c RDMA/mlx5: Add check for srq max_sge attribute 2024-07-05 09:14:33 +02:00
srq.h
srq_cmd.c
std_types.c
wr.c RDMA/mlx5: Fix fortify source warning while accessing Eth segment 2024-03-26 18:21:12 -04:00
wr.h