[PATCH] drm/amdgpu: differentiate exteranl rev id for gfx 11.5.0
Huang, Tim
Tim.Huang at amd.com
Mon Apr 8 06:42:16 UTC 2024
[Public]
Hi Yifan,
-----Original Message-----
From: Zhang, Yifan <Yifan1.Zhang at amd.com>
Sent: Sunday, April 7, 2024 10:10 PM
To: amd-gfx at lists.freedesktop.org
Cc: Deucher, Alexander <Alexander.Deucher at amd.com>; Huang, Tim <Tim.Huang at amd.com>; Ma, Li <Li.Ma at amd.com>; Zhang, Yifan <Yifan1.Zhang at amd.com>
Subject: [PATCH] drm/amdgpu: differentiate exteranl rev id for gfx 11.5.0
> This patch to differentiate exteranl rev id for gfx 11.5.0.
With the typo " exteranl " fixed, this patch is
Reviewed-by: Tim Huang <Tim.Huang at amd.com>
Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
---
drivers/gpu/drm/amd/amdgpu/soc21.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index abe319b0f063..43ca63fe85ac 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 =
--
2.37.3
More information about the amd-gfx
mailing list