From: YiPeng Chai Date: Fri, 4 Nov 2022 09:50:12 +0000 (+0800) Subject: drm/amdgpu: Fixed the problem that ras error can't be queried after gpu recovery... X-Git-Tag: v6.2-rc1~124^2~14^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d293470e10d02ce1afb59cfe43fdf1a6cdb3d726;p=thirdparty%2Flinux.git drm/amdgpu: Fixed the problem that ras error can't be queried after gpu recovery is completed 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 Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 31357101c7042..947ed5d97942a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -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: