diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2022-06-28 00:41:52 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-29 17:59:30 -0400 |
commit | 6b46251c5067990651bdbfc3edf07c2e16850a0c (patch) | |
tree | 12b6d70644c3a0c2d32ea63218b1f11f854b3fa7 | |
parent | 6ec128c3fffcac8b05ed187e11386afdff4bacdb (diff) | |
download | lwn-6b46251c5067990651bdbfc3edf07c2e16850a0c.tar.gz lwn-6b46251c5067990651bdbfc3edf07c2e16850a0c.zip |
drm/amdgpu: initialize common sw config for v11_0_3
init cp/pg_flags and extenal_rev_id
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Frank Min <Frank.Min@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc21.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 55284b24f113..f87dfae4efda 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -627,6 +627,11 @@ static int soc21_common_early_init(void *handle) AMD_PG_SUPPORT_JPEG; adev->external_rev_id = adev->rev_id + 0x1; break; + case IP_VERSION(11, 0, 3): + adev->cg_flags = 0; + adev->pg_flags = 0; + adev->external_rev_id = adev->rev_id + 0x20; + break; default: /* FIXME: not supported yet */ return -EINVAL; |