Skip to content

RFC dma-buf private interconnect POC

Thomas Hellström dri-devel intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 patches 13 repliesIn review
  2. v1 RFC2 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Get rid of void pointers and instead provide generic structures that are intended to be embedded / subclassed for each interconnect implementation.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dma-buf: Add support for private interconnectsinclude/linux/dma-buf.h+51 -013 replies
2/2drm/xe/dma-buf: Add generic interconnect support frameworkdrivers/gpu/drm/xe/tests/xe_dma_buf.c drivers/gpu/drm/xe/xe_dma_buf.c drivers/gpu/drm/xe/xe_dma_buf.h +1 more+104 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC PATCH v2 0/2] dma-buf private interconnect POC

Two patches to implement a generic framework for dma-buf to support local private interconnects, in particular interconnects that are not driver-private.

The interconnect support is negotiated as part of an attachment and is not a property of the dma-buf itself. Just like pcie p2p support.

The first patch adds members to the dma_buf_attach_ops and to the dma_buf_attachment structure. These are needed for generic check of interconnect support, typically when an interconnect is shared between drivers. For truly driver-private interconnects they are not strictly needed, but still could be convenient.

The second patch implements an interconnect negotiation for xe, without actually changing the protocol itself from pcie_p2p. Just as an example. This patch is not intended to be merged.

Note: This RFC only deals with interconnect negotiation. The attachment state and what data-structure to use to convey the mapping information is not dealt with in this RFC.

v2:
- Get rid of void pointers and instead provide generic structures that are intended to be embedded / subclassed for each interconnect implementation.

Thomas Hellström (2):
dma-buf: Add support for private interconnects drm/xe/dma-buf: Add generic interconnect support framework

 drivers/gpu/drm/xe/tests/xe_dma_buf.c | 12 ++---
 drivers/gpu/drm/xe/xe_dma_buf.c       | 73 ++++++++++++++++++++++++---
 drivers/gpu/drm/xe/xe_dma_buf.h       |  1 -
 drivers/gpu/drm/xe/xe_interconnect.h  | 31 ++++++++++++
 include/linux/dma-buf.h               | 51 +++++++++++++++++++
 5 files changed, 155 insertions(+), 13 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_interconnect.h
Signature · 1 line
2.51.0