drm/amdgpu: add reset_ras_error_count function for GFX
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 2 Mar 2020 05:27:59 +0000 (13:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:32:47 +0000 (00:32 -0500)
commit279375c3311aa8408869ee795bb95ac630b1feca
tree80fa0a0bb80cc9582672cc1cf4e779bff615eb6a
parentfe5211f19a746c6573e1eae87a95b6b3313fe785
drm/amdgpu: add reset_ras_error_count function for GFX

GFX ras error counters are dirty ones after cold reboot
Read operation is needed to reset them to 0

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_4.h