Thread (2 messages) 2 messages, 2 authors, 2026-02-27

Re: [PATCH v3] arm64: topology: Fix false warning in counters_read_on_cpu() for same-CPU reads

From: Will Deacon <will@kernel.org>
Date: 2026-02-27 03:16:53
Also in: linux-pm, linux-tegra, lkml

On Thu, 26 Feb 2026 17:29:11 +0530, Sumit Gupta wrote:
The counters_read_on_cpu() function warns when called with IRQs
disabled to prevent deadlock in smp_call_function_single(). However,
this warning is spurious when reading counters on the current CPU,
since no IPI is needed for same CPU reads.

Commit 12eb8f4fff24 ("cpufreq: CPPC: Update FIE arch_freq_scale in
ticks for non-PCC regs") changed the CPPC Frequency Invariance Engine
to read AMU counters directly from the scheduler tick for non-PCC
register spaces (like FFH), instead of deferring to a kthread. This
means counters_read_on_cpu() is now called with IRQs disabled from the
tick handler, triggering the warning.

[...]
Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: topology: Fix false warning in counters_read_on_cpu() for same-CPU reads
      https://git.kernel.org/arm64/c/df6e4ab654dc

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help