drm/amdgpu: add sdma instance check for gfx11 CGCG
authorTim Huang <tim.huang@amd.com>
Mon, 22 Aug 2022 05:30:44 +0000 (13:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:19:04 +0000 (13:19 -0400)
commit345c0bc0a3cdd3273de5338b7313afe733692296
tree841ca421696ea5552a1c7a632bf17b9a9e0f5cdd
parentc10c55cf49fe9060720d67575c301dd452e0fab3
drm/amdgpu: add sdma instance check for gfx11 CGCG

For some ASICs, like GFX IP v11.0.1, only have one SDMA instance,
so not need to configure SDMA1_RLC_CGCG_CTRL for this case.

Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c