summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/soc21.c
diff options
context:
space:
mode:
authorFlora Cui <flora.cui@amd.com>2022-04-15 10:09:00 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-05-05 16:51:24 -0400
commit92fd2153149fcb23ad6bda97aec025c0a5bad7cf (patch)
tree3d8facf85e9dc6a12b9a3029dabbf6f879a23b14 /drivers/gpu/drm/amd/amdgpu/soc21.c
parentd386f64588aad1058f6a0f97abeddfcae753bf14 (diff)
drm/amdgpu: add soc21 support for GC 11.0.2
Add initial soc21 support. Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Flora Cui <flora.cui@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc21.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc21.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 7804f95b790b..d91bd70028b5 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -547,6 +547,11 @@ static int soc21_common_early_init(void *handle)
AMD_PG_SUPPORT_MMHUB;
adev->external_rev_id = adev->rev_id + 0x1; // TODO: need update
break;
+ case IP_VERSION(11, 0, 2):
+ adev->cg_flags = 0;
+ adev->pg_flags = 0;
+ adev->external_rev_id = adev->rev_id + 0x10;
+ break;
default:
/* FIXME: not supported yet */
return -EINVAL;