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)
committerLeon Romanovsky <leon@kernel.org>
Wed, 11 Sep 2024 11:56:19 +0000 (14:56 +0300)
commit8c6d097d830f779fc1725fbaa1314f20a7a07b4b
treea6fd3e80daaec9a1e6583e4c23837e26b41daa99
parent64c68385a39bb676c76da36164ab696e8da78842
RDMA/mlx5: Enforce umem boundaries for explicit ODP page faults

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>
drivers/infiniband/hw/mlx5/odp.c