aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonny Jiang <[email protected]>2022-08-04 16:56:58 -0400
committerAlex Deucher <[email protected]>2022-08-29 17:59:30 -0400
commit0f05a2e52862107aff6f4ffe8e8926ada4432c9f (patch)
treebada11f59a07cf883d7c23c3684d488c527ecf76
parent6b46251c5067990651bdbfc3edf07c2e16850a0c (diff)
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 <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc21.c7
1 files changed, 5 insertions, 2 deletions
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: