RDMA/mlx5: Support dma-buf based userspace memory region
authorJianxin Xiong <jianxin.xiong@intel.com>
Tue, 15 Dec 2020 21:27:16 +0000 (13:27 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 20 Jan 2021 20:49:25 +0000 (16:49 -0400)
commit90da7dc8206a5999a23af719733f1cda26b5f815
tree22f7e7c82ef004e02549a018ad7306ae16ee1ea1
parentbfe0cc6eb2491aeae2bba02a305fcce13cd90624
RDMA/mlx5: Support dma-buf based userspace memory region

Implement the new driver method 'reg_user_mr_dmabuf'.  Utilize the core
functions to import dma-buf based memory region and update the mappings.

Add code to handle dma-buf related page fault.

Link: https://lore.kernel.org/r/1608067636-98073-5-git-send-email-jianxin.xiong@intel.com
Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Acked-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Acked-by: Christian Koenig <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c
drivers/infiniband/hw/mlx5/odp.c