<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Series is</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Reviewed-by: Yang Wang <kevinyang.wang@amd.com></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Best Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Kevin</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Alex Deucher <alexander.deucher@amd.com><br>
<b>Sent:</b> Friday, May 27, 2022 2:00 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Subject:</b> [PATCH 2/3] drm/amdgpu/swsmu: add SMU mailbox registers in SMU context</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">So we can eventaully use them in the common smu code for<br>
accessing the SMU mailboxes without needing a lot of<br>
per asic logic in the common code.<br>
<br>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com><br>
---<br>
 drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h  |  4 ++++<br>
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h   |  2 ++<br>
 drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h   |  2 ++<br>
 .../gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c  |  1 +<br>
 .../amd/pm/swsmu/smu11/cyan_skillfish_ppt.c    |  1 +<br>
 .../gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c    |  1 +<br>
 .../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c    |  1 +<br>
 drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c |  9 +++++++++<br>
 .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c   |  1 +<br>
 .../gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c    | 14 ++++++++++++++<br>
 .../gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c |  1 +<br>
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 18 ++++++++++++++++++<br>
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c   |  1 +<br>
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c   | 14 ++++++++++++++<br>
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c   | 14 ++++++++++++++<br>
 .../drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c   |  1 +<br>
 .../drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c   |  1 +<br>
 17 files changed, 86 insertions(+)<br>
<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h<br>
index a6a7b6c33683..36af1f417dcd 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/amdgpu_smu.h<br>
@@ -563,6 +563,10 @@ struct smu_context<br>
         struct stb_context stb_context;<br>
 <br>
         struct firmware pptable_firmware;<br>
+<br>
+       u32 param_reg;<br>
+       u32 msg_reg;<br>
+       u32 resp_reg;<br>
 };<br>
 <br>
 struct i2c_adapter;<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h<br>
index acb3be292096..a9215494dcdd 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v11_0.h<br>
@@ -316,5 +316,7 @@ int smu_v11_0_handle_passthrough_sbr(struct smu_context *smu, bool enable);<br>
 <br>
 int smu_v11_0_restore_user_od_settings(struct smu_context *smu);<br>
 <br>
+void smu_v11_0_set_smu_mailbox_registers(struct smu_context *smu);<br>
+<br>
 #endif<br>
 #endif<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h<br>
index 036fd2810ecc..f60dcc4f7e75 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h<br>
@@ -298,5 +298,7 @@ int smu_v13_0_od_edit_dpm_table(struct smu_context *smu,<br>
                                 uint32_t size);<br>
 <br>
 int smu_v13_0_set_default_dpm_tables(struct smu_context *smu);<br>
+<br>
+void smu_v13_0_set_smu_mailbox_registers(struct smu_context *smu);<br>
 #endif<br>
 #endif<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c<br>
index 201563072189..bfabcd3c45aa 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c<br>
@@ -2509,4 +2509,5 @@ void arcturus_set_ppt_funcs(struct smu_context *smu)<br>
         smu->table_map = arcturus_table_map;<br>
         smu->pwr_src_map = arcturus_pwr_src_map;<br>
         smu->workload_map = arcturus_workload_map;<br>
+       smu_v11_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c<br>
index f1a4a720d426..ca4d97b7f576 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/cyan_skillfish_ppt.c<br>
@@ -591,4 +591,5 @@ void cyan_skillfish_set_ppt_funcs(struct smu_context *smu)<br>
         smu->message_map = cyan_skillfish_message_map;<br>
         smu->table_map = cyan_skillfish_table_map;<br>
         smu->is_apu = true;<br>
+       smu_v11_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c<br>
index 5f22fc3430f4..0bcd4fe0ef17 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c<br>
@@ -3580,4 +3580,5 @@ void navi10_set_ppt_funcs(struct smu_context *smu)<br>
         smu->table_map = navi10_table_map;<br>
         smu->pwr_src_map = navi10_pwr_src_map;<br>
         smu->workload_map = navi10_workload_map;<br>
+       smu_v11_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c<br>
index 6b452e3f5ee3..f6f21b516fd6 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c<br>
@@ -4357,4 +4357,5 @@ void sienna_cichlid_set_ppt_funcs(struct smu_context *smu)<br>
         smu->table_map = sienna_cichlid_table_map;<br>
         smu->pwr_src_map = sienna_cichlid_pwr_src_map;<br>
         smu->workload_map = sienna_cichlid_workload_map;<br>
+       smu_v11_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c<br>
index b87f550af26b..974b8fe1dbb6 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c<br>
@@ -2197,3 +2197,12 @@ int smu_v11_0_restore_user_od_settings(struct smu_context *smu)<br>
 <br>
         return ret;<br>
 }<br>
