From: Yifan Zhang Date: Wed, 12 Oct 2022 04:54:52 +0000 (+0800) Subject: drm/amdgpu: add soc21 common ip block support for GC 11.0.4 X-Git-Tag: io_uring-6.2-2022-12-19~36^2~1^2~50 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=311d52367d0a7985ee1132662bad46f09169eed2;p=linux-block.git drm/amdgpu: add soc21 common ip block support for GC 11.0.4 Add common soc21 ip block support for GC 11.0.4. Signed-off-by: Yifan Zhang Reviewed-by: Aaron Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index b258e9aa0558..69dac2aa8151 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -644,6 +644,12 @@ static int soc21_common_early_init(void *handle) AMD_PG_SUPPORT_JPEG; 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;