drm/amdgpu: add soc21 common ip block support for GC 11.0.4
authorjsg <jsg@openbsd.org>
Thu, 19 Jan 2023 00:28:00 +0000 (00:28 +0000)
committerjsg <jsg@openbsd.org>
Thu, 19 Jan 2023 00:28:00 +0000 (00:28 +0000)
From Yifan Zhang
6ef4543f1f3b21b108021f3dec9bd02bf9f200ee in linux-6.1.y/6.1.7
311d52367d0a7985ee1132662bad46f09169eed2 in mainline linux

sys/dev/pci/drm/amd/amdgpu/soc21.c

index f1913d8..26f1e4e 100644 (file)
@@ -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;