drm/amdgpu: add missing vram lost check for LEGACY RESET
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: add missing vram lost check for LEGACY RESET
Legacy resets reset the memory controllers so VRAM contents may be unreliable after reset.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -3274,6 +3274,7 @@ static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev)* always assumed to be lost. */ switch (amdgpu_asic_reset_method (adev)) { +case AMD_RESET_METHOD_LEGACY :case AMD_RESET_METHOD_LINK :case AMD_RESET_METHOD_BACO :case AMD_RESET_METHOD_MODE1 :
Signature · 1 line
2.50.1
Ping?
Quoted 24 lines · Alex Deucher
Legacy resets reset the memory controllers so VRAM contents may be unreliable after reset.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-1@@ -3274,6 +3274,7 @@ static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev)* always assumed to be lost. */ switch (amdgpu_asic_reset_method (adev)) { +case AMD_RESET_METHOD_LEGACY :case AMD_RESET_METHOD_LINK :case AMD_RESET_METHOD_BACO :case AMD_RESET_METHOD_MODE1 : --2.50.1
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Monday, August 4, 2025 23:43
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu: add missing vram lost check for LEGACY RESET
Legacy resets reset the memory controllers so VRAM contents may be unreliable after reset.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -3274,6 +3274,7 @@ static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev)* always assumed to be lost. */ switch (amdgpu_asic_reset_method (adev)) { +case AMD_RESET_METHOD_LEGACY :case AMD_RESET_METHOD_LINK :case AMD_RESET_METHOD_BACO :case AMD_RESET_METHOD_MODE1 :
--
2.50.1