drm/amdgpu: add reset_ras_error_count function for MMHUB
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 2 Mar 2020 04:14:20 +0000 (12:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Mar 2020 05:32:40 +0000 (00:32 -0500)
commitfe5211f19a746c6573e1eae87a95b6b3313fe785
treee4c476fb095a84ce617467f4b079f06f050b8069
parent86153f1be26901598599c190b458dd26dce0fd50
drm/amdgpu: add reset_ras_error_count function for MMHUB

MMHUB 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_mmhub.h
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c