drm/amdgpu: add initial GC 11.5.1 soc21 support

Disable clock gating and power gating for now.

v2: squash in revision fix (Alex)

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Yifan Zhang 2024-01-04 11:30:26 +08:00 committed by Alex Deucher
parent 278318d371
commit e971995657

View file

@ -717,6 +717,11 @@ static int soc21_common_early_init(void *handle)
AMD_PG_SUPPORT_GFX_PG; AMD_PG_SUPPORT_GFX_PG;
adev->external_rev_id = adev->rev_id + 0x1; adev->external_rev_id = adev->rev_id + 0x1;
break; break;
case IP_VERSION(11, 5, 1):
adev->cg_flags = 0;
adev->pg_flags = 0;
adev->external_rev_id = adev->rev_id + 0xc1;
break;
default: default:
/* FIXME: not supported yet */ /* FIXME: not supported yet */
return -EINVAL; return -EINVAL;