Apu prerequisites (#1946)
* Don't require powercap support APUs don't necessarily support setting a power cap from sysfs. Ignore failures of the file missing. Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> * Show edge temperature in default output if hotspot is missing APUs don't have a hotspot temperature, they have an edge though. Use that. Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> * Format all "power" keys as watts There will be more power keys when APU support is added, so format them properly. Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> * Don't show power limit in output if it's invalid APUs can't set power limit using power_cap1 interface. The limit will be 0 and thus the UX looks weird in default output. Only add the `/power_limit` if it's valid. Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> * Unify sizes of `amdsmi_power_info_t` Sizes are used inconsistently. This causes tools to not show N/A when they should. Make them unified. Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org> --------- Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
24ff76a880
işleme
a08170bc75
@@ -3067,7 +3067,7 @@ def amdsmi_get_power_info(
|
||||
}
|
||||
|
||||
for key, value in power_info_dict.items():
|
||||
if value == 0xFFFF:
|
||||
if value in (MaxUIntegerTypes.UINT8_T, MaxUIntegerTypes.UINT16_T, MaxUIntegerTypes.UINT32_T, MaxUIntegerTypes.UINT64_T):
|
||||
power_info_dict[key] = "N/A"
|
||||
|
||||
return power_info_dict
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle