drm/amdgpu: implement querying ras error count for mmhub9.4
authorDennis Li <Dennis.Li@amd.com>
Tue, 19 Nov 2019 06:02:57 +0000 (14:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 22 Nov 2019 19:27:11 +0000 (14:27 -0500)
commitf6c3623b7b2f378f6210a6a5c898d1b36c722e6f
treecf7c6b36a8dd70c5888afa3cbd7d6860cf8d9989
parent8781e5df119fbce754bf027c691208f677dc07c8
drm/amdgpu: implement querying ras error count for mmhub9.4

Get mmhub error counter by accessing EDC_CNT registers.

v2: Add mmhub_v9_4_ prefix for local static variable and function

Signed-off-by: Dennis Li <dennis.li@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.h