<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:#317100;margin:15pt;" align="Left">
[AMD Public Use]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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 Huang Rui <ray.huang@amd.com><br>
<b>Sent:</b> Monday, October 26, 2020 8:51 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Huang, Ray <Ray.Huang@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: add vangogh apu flag</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">This patch is to add vangogh apu flag to support more kickers that<br>
belongs vangogh series.<br>
<br>
Signed-off-by: Huang Rui <ray.huang@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/nv.c          | 4 +++-<br>
 drivers/gpu/drm/amd/include/amd_shared.h | 1 +<br>
 2 files changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c<br>
index 30ec826c8760..b7fc9ebdf1c1 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/nv.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/nv.c<br>
@@ -941,6 +941,7 @@ static int nv_common_early_init(void *handle)<br>
                 break;<br>
 <br>
         case CHIP_VANGOGH:<br>
+               adev->apu_flags |= AMD_APU_IS_VANGOGH;<br>
                 adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG |<br>
                         AMD_CG_SUPPORT_GFX_CGLS |<br>
                         AMD_CG_SUPPORT_GFX_3D_CGCG |<br>
@@ -951,7 +952,8 @@ static int nv_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 + 0x01;<br>
+               if (adev->apu_flags & AMD_APU_IS_VANGOGH)<br>
+                       adev->external_rev_id = adev->rev_id + 0x01;<br>
                 break;<br>
         case CHIP_DIMGREY_CAVEFISH:<br>
                 adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG |<br>
diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h<br>
index 06c1aabf10ce..412602d84f71 100644<br>
--- a/drivers/gpu/drm/amd/include/amd_shared.h<br>
+++ b/drivers/gpu/drm/amd/include/amd_shared.h<br>
@@ -46,6 +46,7 @@ enum amd_apu_flags {<br>
         AMD_APU_IS_PICASSO = 0x00000004UL,<br>
         AMD_APU_IS_RENOIR = 0x00000008UL,<br>
         AMD_APU_IS_GREEN_SARDINE = 0x00000010UL,<br>
+       AMD_APU_IS_VANGOGH = 0x00000020UL,<br>
 };<br>
 <br>
 /**<br>
-- <br>
2.25.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7C997d0fa293f94eec44b008d879adfbcd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637393135475905040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=4zu%2FHsq0nTrx7NL4Dkqupaaet%2Fwzc40zzlXcYQXXbZU%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Famd-gfx&amp;data=04%7C01%7Calexander.deucher%40amd.com%7C997d0fa293f94eec44b008d879adfbcd%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637393135475905040%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=4zu%2FHsq0nTrx7NL4Dkqupaaet%2Fwzc40zzlXcYQXXbZU%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>