[AMD Official Use Only - AMD Internal Distribution Only]

Series is
Reviewed-by: Yang Wang <kevinyang.w...@amd.com>

获取 Outlook for iOS<https://aka.ms/o0ukef>
________________________________
发件人: Kamal, Asad <asad.ka...@amd.com>
发送时间: Tuesday, September 16, 2025 5:05:24 PM
收件人: amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Lazar, Lijo 
<lijo.la...@amd.com>
抄送: Zhang, Hawking <hawking.zh...@amd.com>; Ma, Le <le...@amd.com>; Zhang, 
Morris <shiwu.zh...@amd.com>; Kamal, Asad <asad.ka...@amd.com>; Deucher, 
Alexander <alexander.deuc...@amd.com>; Wang, Yang(Kevin) 
<kevinyang.w...@amd.com>
主题: [PATCH v3 3/6] drm/amd/pm: Allow system metrics table in 1vf mode

Allow fetching system metrics table in 1VF mode

Signed-off-by: Asad Kamal <asad.ka...@amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c | 2 +-
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c 
b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
index 0bec12b348ce..f10228de416c 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
@@ -137,7 +137,7 @@ const struct cmn2asic_msg_mapping 
smu_v13_0_12_message_map[SMU_MSG_MAX_COUNT] =
         MSG_MAP(SetThrottlingPolicy,                 
PPSMC_MSG_SetThrottlingPolicy,             0),
         MSG_MAP(ResetSDMA,                           PPSMC_MSG_ResetSDMA,      
                 0),
         MSG_MAP(GetStaticMetricsTable,               
PPSMC_MSG_GetStaticMetricsTable,           1),
-       MSG_MAP(GetSystemMetricsTable,               
PPSMC_MSG_GetSystemMetricsTable,           0),
+       MSG_MAP(GetSystemMetricsTable,               
PPSMC_MSG_GetSystemMetricsTable,           1),
 };

 int smu_v13_0_12_tables_init(struct smu_context *smu)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c 
b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
index bcd6525ca5e9..85c0777d6e3e 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
@@ -356,6 +356,8 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu)
         if (fw_ver >= 0x04560700) {
                 if (!amdgpu_sriov_vf(smu->adev))
                         smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
+               else if (fw_ver >= 0x04560900)
+                       smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
         } else {
                 smu_v13_0_12_tables_fini(smu);
         }
--
2.46.0

Reply via email to