drm/amdgpu: differentiate exteranl rev id for gfx 11.5.0
Subsystems (2)
PATCH 1/1 drm/amdgpu: differentiate exteranl rev id for gfx 11.5.0
This patch to differentiate exteranl rev id for gfx 11.5.0.
Signed-off-by Yifan Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +4 -1
@@ -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 =
Signature · 1 line
2.37.3
[Public]
Hi Yifan,
-----Original Message-----
From: Zhang, Yifan <[email protected]>
Sent: Sunday, April 7, 2024 10:10 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Tim <[email protected]>; Ma, Li <[email protected]>; Zhang, Yifan <[email protected]>
Subject: [PATCH] drm/amdgpu: differentiate exteranl rev id for gfx 11.5.0
Quoted 1 line
This patch to differentiate exteranl rev id for gfx 11.5.0.
With the typo " exteranl " fixed, this patch is
Reviewed-by Tim Huang <[email protected]>
Signed-off-by Yifan Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +4 -1
@@ -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