]> www.infradead.org Git - users/dwmw2/linux.git/commit
RDMA/mlx5: Add implicit MR handling to ODP memory scheme
authorMichael Guralnik <michaelgur@nvidia.com>
Mon, 9 Sep 2024 10:05:03 +0000 (13:05 +0300)
committerLeon Romanovsky <leon@kernel.org>
Wed, 11 Sep 2024 11:56:33 +0000 (14:56 +0300)
commit6f2487bfafce5e6cd6f89e7238a82012f7b9f5ac
tree9e61b93627f005f883784a4335d8e3fa39464432
parente4fda2320f8e6bfc74f01770eb95a31cb327cc09
RDMA/mlx5: Add implicit MR handling to ODP memory scheme

Implicit MRs in ODP memory scheme require allocating a private null mkey
and assigning the mkey and va differently in the KSM mkey.
The page faults are received on the null mkey so we also add storing the
null mkey in the odp_mkey xarray.

Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://patch.msgid.link/20240909100504.29797-8-michaelgur@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/odp.c