drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN
authorSonny Jiang <sonny.jiang@amd.com>
Thu, 4 Aug 2022 20:56:58 +0000 (16:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Aug 2022 21:59:30 +0000 (17:59 -0400)
This enable VCN PG, CG, DPG and JPEG PG, CG

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

index f87dfae..54bce19 100644 (file)
@@ -628,8 +628,11 @@ static int soc21_common_early_init(void *handle)
                adev->external_rev_id = adev->rev_id + 0x1;
                break;
        case IP_VERSION(11, 0, 3):
-               adev->cg_flags = 0;
-               adev->pg_flags = 0;
+               adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
+                       AMD_CG_SUPPORT_JPEG_MGCG;
+               adev->pg_flags = AMD_PG_SUPPORT_VCN |
+                       AMD_PG_SUPPORT_VCN_DPG |
+                       AMD_PG_SUPPORT_JPEG;
                adev->external_rev_id = adev->rev_id + 0x20;
                break;
        default: