mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 23:52:08 +02:00
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 <asad.kamal@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
347efe5b39
commit
c7d43a1485
|
|
@ -392,11 +392,13 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
|
|||
if ((pgm == 7 && fw_ver >= 0x7550E00) ||
|
||||
(pgm == 0 && fw_ver >= 0x00557E00))
|
||||
smu_v13_0_6_cap_set(smu, SMU_CAP(HST_LIMIT_METRICS));
|
||||
if (fw_ver >= 0x00557F01) {
|
||||
if ((pgm == 0 && fw_ver >= 0x00557F01) ||
|
||||
(pgm == 7 && fw_ver >= 0x7551000)) {
|
||||
smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS));
|
||||
smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE));
|
||||
}
|
||||
if (fw_ver >= 0x00558000)
|
||||
if ((pgm == 0 && fw_ver >= 0x00558000) ||
|
||||
(pgm == 7 && fw_ver >= 0x7551000))
|
||||
smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
|
||||
}
|
||||
if (((pgm == 7) && (fw_ver >= 0x7550700)) ||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user