From d22af7ab7f6fca8031aaa565df4b26a142668c9e Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 19 Jan 2023 00:28:00 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/amd/amdgpu/soc21.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.20.1