Re: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-12-09 Thread Jason Gunthorpe
On Tue, Dec 08, 2020 at 06:13:20PM +, Xiong, Jianxin wrote: > > > +static inline struct ib_umem *ib_umem_dmabuf_get(struct ib_device > > > *device, > > > + unsigned long offset, > > > + size_t size, int fd, > >

RE: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-12-08 Thread Xiong, Jianxin
Daniel > > Subject: Re: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user > memory region > > On Tue, Dec 08, 2020 at 06:13:20PM +, Xiong, Jianxin wrote: > > > > > +static inline struct ib_umem

Re: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-12-08 Thread Leon Romanovsky
> > Ledford ; Jason Gunthorpe ; > > Sumit Semwal ; Christian Koenig > > ; Vetter, Daniel > > Subject: Re: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user > > memory region > > > > On Mon, Dec 07, 2020 at 02:15:50PM -0800, Jianxin Xiong wrote

RE: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-12-08 Thread Xiong, Jianxin
l > Subject: Re: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user > memory region > > On Mon, Dec 07, 2020 at 02:15:50PM -0800, Jianxin Xiong wrote: > > Dma-buf is a standard cross-driver buffer sharing mechanism that can > > be used to support peer-to-peer

RE: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-12-07 Thread Xiong, Jianxin
l > Subject: Re: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user > memory region > > On Mon, Dec 07, 2020 at 02:15:50PM -0800, Jianxin Xiong wrote: > > Dma-buf is a standard cross-driver buffer sharing mechanism that can > > be used to support peer-to-peer

Re: [PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-12-07 Thread Leon Romanovsky
On Mon, Dec 07, 2020 at 02:15:50PM -0800, Jianxin Xiong wrote: > 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

[PATCH v13 1/4] RDMA/umem: Support importing dma-buf as user memory region

2020-12-07 Thread Jianxin Xiong
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 buf