# Re: \[PATCH v3 1/2\] cpupower: Fix amd cpu (family \< 0x17) active state issue

- From: Shuah Khan \<skhan@linuxfoundation.org\>
- Date: 2021-07-26 20:04:18 
- List: linux-pm
- Page: https://ratatoskr.run/linux-pm/2021/07/1458716
- Thread: https://ratatoskr.run/linux-pm/2021/07/1458716/t.md

```text
On 7/23/21 12:23 AM, 徐福海 wrote:
> From: xufuhai<redacted>  <mailto:<redacted>>
>
> 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~
>
> Reproduce procedure:
> 	cpupower frequency-info
>
> Reported-by:   yangrui<redacted>  <mailto:<redacted>>
> Signed-off-by: xufuhai<redacted>  <mailto:<redacted>>
> Signed-off-by: chenguanqiao<redacted>  <mailto:<redacted>>
> Signed-off-by: lishujin<redacted>  <mailto:<redacted>>

Please use your full names for the Signed-off-by - similar to the way you
would sign a legal document.

thanks,
-- Shuah
```
