Skip to content

Commit 324194b

Browse files
Asad Kamalalexdeucher
authored andcommitted
drm/amd/pm: Enable static metrics table support
Enable static metrics support to fetch board voltage and pldm version for smu_v13_0_14 Signed-off-by: Asad Kamal <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent c7d43a1 commit 324194b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ static void smu_v13_0_14_init_caps(struct smu_context *smu)
312312
smu_v13_0_6_cap_set(smu, SMU_CAP(PER_INST_METRICS));
313313
if (fw_ver >= 0x5551200)
314314
smu_v13_0_6_cap_set(smu, SMU_CAP(SDMA_RESET));
315+
if (fw_ver >= 0x5551600) {
316+
smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS));
317+
smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE));
318+
smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
319+
}
315320
}
316321

317322
static void smu_v13_0_12_init_caps(struct smu_context *smu)

0 commit comments

Comments
 (0)