Skip to contentSkip to conversation

cpupower: Fix amd cpu (family < 0x17) active state issue

PATCH Shuah Khan 1 participant 1 message Jul 22, 2021 1 message not in the archive

lore
Share & tools
lore

Shuah Khan

author
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines · 徐福海

From: xufuhai<[email protected]>

For the old AMD processor (family < 0x17), cpupower will call the amd_pci_get_num_boost_states function, but for the non-root user pci_read_byte function (implementation comes from the psutil library), val will be set to 0xff, indicating that there is no read function callback. At this time, the original logic will set the cpupower turbo active state to yes. This is an obvious issue~

Quoted 3 lines

Reproduce procedure:
cpupower frequency-info

Please resend this patch and the following from the same address as the Signed-off-by.

https://patchwork.kernel.org/project/linux-pm/patch/[email protected]/

thanks,
-- Shuah