Skip to contentSkip to conversation

drm/amdgpu: update external rev_id for gc_11_0_1 and gc_11_0_4

PATCH In review Aaron Liu 2 participants 2 messages Jun 13, 2023

Subsystems (2)
lore
Share & tools
lore

Aaron Liu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: update external rev_id for gc_11_0_1 and gc_11_0_4

For gc_11_0_1, the external rev_id of A0/A1 series is 0x1, the external rev_id of A2 is 0x10.

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +5 -2
index e5e5d68a4d70..caaf9da4c1c0 100644
@@ -665,7 +665,10 @@ static int soc21_common_early_init(void *handle)
 			AMD_PG_SUPPORT_VCN |
 			AMD_PG_SUPPORT_VCN_DPG |
 			AMD_PG_SUPPORT_JPEG;
-		adev->external_rev_id = adev->rev_id + 0x1;
+		if (adev->rev_id < 0xA)
+			adev->external_rev_id = 0x1;
+		else
+			adev->external_rev_id = 0x10;
 		break;
 	case IP_VERSION(11, 0, 3):
 		adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
@@ -705,7 +708,7 @@ static int soc21_common_early_init(void *handle)
 			AMD_PG_SUPPORT_VCN_DPG |
 			AMD_PG_SUPPORT_GFX_PG |
 			AMD_PG_SUPPORT_JPEG;
-		adev->external_rev_id = adev->rev_id + 0x80;
+		adev->external_rev_id = 0x80;
 		break;
 
 	default:
Signature · 1 line
2.39.0
maintainer Acked-by on v1 1/1
#1 lore raw

[Public]

________________________________
From: amd-gfx <[email protected]> on behalf of Aaron Liu <[email protected]>
Sent: Monday, June 12, 2023 11:09 PM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Zhang, Yifan <[email protected]>; Liu, Aaron <[email protected]>
Subject: [PATCH] drm/amdgpu: update external rev_id for gc_11_0_1 and gc_11_0_4

For gc_11_0_1, the external rev_id of A0/A1 series is 0x1, the external rev_id of A2 is 0x10.

---
 drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +5 -2
index e5e5d68a4d70..caaf9da4c1c0 100644
@@ -665,7 +665,10 @@ static int soc21_common_early_init(void *handle)
                         AMD_PG_SUPPORT_VCN |
                         AMD_PG_SUPPORT_VCN_DPG |
                         AMD_PG_SUPPORT_JPEG;
-               adev->external_rev_id = adev->rev_id + 0x1;
+               if (adev->rev_id < 0xA)
+                       adev->external_rev_id = 0x1;
+               else
+                       adev->external_rev_id = 0x10;
                 break;
         case IP_VERSION(11, 0, 3):
                 adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |
@@ -705,7 +708,7 @@ static int soc21_common_early_init(void *handle)
                         AMD_PG_SUPPORT_VCN_DPG |
                         AMD_PG_SUPPORT_GFX_PG |
                         AMD_PG_SUPPORT_JPEG;
-               adev->external_rev_id = adev->rev_id + 0x80;
+               adev->external_rev_id = 0x80;
                 break;
 
         default:

--
2.39.0