diff options
author | Zhu Yanjun <yanjun.zhu@linux.dev> | 2023-02-17 09:14:25 +0800 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2023-02-17 16:36:14 -0400 |
commit | d2225b838ccad126045e048471441693c7bca217 (patch) | |
tree | efc994898c7c214eb8a48e05d89ca9dced51604b /drivers/infiniband/hw/hfi1 | |
parent | 5ef17179da7b779b3029d9a7d3871ba09279d56c (diff) |
RDMA/irdma: Add support for dmabuf pin memory regions
This is a followup to the EFA dmabuf[1]. Irdma driver currently does
not support on-demand-paging(ODP). So it uses habanalabs as the
dmabuf exporter, and irdma as the importer to allow for peer2peer
access through libibverbs.
In this commit, the function ib_umem_dmabuf_get_pinned() is used.
This function is introduced in EFA dmabuf[1] which allows the driver
to get a dmabuf umem which is pinned and does not require move_notify
callback implementation. The returned umem is pinned and DMA mapped
like standard cpu umems, and is released through ib_umem_release().
[1]https://lore.kernel.org/lkml/20211007114018.GD2688930@ziepe.ca/t/
Link: https://lore.kernel.org/r/20230217011425.498847-1-yanjun.zhu@intel.com
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1')
0 files changed, 0 insertions, 0 deletions