diff options
| author | Stanley.Yang <[email protected]> | 2022-01-21 08:50:48 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-01-25 23:00:33 +0000 |
| commit | d6dac2bc12bd968acfcec7a0c92c59d2e19dacc9 (patch) | |
| tree | b7a4269a1bcde1e17e828cdf4855c0b9efa0c98b /drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | |
| parent | drm/amdgpu: switch to common helper to read bios from rom (diff) | |
| download | kernel-d6dac2bc12bd968acfcec7a0c92c59d2e19dacc9.tar.gz kernel-d6dac2bc12bd968acfcec7a0c92c59d2e19dacc9.zip | |
drm/amdgpu: fix channel index mapping for SIENNA_CICHLID
Pmfw read ecc info registers in the following order,
umc0: ch_inst 0, 1, 2 ... 7
umc1: ch_inst 0, 1, 2 ... 7
The position of the register value stored in eccinfo
table is calculated according to the below formula,
channel_index = umc_inst * channel_in_umc + ch_inst
Driver directly use the index of eccinfo table array
as channel index, it's not correct, driver needs convert
eccinfo table array index to channel index according to
channel_idx_tbl.
Reviewed-by: Tao Zhou <[email protected]>
Signed-off-by: Stanley.Yang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c')
0 files changed, 0 insertions, 0 deletions
