]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/amd/pm: Allow system metrics table in 1vf mode
authorAsad Kamal <asad.kamal@amd.com>
Mon, 15 Sep 2025 09:53:19 +0000 (17:53 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Sep 2025 13:43:02 +0000 (09:43 -0400)
Allow fetching system metrics table in 1VF mode

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 0bec12b348cedf3fb58897a338464766169fabb5..f10228de416c65549888f1fcda21cbed2409ed2d 100644 (file)
@@ -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)
index fd1d8e48273f7c9d6a94c3a42c6e55692041f865..4e2a2393fff54e2e7d56b83e83cd0f97eb3d91fa 100644 (file)
@@ -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);
        }