drm/amdgpu: fix convert bad page retiremt
authorStanley.Yang <Stanley.Yang@amd.com>
Wed, 19 Jan 2022 16:17:44 +0000 (00:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Jan 2022 21:25:36 +0000 (16:25 -0500)
commit37ff945f804c2d40d030713fc8692e793a81eff8
tree5c9c1c4f6903a6934139e64ed049376124a8dde1
parent6d1d72fb4fcf85ff0a96de1c16c46162b3baf9a6
drm/amdgpu: fix convert bad page retiremt

Pmfw read ecc info registers and store values in
eccinfo_table in the following order

umc0 ch_inst 0, 1, 2 ... 7
umc1 ch_inst 0, 1, 2 ... 7
...
umc3 ch_inst 0, 1, 2 ... 7

Driver should convert eccinfo_table_idx to channel_index according
to channel_idx_tbl.

Signed-off-by: Stanley.Yang <Stanley.Yang@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_7.c