mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 13:59:45 -04:00
drm/amd/pm: Make static table support conditional
Add PMFW version check for static table support on SMU v13.0.6 VFs. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -402,14 +402,28 @@ 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 ((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 (amdgpu_sriov_vf(adev)) {
|
||||
if ((pgm == 0 && fw_ver >= 0x00558000) ||
|
||||
(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));
|
||||
smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
|
||||
}
|
||||
} else {
|
||||
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 ((pgm == 0 && fw_ver >= 0x00558000) ||
|
||||
(pgm == 7 && fw_ver >= 0x7551000))
|
||||
smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
|
||||
}
|
||||
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)) ||
|
||||
((pgm == 0) && (fw_ver >= 0x00557900)) ||
|
||||
|
||||
Reference in New Issue
Block a user