]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/mlx5: Enforce umem boundaries for explicit ODP page faults
authorMichael Guralnik <michaelgur@nvidia.com>
Mon, 9 Sep 2024 10:05:00 +0000 (13:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:07 +0000 (12:50 +0100)
commit95b4474c93a0c3ce555eef591ae408326b76d20b
tree9e7f0693a6a86378196f8b9c1d354457367491f2
parentfe090e183d263be2ac7785aa27f376bff2657c98
RDMA/mlx5: Enforce umem boundaries for explicit ODP page faults

[ Upstream commit 8c6d097d830f779fc1725fbaa1314f20a7a07b4b ]

The new memory scheme page faults are requesting the driver to fetch
additinal pages to the faulted memory access.
This is done in order to prefetch pages before and after the area that
got the page fault, assuming this will reduce the total amount of page
faults.

The driver should ensure it handles only the pages that are within the
umem range.

Signed-off-by: Michael Guralnik <michaelgur@nvidia.com>
Link: https://patch.msgid.link/20240909100504.29797-5-michaelgur@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Stable-dep-of: 235f23840219 ("RDMA/mlx5: Fix indirect mkey ODP page count")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/odp.c