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:53:19 +0000 (13:53 -0400)
commit00047c3d967d7ef8adf8bac3c3579294a3bc0bb1
tree15c8e2515aa9eae02fd9fe2894c5f1c78e4300d9
parent4e3464badbeebb3528c457aefe91413f8a9070b6
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