aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorKenneth Feng <kenneth.feng@amd.com>2024-03-01 11:09:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-05-02 16:18:15 -0400
commit81b09cedb37bc7aa80712361a60f1396c8c3d0a0 (patch)
tree0bf7af10021b1954f515ca3f545f8e959cb06c02 /drivers/gpu/drm/amd
parentdrm/amdgpu/vcn5: Add VCN5 capabilities (diff)
downloadlinux-rng-81b09cedb37bc7aa80712361a60f1396c8c3d0a0.tar.xz
linux-rng-81b09cedb37bc7aa80712361a60f1396c8c3d0a0.zip
drm/amd/amdgpu: enable cgcg and cgls
enable cgcg and cgls on gc 12.0.1 Signed-off-by: Kenneth Feng <kenneth.feng@amd.com> Reviewed-by: Likun Gao <Likun.Gao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-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;