]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amdgpu: add missing vram lost check for LEGACY RESET
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Aug 2025 15:40:20 +0000 (11:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Aug 2025 18:34:14 +0000 (14:34 -0400)
Legacy resets reset the memory controllers so VRAM contents
may be unreliable after reset.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 828d981611b7695d92724af12e7564e514768358..5eed5c500190391394dbf0de92d1457052fb6726 100644 (file)
@@ -3290,6 +3290,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: