Sharing dma-bufs using a driver-private interconnect
Hi!
I previously discussed this with Simona on IRC but would like to get some feedback also from a wider audience:
We're planning to share dma-bufs using a fast interconnect in a way similar to pcie-p2p:
The rough plan is to identify dma-bufs capable of sharing this way by looking at the address of either the dma-buf ops and / or the importer_ops to conclude it's a device using the same driver (or possibly child driver) and then take special action when the dma- addresses are obtained. Nothing visible outside of the xe driver or its child driver.
Are there any absolute "DON'T"s or recommendations to keep in mind WRT to this approach?
Thanks,
Thomas
Hi Thomas,
Quoted 8 lines · Thomas Hellström
Hi!
I previously discussed this with Simona on IRC but would like to get some feedback also from a wider audience:
We're planning to share dma-bufs using a fast interconnect in a way similar to pcie-p2p:
Quoted 6 lines
The rough plan is to identify dma-bufs capable of sharing this way by looking at the address of either the dma-buf ops and / or the
importer_opsto conclude it's a device using the same driver (or possibly child driver) and then take special action when the dma- addresses are obtained. Nothing visible outside of the xe driver or its child driver.
As far as I can see that should work and we have recommended doing exactly that to multiple people in the past.
Quoted 2 lines
Are there any absolute "DON'T"s or recommendations to keep in mind WRT to this approach?
My only requirement is that you write up some documentation (preferable either in drivers/dma-buf/dma-buf.c or Documentation/driver-api/dma-buf.rst) how drivers should do this, what the implications with the rest of the DMA-buf interface is etc... etc...
The goal is to nail down how to do driver private interfaces without breaking interoperability with drivers who don't participate in that.
Regards,
Christian.
Quoted 4 lines
Thanks,
Thomas
)
Quoted 28 lines · Christian König
Hi Thomas,
Quoted 9 lines · Thomas Hellström
Hi!
I previously discussed this with Simona on IRC but would like to get
some feedback also from a wider audience:We're planning to share dma-bufs using a fast interconnect in a way similar to pcie-p2p:
Quoted 8 lines
The rough plan is to identify dma-bufs capable of sharing this way by
looking at the address of either the dma-buf ops and / or theimporter_opsto conclude it's a device using the same driver (or possibly child driver) and then take special action when the dma- addresses are obtained. Nothing visible outside of the xe driver or its
child driver.As far as I can see that should work and we have recommended doing exactly that to multiple people in the past.
Quoted 3 lines
Are there any absolute "DON'T"s or recommendations to keep in mind WRT
to this approach?
Quoted 8 lines
My only requirement is that you write up some documentation (preferable either in
drivers/dma-buf/dma-buf.corDocumentation/driver-api/dma-buf.rst) how drivers should do this, what the implications with the rest of the DMA-buf interface is etc... etc...The goal is to nail down how to do driver private interfaces without breaking interoperability with drivers who don't participate in that.
Ok, Will ensure that we adhere to this.
Thanks,
Thomas
Quoted 12 lines
Regards,
Christian.Quoted 4 lines
Thanks,
Thomas)
_______________________________________________
Linaro-mm-sig mailing list -- [email protected] To unsubscribe send an email to [email protected]