Skip to content

Commit c7d43a1

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 other smu_v13_0_6 program 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 347efe5 commit c7d43a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,13 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
392392
if ((pgm == 7 && fw_ver >= 0x7550E00) ||
393393
(pgm == 0 && fw_ver >= 0x00557E00))
394394
smu_v13_0_6_cap_set(smu, SMU_CAP(HST_LIMIT_METRICS));
395-
if (fw_ver >= 0x00557F01) {
395+
if ((pgm == 0 && fw_ver >= 0x00557F01) ||
396+
(pgm == 7 && fw_ver >= 0x7551000)) {
396397
smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS));
397398
smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE));
398399
}
399-
if (fw_ver >= 0x00558000)
400+
if ((pgm == 0 && fw_ver >= 0x00558000) ||
401+
(pgm == 7 && fw_ver >= 0x7551000))
400402
smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
401403
}
402404
if (((pgm == 7) && (fw_ver >= 0x7550700)) ||

0 commit comments

Comments
 (0)