[PATCH 5/6] drm/amdgpu: fix sdma ring test fail when resume from hibernation

Samuel Zhang guoqing.zhang at amd.com
Mon Apr 14 10:46:54 UTC 2025


gart tlb may be staled when switch to a new gpu index. this cause gpu
fetchs wrong data from gtt memory. Flush gart tlb at the end of gmc
resume to fix it.

Signed-off-by: Samuel Zhang <guoqing.zhang at amd.com>
Change-Id: If2a3780319f5ecf3dcb0f1c07f85151ed65f522d
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 73ac05b9a1bf..0e7957b4389a 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -2543,7 +2543,7 @@ static int gmc_v9_0_resume(struct amdgpu_ip_block *ip_block)
 		return r;
 
 	amdgpu_vmid_reset_all(ip_block->adev);
-
+	amdgpu_gart_invalidate_tlb(adev);
 	return 0;
 }
 
-- 
2.43.5



More information about the amd-gfx mailing list