Skip to content

Commit 6dba20d

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 <[email protected]> Reviewed-by: Tim Huang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent e047dd4 commit 6dba20d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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)