[PATCH 0/2] cpufreq: CPPC: Changing error message in CPPC FIE

Bowen Yu posted 2 patches 2 months, 1 week ago
drivers/cpufreq/cppc_cpufreq.c | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
[PATCH 0/2] cpufreq: CPPC: Changing error message in CPPC FIE
Posted by Bowen Yu 2 months, 1 week ago
Currently, when booting a subset of cpus in policy->related_cpus, and
entering the CPPC FIE initialization process during CPU initialization,
there are repeated warnings: "read perf counters failed".

This occurs because reading performance feedback counters from offline
or low-power idle CPUs may return 0, which is interpreted as an error
and results in returning -EFAULT each time this happens.

Remove warning when reading from offline cpus, and changes the print
level to debug in case the cpu is in low-power idle state.


Jie Zhan (2):
  cpufreq: CPPC: Don't warn on failing to read perf counters on offline
    cpus
  cpufreq: CPPC: Fix error handling in cppc_scale_freq_workfn()

 drivers/cpufreq/cppc_cpufreq.c | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

-- 
2.33.0