drm/amdgpu: Fixed the problem that ras error can't be queried after gpu recovery...
authorYiPeng Chai <YiPeng.Chai@amd.com>
Fri, 4 Nov 2022 09:50:12 +0000 (17:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 18:35:16 +0000 (13:35 -0500)
Amdgpu_ras_set_error_query_ready is called at the start of
amdgpu_device_gpu_recover to disable query ras error, but the
code behind only enables query ras error in full reset path,
but not in soft reset path, emergency restart path and skip
the hardware reset path.

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 3135710..947ed5d 100644 (file)
@@ -5454,6 +5454,8 @@ skip_sched_resume:
                        amdgpu_device_resume_display_audio(tmp_adev);
 
                amdgpu_device_unset_mp1_state(tmp_adev);
+
+               amdgpu_ras_set_error_query_ready(tmp_adev, true);
        }
 
 recover_end: