drm/amdgpu: enable VCN4 PG and CG for VCN4_0_0
authorLeo Liu <leo.liu@amd.com>
Thu, 14 Apr 2022 14:16:42 +0000 (10:16 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:56 +0000 (10:43 -0400)
Most of the tiles can be power/clock gated.

Reviewed-by: Sonny Jiang <sonny.jiang@amd.com>
Signed-off-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index d738635..c95dcbb 100644 (file)
@@ -482,8 +482,10 @@ static int soc21_common_early_init(void *handle)
        case IP_VERSION(11, 0, 0):
                adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
                        AMD_CG_SUPPORT_GFX_CGLS |
-                       AMD_CG_SUPPORT_REPEATER_FGCG;
-               adev->pg_flags = AMD_PG_SUPPORT_ATHUB |
+                       AMD_CG_SUPPORT_REPEATER_FGCG |
+                       AMD_CG_SUPPORT_VCN_MGCG;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN |
+                       AMD_PG_SUPPORT_ATHUB |
                        AMD_PG_SUPPORT_MMHUB;
                adev->external_rev_id = adev->rev_id + 0x1; // TODO: need update
                break;