+<br>
+void smu_v11_0_set_smu_mailbox_registers(struct smu_context *smu)<br>
+{<br>
+       struct amdgpu_device *adev = smu->adev;<br>
+<br>
+       smu->param_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_82);<br>
+       smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_66);<br>
+       smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_90);<br>
+}<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c<br>
index 5551e1426ef5..e2d8ac90cf36 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c<br>
@@ -2213,4 +2213,5 @@ void vangogh_set_ppt_funcs(struct smu_context *smu)<br>
         smu->table_map = vangogh_table_map;<br>
         smu->workload_map = vangogh_workload_map;<br>
         smu->is_apu = true;<br>
+       smu_v11_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c<br>
index 012e3bd99cc2..85e22210963f 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c<br>
@@ -41,6 +41,15 @@<br>
 #undef pr_info<br>
 #undef pr_debug<br>
 <br>
+#define mmMP1_SMN_C2PMSG_66                                                                            0x0282<br>
+#define mmMP1_SMN_C2PMSG_66_BASE_IDX                                                                   0<br>
+<br>
+#define mmMP1_SMN_C2PMSG_82                                                                            0x0292<br>
+#define mmMP1_SMN_C2PMSG_82_BASE_IDX                                                                   0<br>
+<br>
+#define mmMP1_SMN_C2PMSG_90                                                                            0x029a<br>
+#define mmMP1_SMN_C2PMSG_90_BASE_IDX                                                                   0<br>
+<br>
 static struct cmn2asic_msg_mapping renoir_message_map[SMU_MSG_MAX_COUNT] = {<br>
         MSG_MAP(TestMessage,                    PPSMC_MSG_TestMessage,                  1),<br>
         MSG_MAP(GetSmuVersion,                  PPSMC_MSG_GetSmuVersion,                1),<br>
@@ -1447,6 +1456,8 @@ static const struct pptable_funcs renoir_ppt_funcs = {<br>
 <br>
 void renoir_set_ppt_funcs(struct smu_context *smu)<br>
 {<br>
+       struct amdgpu_device *adev = smu->adev;<br>
+<br>
         smu->ppt_funcs = &renoir_ppt_funcs;<br>
         smu->message_map = renoir_message_map;<br>
         smu->clock_map = renoir_clk_map;<br>
@@ -1454,4 +1465,7 @@ void renoir_set_ppt_funcs(struct smu_context *smu)<br>
         smu->workload_map = renoir_workload_map;<br>
         smu->smc_driver_if_version = SMU12_DRIVER_IF_VERSION;<br>
         smu->is_apu = true;<br>
+       smu->param_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_82);<br>
+       smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_66);<br>
+       smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_90);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c<br>
index fb130409309c..2e6a93869be8 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c<br>
@@ -2117,4 +2117,5 @@ void aldebaran_set_ppt_funcs(struct smu_context *smu)<br>
         smu->clock_map = aldebaran_clk_map;<br>
         smu->feature_map = aldebaran_feature_mask_map;<br>
         smu->table_map = aldebaran_table_map;<br>
+       smu_v13_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c<br>
index 7be4f6875a7b..6fd3216b91d0 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c<br>
@@ -60,6 +60,15 @@ MODULE_FIRMWARE("amdgpu/aldebaran_smc.bin");<br>
 MODULE_FIRMWARE("amdgpu/smu_13_0_0.bin");<br>
 MODULE_FIRMWARE("amdgpu/smu_13_0_7.bin");<br>
 <br>
+#define mmMP1_SMN_C2PMSG_66                                                                            0x0282<br>
+#define mmMP1_SMN_C2PMSG_66_BASE_IDX                                                                   0<br>
+<br>
+#define mmMP1_SMN_C2PMSG_82                                                                            0x0292<br>
+#define mmMP1_SMN_C2PMSG_82_BASE_IDX                                                                   0<br>
+<br>
+#define mmMP1_SMN_C2PMSG_90                                                                            0x029a<br>
+#define mmMP1_SMN_C2PMSG_90_BASE_IDX                                                                   0<br>
+<br>
 #define SMU13_VOLTAGE_SCALE 4<br>
 <br>
 #define LINK_WIDTH_MAX                          6<br>
@@ -2386,3 +2395,12 @@ int smu_v13_0_set_default_dpm_tables(struct smu_context *smu)<br>
         return smu_cmn_update_table(smu, SMU_TABLE_DPMCLOCKS, 0,<br>
                                     smu_table->clocks_table, false);<br>
 }<br>
+<br>
+void smu_v13_0_set_smu_mailbox_registers(struct smu_context *smu)<br>
+{<br>
+       struct amdgpu_device *adev = smu->adev;<br>
+<br>
+       smu->param_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_82);<br>
+       smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_66);<br>
+       smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_90);<br>
+}<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c<br>
index 5c74a72577c6..418480e0c077 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_0_ppt.c<br>
@@ -1651,4 +1651,5 @@ void smu_v13_0_0_set_ppt_funcs(struct smu_context *smu)<br>
         smu->table_map = smu_v13_0_0_table_map;<br>
         smu->pwr_src_map = smu_v13_0_0_pwr_src_map;<br>
         smu->workload_map = smu_v13_0_0_workload_map;<br>
