drm/amdgpu: add RAS error count definitions for gfx_v9_4_3
authorTao Zhou <tao.zhou1@amd.com>
Mon, 6 Feb 2023 03:38:19 +0000 (11:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 14:37:39 +0000 (10:37 -0400)
commit5c1c09a71634423604c47502d8059a5c098c6f40
tree52f57ca268190541d490337f604fccc44b633971
parent77462ab8c62b0dc65261c042771efea44a111131
drm/amdgpu: add RAS error count definitions for gfx_v9_4_3

Prepare for the query of GFX RAS ce/ue count.

v2: remove xcp operation.
    only select_se_sh when instance number is more than 1.
v3: add more CE/UE registsers to query list.
    add check for se_num before select_se_sh.
    change instance from 0 to xcc_id for register access.
v4: move gfx memory id definitions to gfx_v9_4_3.
v5: create a dedicated patch for adding error count query function.

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