Skip to content

Commit 4072b16

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Allow system metrics table in 1vf mode
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>
1 parent df99f6d commit 4072b16

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_12_ppt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const struct cmn2asic_msg_mapping smu_v13_0_12_message_map[SMU_MSG_MAX_COUNT] =
137137
MSG_MAP(SetThrottlingPolicy, PPSMC_MSG_SetThrottlingPolicy, 0),
138138
MSG_MAP(ResetSDMA, PPSMC_MSG_ResetSDMA, 0),
139139
MSG_MAP(GetStaticMetricsTable, PPSMC_MSG_GetStaticMetricsTable, 1),
140-
MSG_MAP(GetSystemMetricsTable, PPSMC_MSG_GetSystemMetricsTable, 0),
140+
MSG_MAP(GetSystemMetricsTable, PPSMC_MSG_GetSystemMetricsTable, 1),
141141
};
142142

143143
int smu_v13_0_12_tables_init(struct smu_context *smu)

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu)
356356
if (fw_ver >= 0x04560700) {
357357
if (!amdgpu_sriov_vf(smu->adev))
358358
smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
359+
else if (fw_ver >= 0x04560900)
360+
smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
359361
} else {
360362
smu_v13_0_12_tables_fini(smu);
361363
}

0 commit comments

Comments
 (0)