On Wed, Sep 08, 2021 at 05:41:39PM +0900, Shunsuke Mie wrote:
2021年9月8日(水) 16:20 Christoph Hellwig <hch@xxxxxxxxxxxxx>:Well, that is the whole problem.
On Wed, Sep 08, 2021 at 04:01:14PM +0900, Shunsuke Mie wrote:I thought of that way too. In that case, the memory region is constrained by the
Thank you for your comment.Which means for rxe you'd also have to pass the one for the underlying
On Wed, Sep 08, 2021 at 03:16:09PM +0900, Shunsuke Mie wrote:As described in the dma-buf api guide [1], the dma_device is used by dma-buf
To share memory space using dma-buf, a API of the dma-buf requires dmaSo if dma-buf doesn't actually need a device to dma map why do we ever
device, but devices such as rxe do not have a dma device. For those case,
change to specify a device of struct ib instead of the dma device.
pass the dma_device here? Something does not add up.
exporter to know the device buffer constraints of importer.
[1] https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flwn.net%2FArticles%2F489703%2F&data=04%7C01%7Cchristian.koenig%40amd.com%7C4d18470a94df4ed24c8108d972ba5591%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637666967356417448%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=ARwQyo%2BCjMohaNbyREofToHIj2bndL5L0HaU9cOrYq4%3D&reserved=0
net device.
net device, but rxe driver copies data using CPU. To avoid the constraints, I
decided to use the ib device.
We can't mix the dmabuf stuff people are doing that doesn't fill in
the CPU pages in the SGL with RXE - it is simply impossible as things
currently are for RXE to acess this non-struct page memory.
Jason