[PATCH] drm/amdgpu: add missing vram lost check for LEGACY RESET

Zhang, Hawking Hawking.Zhang at amd.com
Wed Aug 6 14:52:52 UTC 2025


[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>

Regards,
Hawking
-----Original Message-----
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Alex Deucher
Sent: Monday, August 4, 2025 23:43
To: amd-gfx at lists.freedesktop.org
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>
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 <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 3fb41c42cc051..6119302aa0661 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -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



More information about the amd-gfx mailing list