aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
diff options
context:
space:
mode:
authorJohn Clements <john.clements@amd.com>2021-07-13 17:44:45 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-07-13 11:42:50 -0400
commit308ef2ad84928f74e391037706c7dc2901721666 (patch)
tree4276a73cc67822ae1f58c0e55f3a679696ceac81 /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
parentdrm/amd/pm: Add waiting for response of mode-reset message for yellow carp (diff)
downloadlinux-dev-308ef2ad84928f74e391037706c7dc2901721666.tar.xz
linux-dev-308ef2ad84928f74e391037706c7dc2901721666.zip
drm/amdgpu: Resolve bug in UMC 6.7 error offset calculation
Use correct channel and instance values Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: John Clements <john.clements@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 097230b5e946..7cf653f9e9a7 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -1171,8 +1171,8 @@ static void gmc_v9_0_set_umc_funcs(struct amdgpu_device *adev)
break;
case CHIP_ALDEBARAN:
adev->umc.max_ras_err_cnt_per_query = UMC_V6_7_TOTAL_CHANNEL_NUM;
- adev->umc.channel_inst_num = UMC_V6_7_CHANNEL_INSTANCE_NUM;
- adev->umc.umc_inst_num = UMC_V6_7_UMC_INSTANCE_NUM;
+ adev->umc.channel_inst_num = UMC_V6_7_UMC_INSTANCE_NUM;
+ adev->umc.umc_inst_num = UMC_V6_7_CHANNEL_INSTANCE_NUM;
adev->umc.channel_offs = UMC_V6_7_PER_CHANNEL_OFFSET;
if (!adev->gmc.xgmi.connected_to_cpu)
adev->umc.ras_funcs = &umc_v6_7_ras_funcs;