diff options
author | YiPeng Chai <[email protected]> | 2022-11-04 17:50:12 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-11-15 13:35:16 -0500 |
commit | d293470e10d02ce1afb59cfe43fdf1a6cdb3d726 (patch) | |
tree | 2974aff78225c274aeb6c61a98c27ab90511fdb0 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | 220c8cc855ce7075a29926533279a8dfefdd8788 (diff) |
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 <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 31357101c704..947ed5d97942 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: |