RDMA/efa: Add support for dmabuf memory regions
authorGal Pressman <galpress@amazon.com>
Tue, 12 Oct 2021 12:09:03 +0000 (15:09 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 28 Oct 2021 11:58:26 +0000 (08:58 -0300)
commit66f4817b5712eb8783916dc6c2005aac7e5e6928
treebba50ab47a6d4160d6c9cc6804f3ab101e5f1490
parent1e4df4a21c5ac722df1099eee30cad9246c889b5
RDMA/efa: Add support for dmabuf memory regions

Implement a dmabuf importer for the EFA driver. As ODP is not supported,
the pinned dmabuf are used to prevent the move_notify callback from being
called.

Link: https://lore.kernel.org/r/20211012120903.96933-4-galpress@amazon.com
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/efa/efa.h
drivers/infiniband/hw/efa/efa_main.c
drivers/infiniband/hw/efa/efa_verbs.c