]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57c70336bbb1fa494a2f1b3fabd943c89a422a50
tree44abcbca2d4621342dc0d62161d1d9e0ab478829
parent8d100d678f0e09ff6fc35a862b30baeb57da074b
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