linux/drivers/infiniband/core
Jianxin Xiong 368c0159d4 RDMA/umem: Support importing dma-buf as user memory region
Dma-buf is a standard cross-driver buffer sharing mechanism that can be
used to support peer-to-peer access from RDMA devices.

Device memory exported via dma-buf is associated with a file descriptor.
This is passed to the user space as a property associated with the buffer
allocation. When the buffer is registered as a memory region, the file
descriptor is passed to the RDMA driver along with other parameters.

Implement the common code for importing dma-buf object and mapping dma-buf
pages.

Link: https://lore.kernel.org/r/1608067636-98073-2-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>
2021-01-20 16:07:52 -04:00
..
addr.c
agent.c
agent.h
cache.c RDMA/core/cache: Fix some misspellings, missing and superfluous param descriptions 2021-01-19 20:33:40 -04:00
cgroup.c
cm.c RDMA 5.11 pull request 2020-12-16 13:42:26 -08:00
cm_msgs.h
cm_trace.c
cm_trace.h
cma.c RDMA/cma: Don't overwrite sgid_attr after device is released 2020-12-14 15:23:06 -04:00
cma_configfs.c Merge branch 'devx_set_get' into rdma.git for-next 2021-01-19 10:55:19 -04:00
cma_priv.h
cma_trace.c
cma_trace.h
core_priv.h
counters.c RDMA/core/counters: Demote non-conformant kernel-doc headers 2021-01-19 20:33:44 -04:00
cq.c
device.c RDMA/core: device: Fix formatting in worthy kernel-doc header and demote another 2021-01-19 20:33:40 -04:00
ib_core_uverbs.c
iwcm.c
iwcm.h
iwpm_msg.c RDMA/core/iwpm_msg: Add proper descriptions for 'skb' param 2021-01-19 20:33:44 -04:00
iwpm_util.c RDMA/core/iwpm_util: Fix some param description misspellings 2021-01-19 20:33:44 -04:00
iwpm_util.h
lag.c
mad.c
mad_priv.h
mad_rmpp.c
mad_rmpp.h
Makefile RDMA/umem: Support importing dma-buf as user memory region 2021-01-20 16:07:52 -04:00
mr_pool.c
multicast.c RDMA/core/multicast: Provide description for 'ib_init_ah_from_mcmember()'s 'rec' param 2021-01-19 20:33:42 -04:00
netlink.c
nldev.c RDMA/nldev: Return an error message on failure to turn auto mode 2021-01-18 16:02:14 -04:00
opa_smi.h
packer.c
rdma_core.c
rdma_core.h
restrack.c RDMA/core/restrack: Fix kernel-doc formatting issue 2021-01-19 20:33:43 -04:00
restrack.h
roce_gid_mgmt.c RDMA/core/roce_gid_mgmt: Fix misnaming of 'rdma_roce_rescan_device()'s param 'ib_dev' 2021-01-19 20:33:41 -04:00
rw.c RDMA: Use kzalloc for allocating only one thing 2021-01-07 16:47:53 -04:00
sa.h
sa_query.c RDMA/core/sa_query: Demote non-conformant kernel-doc header 2021-01-19 20:33:42 -04:00
security.c
smi.c
smi.h
sysfs.c
trace.c
ucma.c RDMA/ucma: Do not miss ctx destruction steps in some cases 2021-01-06 17:15:15 -04:00
ud_header.c
umem.c RDMA/umem: Support importing dma-buf as user memory region 2021-01-20 16:07:52 -04:00
umem_dmabuf.c RDMA/umem: Support importing dma-buf as user memory region 2021-01-20 16:07:52 -04:00
umem_odp.c
user_mad.c
uverbs.h
uverbs_cmd.c
uverbs_ioctl.c
uverbs_main.c
uverbs_marshall.c
uverbs_std_types.c
uverbs_std_types_async_fd.c
uverbs_std_types_counters.c
uverbs_std_types_cq.c
uverbs_std_types_device.c
uverbs_std_types_dm.c
uverbs_std_types_flow_action.c
uverbs_std_types_mr.c
uverbs_std_types_qp.c
uverbs_std_types_srq.c
uverbs_std_types_wq.c
uverbs_uapi.c
verbs.c