From: Sonny Jiang Date: Thu, 4 Aug 2022 20:56:58 +0000 (-0400) Subject: drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=0f05a2e52862107aff6f4ffe8e8926ada4432c9f;p=people%2Fjgross%2Flinux.git drm/amdgpu: Enable pg/cg flags on GC11_0_3 for VCN This enable VCN PG, CG, DPG and JPEG PG, CG Signed-off-by: Sonny Jiang Reviewed-by: Leo Liu Reviewed-by: John Clements Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index f87dfae4efda..54bce19a52ec 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -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: