coresight: cpu-debug: PC sampling via PMPCSR (FEAT_PCSRv8p2)?
Igor Velkov
iav at iav.lv
Thu Nov 12 21:46:41 PST 2026
Hi,
Cortex-A55 (Amlogic S905X3) reports EDDEVID.PCSample = 0, so
coresight-cpu-debug cannot use it. The PC is available through PMPCSR
in the external PMU frame (debug frame + 0x20000, PMDEVID.PCSample = 1).
A lab module reading PMPCSR caught the PC of a CPU stuck on a PCIe bus
access with IRQs off; on this GICv2 SoC the stop IPI never reaches it.
Two observations:
- A panic notifier samples too late: the other CPUs are stopped by
then, and on this SoC reading the PMU frame of a stopped CPU raises a
synchronous external abort. Sampling on entry to smp_send_stop()
works.
- Marvell has an out-of-tree patch, "coresight: cpu-debug: Add support
to dump PMPCSR" (2023, carried in linux-yocto); I could not find it
on the lists.
Is PMPCSR support in coresight-cpu-debug planned or welcome? And how
should such a PMU frame be described in DT: arm,coresight-cpu-debug or
a new compatible?
Thanks,
Igor
More information about the linux-arm-kernel
mailing list