diff options
author | Yifan Zhang <yifan1.zhang@amd.com> | 2022-10-12 07:54:52 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 13:58:20 +0300 |
commit | 6ef4543f1f3b21b108021f3dec9bd02bf9f200ee (patch) | |
tree | 39da12fee07455804458fc94ea0751316f36052b | |
parent | d90de26bdc97a51a195116428fbb4776394f79a7 (diff) | |
download | linux-6ef4543f1f3b21b108021f3dec9bd02bf9f200ee.tar.xz |
drm/amdgpu: add soc21 common ip block support for GC 11.0.4
[ Upstream commit 311d52367d0a7985ee1132662bad46f09169eed2 ]
Add common soc21 ip block support for GC 11.0.4.
Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Aaron Liu <aaron.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: e1d900df63ad ("drm/amdgpu: enable VCN DPG for GC IP v11.0.4")
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc21.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index f1913d879811..26f1e4edb4d5 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/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; |