OSDN Git Service

drm/amdgpu: decouple EccErrCnt query and clear operation
authorGuchun Chen <guchun.chen@amd.com>
Sun, 26 Apr 2020 09:04:31 +0000 (17:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Apr 2020 19:52:10 +0000 (15:52 -0400)
commitfd90456c757da8bcb75dd0d9221581008c01e380
tree44abcbca2d4621342dc0d62161d1d9e0ab478829
parent40e733147fe06bc2d87abd3207468b2ca549f4ac
drm/amdgpu: decouple EccErrCnt query and clear operation

Due to hardware bug that when RSMU UMC index is disabled,
clear EccErrCnt at the first UMC instance will clean up all other
EccErrCnt registes from other instances at the same time. This
will break the correctable error count log in EccErrCnt register
once querying it. So decouple both to make error count query workable.

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