+       smu_v13_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c<br>
index 5a17b51aa0f9..8ccda593fc50 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c<br>
@@ -43,6 +43,15 @@<br>
 #undef pr_info<br>
 #undef pr_debug<br>
 <br>
+#define mmMP1_SMN_C2PMSG_66                    0x0282<br>
+#define mmMP1_SMN_C2PMSG_66_BASE_IDX            1<br>
+<br>
+#define mmMP1_SMN_C2PMSG_82                    0x0292<br>
+#define mmMP1_SMN_C2PMSG_82_BASE_IDX            1<br>
+<br>
+#define mmMP1_SMN_C2PMSG_90                    0x029a<br>
+#define mmMP1_SMN_C2PMSG_90_BASE_IDX           1<br>
+<br>
 #define FEATURE_MASK(feature) (1ULL << feature)<br>
 <br>
 #define SMC_DPM_FEATURE ( \<br>
@@ -1034,9 +1043,14 @@ static const struct pptable_funcs smu_v13_0_4_ppt_funcs = {<br>
 <br>
 void smu_v13_0_4_set_ppt_funcs(struct smu_context *smu)<br>
 {<br>
+       struct amdgpu_device *adev = smu->adev;<br>
+<br>
         smu->ppt_funcs = &smu_v13_0_4_ppt_funcs;<br>
         smu->message_map = smu_v13_0_4_message_map;<br>
         smu->feature_map = smu_v13_0_4_feature_mask_map;<br>
         smu->table_map = smu_v13_0_4_table_map;<br>
         smu->is_apu = true;<br>
+       smu->param_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_82);<br>
+       smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_66);<br>
+       smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_SMN_C2PMSG_90);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c<br>
index b81711c4ff33..47360ef5c175 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c<br>
@@ -42,6 +42,15 @@<br>
 #undef pr_info<br>
 #undef pr_debug<br>
 <br>
+#define mmMP1_C2PMSG_2                                                                            (0xbee142 + 0xb00000 / 4)<br>
+#define mmMP1_C2PMSG_2_BASE_IDX                                                                   0<br>
+<br>
+#define mmMP1_C2PMSG_34                                                                           (0xbee262 + 0xb00000 / 4)<br>
+#define mmMP1_C2PMSG_34_BASE_IDX                                                                   0<br>
+<br>
+#define mmMP1_C2PMSG_33                                                                                (0xbee261 + 0xb00000 / 4)<br>
+#define mmMP1_C2PMSG_33_BASE_IDX                                                                   0<br>
+<br>
 #define FEATURE_MASK(feature) (1ULL << feature)<br>
 #define SMC_DPM_FEATURE ( \<br>
         FEATURE_MASK(FEATURE_CCLK_DPM_BIT) | \<br>
@@ -1049,9 +1058,14 @@ static const struct pptable_funcs smu_v13_0_5_ppt_funcs = {<br>
 <br>
 void smu_v13_0_5_set_ppt_funcs(struct smu_context *smu)<br>
 {<br>
+       struct amdgpu_device *adev = smu->adev;<br>
+<br>
         smu->ppt_funcs = &smu_v13_0_5_ppt_funcs;<br>
         smu->message_map = smu_v13_0_5_message_map;<br>
         smu->feature_map = smu_v13_0_5_feature_mask_map;<br>
         smu->table_map = smu_v13_0_5_table_map;<br>
         smu->is_apu = true;<br>
+       smu->param_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_C2PMSG_34);<br>
+       smu->msg_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_C2PMSG_2);<br>
+       smu->resp_reg = SOC15_REG_OFFSET(MP1, 0, mmMP1_C2PMSG_33);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c<br>
index 4e1861fb2c6a..bdea7bca3805 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_7_ppt.c<br>
@@ -1594,4 +1594,5 @@ void smu_v13_0_7_set_ppt_funcs(struct smu_context *smu)<br>
         smu->table_map = smu_v13_0_7_table_map;<br>
         smu->pwr_src_map = smu_v13_0_7_pwr_src_map;<br>
         smu->workload_map = smu_v13_0_7_workload_map;<br>
+       smu_v13_0_set_smu_mailbox_registers(smu);<br>
 }<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c<br>
index feff4f8c927c..70cbc46341a3 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/yellow_carp_ppt.c<br>
@@ -1203,4 +1203,5 @@ void yellow_carp_set_ppt_funcs(struct smu_context *smu)<br>
         smu->feature_map = yellow_carp_feature_mask_map;<br>
         smu->table_map = yellow_carp_table_map;<br>
         smu->is_apu = true;<br>
+       smu_v13_0_set_smu_mailbox_registers(smu);<br>
 }<br>
-- <br>
2.35.3<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>