coresight: cpu-debug: PC sampling via PMPCSR (FEAT_PCSRv8p2)?
Igor Velkov
iav at iav.lv
Wed Nov 18 10:58:26 PST 2026
On Wed, Nov 18, 2026 at 10:49:17AM +0000, Leo Yan wrote:
> 1) If idle_cpu(cpu) == 0, sample the CPU directly.
> 2) 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.
Thanks,
Igor
More information about the linux-arm-kernel
mailing list