Skip to content

Commit 526b184

Browse files
yifancomalexdeucher
authored andcommitted
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>
1 parent af068dc commit 526b184

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/soc21.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,10 @@ static int soc21_common_early_init(void *handle)
720720
AMD_PG_SUPPORT_VCN |
721721
AMD_PG_SUPPORT_JPEG |
722722
AMD_PG_SUPPORT_GFX_PG;
723-
adev->external_rev_id = adev->rev_id + 0x1;
723+
if (adev->rev_id == 0)
724+
adev->external_rev_id = 0x1;
725+
else
726+
adev->external_rev_id = adev->rev_id + 0x10;
724727
break;
725728
case IP_VERSION(11, 5, 1):
726729
adev->cg_flags =

0 commit comments

Comments
 (0)