drm/amdgpu: note that we can handle peer2peer DMA-buf
authorChristian König <christian.koenig@amd.com>
Thu, 22 Mar 2018 18:21:30 +0000 (19:21 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 1 Apr 2020 07:02:45 +0000 (09:02 +0200)
Importing should work out of the box.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/359293
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c

index ffeb20f11c07caf54eeb5632c6b85b229c221190..aef12ee2f1e32080a87df3243fcb74e87b078f53 100644 (file)
@@ -514,6 +514,7 @@ amdgpu_dma_buf_move_notify(struct dma_buf_attachment *attach)
 }
 
 static const struct dma_buf_attach_ops amdgpu_dma_buf_attach_ops = {
+       .allow_peer2peer = true,
        .move_notify = amdgpu_dma_buf_move_notify
 };