summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2023-07-26 15:42:26 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-09-11 17:10:58 -0400
commit3cb9ebc9d652a874ab315eeac59bbe5950987db9 (patch)
treeb6339f7e8585b87d83a85f34bb1d5f73e70fbbbe /drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
parentdf38fe12a22c5d9a6f4cb86ddcc853a234d3756d (diff)
downloadlinux-stable-3cb9ebc9d652a874ab315eeac59bbe5950987db9.tar.gz
linux-stable-3cb9ebc9d652a874ab315eeac59bbe5950987db9.tar.bz2
linux-stable-3cb9ebc9d652a874ab315eeac59bbe5950987db9.zip
drm/amdgpu: add channel index table for UMC v12
Get UMC phyical channel index according to node id, umc instance and channel instance. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 9e3c028cbba3..3d13d0bba7b1 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -1499,6 +1499,7 @@ static void gmc_v9_0_set_umc_funcs(struct amdgpu_device *adev)
adev->umc.node_inst_num /= UMC_V12_0_UMC_INSTANCE_NUM;
adev->umc.channel_offs = UMC_V12_0_PER_CHANNEL_OFFSET;
adev->umc.active_mask = adev->aid_mask;
+ adev->umc.channel_idx_tbl = &umc_v12_0_channel_idx_tbl[0][0][0];
if (!adev->gmc.xgmi.connected_to_cpu && !adev->gmc.is_app_apu)
adev->umc.ras = &umc_v12_0_ras;
break;