drm/amdgpu: query umc error info from ecc_table v2
authorStanley.Yang <Stanley.Yang@amd.com>
Thu, 18 Nov 2021 08:30:43 +0000 (16:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Nov 2021 19:45:46 +0000 (14:45 -0500)
commitfdcb279d5b798d13b4365bdcf5548855f6c562a1
tree2cf2b5c1e38f3305374eff8f30bddb0b5a896d64
parentedd7942085555cbf8da50c855f35b3fb84606c38
drm/amdgpu: query umc error info from ecc_table v2

if smu support ECCTABLE, driver can message smu to get ecc_table
then query umc error info from ECCTABLE

v2:
    optimize source code makes logical more reasonable

Signed-off-by: Stanley.Yang <Stanley.Yang@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_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c