aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Feng <[email protected]>2024-03-01 11:09:22 +0800
committerAlex Deucher <[email protected]>2024-05-02 16:18:15 -0400
commit81b09cedb37bc7aa80712361a60f1396c8c3d0a0 (patch)
tree0bf7af10021b1954f515ca3f545f8e959cb06c02
parent856d1ed4b2c3583afe5daebc5bf4b3c94ca26e8d (diff)
drm/amd/amdgpu: enable cgcg and cgls
enable cgcg and cgls on gc 12.0.1 Signed-off-by: Kenneth Feng <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc24.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c
index 0979dffe3742..143329ed2c9a 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc24.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc24.c
@@ -401,7 +401,8 @@ static int soc24_common_early_init(void *handle)
adev->external_rev_id = adev->rev_id + 0x40;
break;
case IP_VERSION(12, 0, 1):
- adev->cg_flags = 0;
+ adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
+ AMD_CG_SUPPORT_GFX_CGLS;
adev->pg_flags = AMD_PG_SUPPORT_VCN |
AMD_PG_SUPPORT_JPEG |
AMD_PG_SUPPORT_VCN_DPG;