Revert duplicate "drm/amdgpu: disable peer-to-peer access for DCC-enabled GC12 VRAM surfaces"
Subsystems (2)
PATCH 1/1 Revert duplicate "drm/amdgpu: disable peer-to-peer access for DCC-enabled GC12 VRAM surfaces"
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 <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 12 ------------ 1 file changed, 12 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c +0 -12
@@ -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,
Signature · 1 line
Peter Colberg <[email protected]>
Alex Deucher
AppliedQuoted 6 lines · Peter Colberg
This reverts commit
22a36e660d014925114feb09a2680bb3c2d1e279once, 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 <[email protected]>
Applied. Thanks!
Alex
Quoted 36 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c | 12 ------------ 1 file changed, 12 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c +0
-13@@ -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-44017b1535ebBest regards,
--
Peter Colberg <[email protected]>