<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div dir="ltr">
<div dir="ltr">Reviewed-by: Yang Wang <kevinyang.wang@amd.com></div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Best Regards,</div>
<div dir="ltr">Kevin</div>
<div id="mail-editor-reference-message-container" class="ms-outlook-mobile-reference-message">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif"><b>From:</b> Kenneth Feng <kenneth.feng@amd.com><br>
<b>Sent:</b> Tuesday, August 20, 2024 08:59<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Wang, Yang(Kevin) <KevinYang.Wang@amd.com>; Feng, Kenneth <Kenneth.Feng@amd.com><br>
<b>Subject:</b> [PATCH] drm/amd/pm: update message interface for smu v14.0.2/3
<div> </div>
</font></div>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><font size="2"><span style="font-size:11pt;">
<div class="PlainText">update message interface for smu v14.0.2/3<br>
<br>
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com><br>
---<br>
 .../pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h   | 18 ++++++++++++++----<br>
 .../drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c   |  1 -<br>
 2 files changed, 14 insertions(+), 5 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h<br>
index de2e442281ff..87ca5ceb1ece 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v14_0_2_ppsmc.h<br>
@@ -92,7 +92,6 @@<br>
 <br>
 //Resets<br>
 #define PPSMC_MSG_PrepareMp1ForUnload            0x2E<br>
-#define PPSMC_MSG_Mode1Reset                     0x2F<br>
 <br>
 //Set SystemVirtual DramAddrHigh<br>
 #define PPSMC_MSG_SetSystemVirtualDramAddrHigh   0x30<br>
@@ -119,11 +118,12 @@<br>
 <br>
 //STB to dram log<br>
 #define PPSMC_MSG_DumpSTBtoDram                  0x3D<br>
-#define PPSMC_MSG_STBtoDramLogSetDramAddrHigh    0x3E<br>
-#define PPSMC_MSG_STBtoDramLogSetDramAddrLow     0x3F<br>
+#define PPSMC_MSG_STBtoDramLogSetDramAddress     0x3E<br>
+#define PPSMC_MSG_DummyUndefined                 0x3F<br>
 #define PPSMC_MSG_STBtoDramLogSetDramSize        0x40<br>
 #define PPSMC_MSG_SetOBMTraceBufferLogging       0x41<br>
 <br>
+#define PPSMC_MSG_UseProfilingMode               0x42<br>
 #define PPSMC_MSG_AllowGfxDcs                    0x43<br>
 #define PPSMC_MSG_DisallowGfxDcs                 0x44<br>
 #define PPSMC_MSG_EnableAudioStutterWA           0x45<br>
@@ -135,6 +135,16 @@<br>
 #define PPSMC_MSG_SetBadMemoryPagesRetiredFlagsPerChannel 0x4B<br>
 #define PPSMC_MSG_SetPriorityDeltaGain           0x4C<br>
 #define PPSMC_MSG_AllowIHHostInterrupt           0x4D<br>
+#define PPSMC_MSG_EnableShadowDpm                0x4E<br>
 #define PPSMC_MSG_Mode3Reset                     0x4F<br>
-#define PPSMC_Message_Count                      0x50<br>
+#define PPSMC_MSG_SetDriverDramAddr              0x50<br>
+#define PPSMC_MSG_SetToolsDramAddr               0x51<br>
+#define PPSMC_MSG_TransferTableSmu2DramWithAddr  0x52<br>
+#define PPSMC_MSG_TransferTableDram2SmuWithAddr  0x53<br>
+#define PPSMC_MSG_GetAllRunningSmuFeatures       0x54<br>
+#define PPSMC_MSG_GetSvi3Voltage                 0x55<br>
+#define PPSMC_MSG_UpdatePolicy                   0x56<br>
+#define PPSMC_MSG_ExtPwrConnSupport              0x57<br>
+#define PPSMC_MSG_PreloadSwPstateForUclkOverDrive         0x58<br>
+#define PPSMC_Message_Count                      0x59<br>
 #endif<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c<br>
index 5913f9c60fe0..e000ac7b4c0e 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu14/smu_v14_0_2_ppt.c<br>
@@ -127,7 +127,6 @@ static struct cmn2asic_msg_mapping smu_v14_0_2_message_map[SMU_MSG_MAX_COUNT] =<br>
         MSG_MAP(SetMGpuFanBoostLimitRpm,        PPSMC_MSG_SetMGpuFanBoostLimitRpm,     0),<br>
         MSG_MAP(GetPptLimit,                    PPSMC_MSG_GetPptLimit,                 0),<br>
         MSG_MAP(NotifyPowerSource,              PPSMC_MSG_NotifyPowerSource,           0),<br>
-       MSG_MAP(Mode1Reset,                     PPSMC_MSG_Mode1Reset,                  0),<br>
         MSG_MAP(PrepareMp1ForUnload,            PPSMC_MSG_PrepareMp1ForUnload,         0),<br>
         MSG_MAP(DFCstateControl,                PPSMC_MSG_SetExternalClientDfCstateAllow, 0),<br>
         MSG_MAP(ArmD3,                          PPSMC_MSG_ArmD3,                       0),<br>
-- <br>
2.34.1<br>
<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>