linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] cpufreq: CPPC: Changing error message in CPPC FIE
@ 2025-07-30  3:23 Bowen Yu
  2025-07-30  3:23 ` [PATCH 1/2] cpufreq: CPPC: Don't warn on failing to read perf counters on offline cpus Bowen Yu
  2025-07-30  3:23 ` [PATCH 2/2] cpufreq: CPPC: Fix error handling in cppc_scale_freq_workfn() Bowen Yu
  0 siblings, 2 replies; 20+ messages in thread
From: Bowen Yu @ 2025-07-30  3:23 UTC (permalink / raw)
  To: rafael, viresh.kumar
  Cc: linux-pm, linux-kernel, linuxarm, jonathan.cameron, zhanjie9,
	lihuisong, zhenglifeng1, yubowen8

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


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-08-15  3:49 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30  3:23 [PATCH 0/2] cpufreq: CPPC: Changing error message in CPPC FIE Bowen Yu
2025-07-30  3:23 ` [PATCH 1/2] cpufreq: CPPC: Don't warn on failing to read perf counters on offline cpus Bowen Yu
2025-07-30  3:23 ` [PATCH 2/2] cpufreq: CPPC: Fix error handling in cppc_scale_freq_workfn() Bowen Yu
2025-07-30  6:39   ` Viresh Kumar
2025-07-30 22:34     ` Prashant Malani
2025-07-31  8:32       ` Jie Zhan
2025-08-01  8:58         ` Prashant Malani
2025-08-04  6:21           ` Jie Zhan
2025-08-05  1:12             ` Prashant Malani
2025-08-05  4:58               ` Prashant Malani
2025-08-13  7:15                 ` Jie Zhan
2025-08-13  9:30                   ` Beata Michalska
2025-08-15  3:48                     ` Jie Zhan
2025-07-30 18:38   ` Markus Elfring
2025-07-31  4:21     ` Jie Zhan
2025-07-31 10:34       ` [2/2] " Markus Elfring
2025-07-31  8:19   ` [PATCH 2/2] " Beata Michalska
2025-07-31  8:52     ` Jie Zhan
2025-07-31  9:42       ` Beata Michalska
2025-08-04  6:31         ` Jie Zhan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).