drm/amdgpu: add RAS error count reset for gfx_v9_4_3
authorTao Zhou <tao.zhou1@amd.com>
Wed, 8 Feb 2023 06:54:01 +0000 (14:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:37:44 +0000 (10:37 -0400)
commit30feef0676092bdb4b8697e68b8d5864d54f096f
tree7c0e3e05a3b489aa54782e114aa1790b6044078f
parentbfa84da6185cb1897fcee0ac3815625d162d39f0
drm/amdgpu: add RAS error count reset for gfx_v9_4_3

Add GFX RAS error count reset function.

v2: remove xcp operation.
    only select_se_sh when instance number is more than 1.
v3: add check for se_num before select_se_sh.
    change instance from 0 to xcc_id for register access.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c