drm/amdgpu: add reset_ras_error_count function for SDMA
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 2 Mar 2020 03:54:28 +0000 (11:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:32:32 +0000 (00:32 -0500)
commit86153f1be26901598599c190b458dd26dce0fd50
tree51164b3410d8cf9e02e476a2884b427875bb9dd4
parente7429606bb6ad846cfa4f3dd26a328b1d3e76a54
drm/amdgpu: add reset_ras_error_count function for SDMA

SDMA 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_sdma.h
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c