drm/amd/amdgpu: enable gfx clock gating features on smu_v13_0_10
authorKenneth Feng <kenneth.feng@amd.com>
Wed, 7 Sep 2022 09:05:34 +0000 (17:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Oct 2022 21:41:20 +0000 (17:41 -0400)
enable gfx clock gating features on smu_v13_0_10

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Jack Gui <Jack.Gui@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
drivers/gpu/drm/amd/amdgpu/soc21.c

index 257b2e4de60077da3fe3c6cee645e56fba35658b..73106f53246d557a6bbbf57e0226990b1f7b9e8f 100644 (file)
@@ -5076,6 +5076,7 @@ static int gfx_v11_0_set_clockgating_state(void *handle,
        case IP_VERSION(11, 0, 0):
        case IP_VERSION(11, 0, 1):
        case IP_VERSION(11, 0, 2):
+       case IP_VERSION(11, 0, 3):
                gfx_v11_0_update_gfx_clock_gating(adev,
                                state ==  AMD_CG_STATE_GATE);
                break;
index 795706b3b092f2cd832762d80abc0fb1774a46d4..fdd842a3fcb6dbf63fa242641672c8278ff642ba 100644 (file)
@@ -636,7 +636,11 @@ static int soc21_common_early_init(void *handle)
                break;
        case IP_VERSION(11, 0, 3):
                adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
-                       AMD_CG_SUPPORT_JPEG_MGCG;
+                       AMD_CG_SUPPORT_JPEG_MGCG |
+                       AMD_CG_SUPPORT_GFX_CGCG |
+                       AMD_CG_SUPPORT_GFX_CGLS |
+                       AMD_CG_SUPPORT_REPEATER_FGCG |
+                       AMD_CG_SUPPORT_GFX_MGCG;
                adev->pg_flags = AMD_PG_SUPPORT_VCN |
                        AMD_PG_SUPPORT_VCN_DPG |
                        AMD_PG_SUPPORT_JPEG;