]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/ras: Fix the issue of incorrect function call
authorYiPeng Chai <YiPeng.Chai@amd.com>
Wed, 5 Nov 2025 09:25:37 +0000 (17:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Nov 2025 14:57:17 +0000 (09:57 -0500)
When amdgpu_device_health_check fails, amdgpu_ras_pre_reset
will not be called and therefore amdgpu_ras_post_reset
cannot be called either.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
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 dcf6fce1c5a2365aa7a7c06b42175f97845d596c..86255c13fbb79295b8896a4841cfea1117a03f21 100644 (file)
@@ -6694,8 +6694,8 @@ skip_sched_resume:
        amdgpu_device_gpu_resume(adev, &device_list, need_emergency_restart);
 reset_unlock:
        amdgpu_device_recovery_put_reset_lock(adev, &device_list);
-end_reset:
        amdgpu_ras_post_reset(adev, &device_list);
+end_reset:
        if (hive) {
                mutex_unlock(&hive->hive_lock);
                amdgpu_put_xgmi_hive(hive);