]> git.ipfire.org Git - thirdparty/kernel/linux.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 20:54:25 +0000 (16:54 -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>
(cherry picked from commit aae94897b6661a2a4b1de2d328090fc388b3e0af)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index aa223f6d4b59ddc9f5570ef6763717a0d3a1e1d3..e3022b396e30d9af31b9e59d916a81c820380948 100644 (file)
@@ -3270,6 +3270,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: