On Wed, Nov 18, 2026 at 08:58:26PM +0200, Igor Velkov wrote:
On Wed, Nov 18, 2026 at 10:49:17AM +0000, Leo Yan wrote:
- If idle_cpu(cpu) == 0, sample the CPU directly.
- If idle_cpu(cpu) == 1, follow the existing flow to request power-up before sampling.
I tried step 2 on RK3399 (Cortex-A53 + A72, cpuidle with core powerdown), following debug_read_regs() on a running system:
- Idle A53 (EDPRSR.PU = 0): the EDOSLAR write raises an SError on the reading CPU. COREPURQ brings the core up only for a moment; with COREPURQ | CORENPDRQ it is off again within 10 ms, and the write still faults.
- Idle A72 (PU = 1, R = 1): the same SError on the EDOSLAR write.
- Busy CPUs (idle_cpu() == 0) on both clusters: no errors, full PC.
So on this SoC only step 1 is safe.
This is why I suggested 3) in my previous reply. Seems you should skip sample idle CPUs if COREPURQ/CORENPDRQ are not properly integrated in the SoC.
Thanks, Leo