summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2023-01-19 00:28:01 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2023-01-19 00:28:01 +0000
commit827e9198f0e93c3a57da4ad5e28cbeeb2dd31cf8 (patch)
treeaa597f9062ab865de849e0b4a319e84cffdac403
parentb05c40b2d4e8df3a0536d483aa67baab91c0bb02 (diff)
drm/amdgpu: add soc21 common ip block support for GC 11.0.4
From Yifan Zhang 6ef4543f1f3b21b108021f3dec9bd02bf9f200ee in linux-6.1.y/6.1.7 311d52367d0a7985ee1132662bad46f09169eed2 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/soc21.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/soc21.c b/sys/dev/pci/drm/amd/amdgpu/soc21.c
index f1913d87981..26f1e4edb4d 100644
--- a/sys/dev/pci/drm/amd/amdgpu/soc21.c
+++ b/sys/dev/pci/drm/amd/amdgpu/soc21.c
@@ -653,6 +653,12 @@ static int soc21_common_early_init(void *handle)
}
adev->external_rev_id = adev->rev_id + 0x20;
break;
+ case IP_VERSION(11, 0, 4):
+ adev->cg_flags = 0;
+ adev->pg_flags = 0;
+ adev->external_rev_id = adev->rev_id + 0x1;
+ break;
+
default:
/* FIXME: not supported yet */
return -EINVAL;