* [PATCH] Revert duplicate "drm/amdgpu: disable peer-to-peer access for DCC-enabled GC12 VRAM surfaces"
@ 2025-12-22 17:42 Peter Colberg
2026-01-08 20:08 ` Alex Deucher
0 siblings, 1 reply; 2+ messages in thread
From: Peter Colberg @ 2025-12-22 17:42 UTC (permalink / raw)
To: Alex Deucher, Christian König, David Airlie, Simona Vetter,
Dave Airlie
Cc: amd-gfx, dri-devel, linux-kernel, Peter Colberg
This reverts commit 22a36e660d014925114feb09a2680bb3c2d1e279 once,
which was merged twice due to an incorrect backmerge resolution.
Fixes: ce0478b02ed2 ("Merge tag 'v6.18-rc6' into drm-next")
Signed-off-by: Peter Colberg <pcolberg@redhat.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
index e22cfa7c6d32f286de94c6e0947c20db41894b68..c1461317eb29877446e69562a58e17a77203a79e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
@@ -83,18 +83,6 @@ static int amdgpu_dma_buf_attach(struct dma_buf *dmabuf,
struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);
int r;
- /*
- * Disable peer-to-peer access for DCC-enabled VRAM surfaces on GFX12+.
- * Such buffers cannot be safely accessed over P2P due to device-local
- * compression metadata. Fallback to system-memory path instead.
- * Device supports GFX12 (GC 12.x or newer)
- * BO was created with the AMDGPU_GEM_CREATE_GFX12_DCC flag
- *
- */
- if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(12, 0, 0) &&
- bo->flags & AMDGPU_GEM_CREATE_GFX12_DCC)
- attach->peer2peer = false;
-
/*
* Disable peer-to-peer access for DCC-enabled VRAM surfaces on GFX12+.
* Such buffers cannot be safely accessed over P2P due to device-local
---
base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
change-id: 20251222-fix-duplicate-amdgpu-44017b1535eb
Best regards,
--
Peter Colberg <pcolberg@redhat.com>
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] Revert duplicate "drm/amdgpu: disable peer-to-peer access for DCC-enabled GC12 VRAM surfaces"
2025-12-22 17:42 [PATCH] Revert duplicate "drm/amdgpu: disable peer-to-peer access for DCC-enabled GC12 VRAM surfaces" Peter Colberg
@ 2026-01-08 20:08 ` Alex Deucher
0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2026-01-08 20:08 UTC (permalink / raw)
To: Peter Colberg
Cc: Alex Deucher, Christian König, David Airlie, Simona Vetter,
Dave Airlie, amd-gfx, dri-devel, linux-kernel
On Mon, Dec 22, 2025 at 12:51 PM Peter Colberg <pcolberg@redhat.com> wrote:
>
> This reverts commit 22a36e660d014925114feb09a2680bb3c2d1e279 once,
> which was merged twice due to an incorrect backmerge resolution.
>
> Fixes: ce0478b02ed2 ("Merge tag 'v6.18-rc6' into drm-next")
> Signed-off-by: Peter Colberg <pcolberg@redhat.com>
Applied. Thanks!
Alex
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 12 ------------
> 1 file changed, 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> index e22cfa7c6d32f286de94c6e0947c20db41894b68..c1461317eb29877446e69562a58e17a77203a79e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
> @@ -83,18 +83,6 @@ static int amdgpu_dma_buf_attach(struct dma_buf *dmabuf,
> struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);
> int r;
>
> - /*
> - * Disable peer-to-peer access for DCC-enabled VRAM surfaces on GFX12+.
> - * Such buffers cannot be safely accessed over P2P due to device-local
> - * compression metadata. Fallback to system-memory path instead.
> - * Device supports GFX12 (GC 12.x or newer)
> - * BO was created with the AMDGPU_GEM_CREATE_GFX12_DCC flag
> - *
> - */
> - if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(12, 0, 0) &&
> - bo->flags & AMDGPU_GEM_CREATE_GFX12_DCC)
> - attach->peer2peer = false;
> -
> /*
> * Disable peer-to-peer access for DCC-enabled VRAM surfaces on GFX12+.
> * Such buffers cannot be safely accessed over P2P due to device-local
>
> ---
> base-commit: 9448598b22c50c8a5bb77a9103e2d49f134c9578
> change-id: 20251222-fix-duplicate-amdgpu-44017b1535eb
>
> Best regards,
> --
> Peter Colberg <pcolberg@redhat.com>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-01-08 20:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-22 17:42 [PATCH] Revert duplicate "drm/amdgpu: disable peer-to-peer access for DCC-enabled GC12 VRAM surfaces" Peter Colberg
2026-01-08 20:08 ` Alex Deucher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®