summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLe Ma <le.ma@amd.com>2025-12-02 14:46:36 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-03-11 20:58:08 +0300
commit3ebe58535898cb0a842390ecde79b5bc63a5b777 (patch)
treea23dd3682b447229205e57deecebb97d7262e3b5
parentd49f8adcbcaaeef1c4081d93fd9c35b018ab0652 (diff)
downloadlinux-3ebe58535898cb0a842390ecde79b5bc63a5b777.tar.xz
drm/amdgpu: update GFX CGCG/LS flags for gfx 12.1
Update GFX CGCG flags and fix num_xcc assignment Signed-off-by: Le Ma <le.ma@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc_v1_0.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
index 43209eae81bb..a0e10dbf0733 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc_v1_0.c
@@ -281,7 +281,8 @@ static int soc_v1_0_common_early_init(struct amdgpu_ip_block *ip_block)
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
case IP_VERSION(12, 1, 0):
- adev->cg_flags = 0;
+ adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |
+ AMD_CG_SUPPORT_GFX_CGLS;
adev->pg_flags = 0;
adev->external_rev_id = adev->rev_id + 0x50;
break;