aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Zhang <yifan1.zhang@amd.com>2024-04-07 22:01:35 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-04-10 00:00:32 -0400
commit6dba20d23e85034901ccb765a7ca71199bcca4df (patch)
tree9781a5be89e5f485d7791b2144c3fc730b498403
parente047dd448d2bc12b8c30d7e3e6e98cea1fc28a17 (diff)
downloadlinux-6dba20d23e85034901ccb765a7ca71199bcca4df.tar.gz
drm/amdgpu: differentiate external rev id for gfx 11.5.0
This patch to differentiate external rev id for gfx 11.5.0. Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com> Reviewed-by: Tim Huang <Tim.Huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc21.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index abe319b0f0639f..43ca63fe85ac3b 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -720,7 +720,10 @@ static int soc21_common_early_init(void *handle)
AMD_PG_SUPPORT_VCN |
AMD_PG_SUPPORT_JPEG |
AMD_PG_SUPPORT_GFX_PG;
- adev->external_rev_id = adev->rev_id + 0x1;
+ if (adev->rev_id == 0)
+ adev->external_rev_id = 0x1;
+ else
+ adev->external_rev_id = adev->rev_id + 0x10;
break;
case IP_VERSION(11, 5, 1):
adev->cg_flags =