<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Aaron Liu <aaron.liu@amd.com><br>
<b>Sent:</b> Monday, June 12, 2023 11:09 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deucher, Alexander <Alexander.Deucher@amd.com>; Zhang, Yifan <Yifan1.Zhang@amd.com>; Liu, Aaron <Aaron.Liu@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: update external rev_id for gc_11_0_1 and gc_11_0_4</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">For gc_11_0_1, the external rev_id of A0/A1 series is 0x1,<br>
the external rev_id of A2 is 0x10.<br>
<br>
Signed-off-by: Aaron Liu <aaron.liu@amd.com><br>
---<br>
drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++--<br>
1 file changed, 5 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c<br>
index e5e5d68a4d70..caaf9da4c1c0 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c<br>
@@ -665,7 +665,10 @@ static int soc21_common_early_init(void *handle)<br>
AMD_PG_SUPPORT_VCN |<br>
AMD_PG_SUPPORT_VCN_DPG |<br>
AMD_PG_SUPPORT_JPEG;<br>
- adev->external_rev_id = adev->rev_id + 0x1;<br>
+ if (adev->rev_id < 0xA)<br>
+ adev->external_rev_id = 0x1;<br>
+ else<br>
+ adev->external_rev_id = 0x10;<br>
break;<br>
case IP_VERSION(11, 0, 3):<br>
adev->cg_flags = AMD_CG_SUPPORT_VCN_MGCG |<br>
@@ -705,7 +708,7 @@ static int soc21_common_early_init(void *handle)<br>
AMD_PG_SUPPORT_VCN_DPG |<br>
AMD_PG_SUPPORT_GFX_PG |<br>
AMD_PG_SUPPORT_JPEG;<br>
- adev->external_rev_id = adev->rev_id + 0x80;<br>
+ adev->external_rev_id = 0x80;<br>
break;<br>
<br>
default:<br>
-- <br>
2.39.0<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>