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)
commitd293470e10d02ce1afb59cfe43fdf1a6cdb3d726
tree2974aff78225c274aeb6c61a98c27ab90511fdb0
parent220c8cc855ce7075a29926533279a8dfefdd8788
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 <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