OSDN Git Service

RDMA/mlx5: Sync device with CPU pages upon ODP MR registration
authorYishai Hadas <yishaih@nvidia.com>
Wed, 30 Sep 2020 16:38:28 +0000 (19:38 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 1 Oct 2020 19:44:44 +0000 (16:44 -0300)
commita03bfc37d59de316436c46f5691c5a972ed57c82
treee6bcbb94a36904422bf2ab61fd8969df5db6966d
parent677cf51f71c97bcf98852aa2077d7289bc73e3b3
RDMA/mlx5: Sync device with CPU pages upon ODP MR registration

Sync device with CPU pages upon ODP MR registration. mlx5 already has to
zero the HW's version of the PAS list, may as well deliver a PAS list that
matches the current CPU page tables configuration.

Link: https://lore.kernel.org/r/20200930163828.1336747-5-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c