From: Christopher James Halse Rogers
BOs shared via dma-buf, either imported or exported, cannot sensibly be
migrated to VRAM
without breaking the dma-buf sharing. Refuse userspace requests to migrate to
VRAM,
ensure such BOs are not migrated during command submission, and refuse to pin
them
t
From: Christopher James Halse Rogers
Signed-off-by: Christopher James Halse Rogers
---
drivers/gpu/drm/radeon/radeon.h | 1 +
drivers/gpu/drm/radeon/radeon_prime.c | 6 ++
2 files changed, 7 insertions(+)
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
From: Christopher James Halse Rogers
Migration to VRAM will break the sharing, resulting in rendering on the
exporting GPU never becoming
visible on the importing GPU.
v2: Don't pin BOs to GTT. Instead, refuse to migrate them out of GTT.
Signed-off-by: Christopher James Halse Rogers
---
dri
From: Christopher James Halse Rogers
Any use of the framebuffer will migrate it to VRAM, which is not sensible for
an imported dma-buf.
v2: Use DRM_DEBUG_KMS to prevent userspace accidentally spamming dmesg.
Signed-off-by: Christopher James Halse Rogers
CC: amd-gfx@lists.freedesktop.org
---
From: Christopher James Halse Rogers
Any use of the framebuffer will migrate it to VRAM, which is not sensible for
an imported dma-buf.
v2: Use DRM_DEBUG_KMS to prevent userspace accidentally spamming dmesg.
Signed-off-by: Christopher James Halse Rogers
CC: amd-gfx@lists.freedesktop.org
---
From: Christopher James Halse Rogers
Attempting to migrate the bo will break the sharing of the buffer.
Signed-off-by: Christopher James Halse Rogers
CC: amd-gfx@lists.freedesktop.org
---
drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 11 +++
1 file changed, 11 insertions(+)
diff --git
From: Christopher James Halse Rogers
Attempting to migrate the bo will break the sharing of the buffer.
Signed-off-by: Christopher James Halse Rogers
CC: amd-gfx@lists.freedesktop.org
---
drivers/gpu/drm/radeon/radeon_prime.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/dri
From: Christopher James Halse Rogers
Any use of the framebuffer will migrate it to VRAM, which is not sensible for
an imported dma-buf.
Signed-off-by: Christopher James Halse Rogers
CC: amd-gfx@lists.freedesktop.org
---
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 6 ++
1 file changed, 6
From: Christopher James Halse Rogers
Any use of the framebuffer will migrate it to VRAM, which is not sensible for
an imported dma-buf.
Signed-off-by: Christopher James Halse Rogers
CC: amd-gfx@lists.freedesktop.org
---
drivers/gpu/drm/radeon/radeon_display.c | 6 ++
1 file changed, 6 ins