Open mmozeiko opened 1 day ago
Yes, that got dropped in the change to using the upstream bcm2712.dtsi. The pre-release squashing that happens to the tree means I can't see where we lost it, but was probably just never added.
https://github.com/raspberrypi/linux/pull/6508 includes the obvious fix.
Describe the bug
perf
utility is not able to use hardware PMU counters on 6.12 kernel on Raspberry Pi 5It seems 6.12.y tree is missing pmu node in device tree: In 6.6.y - https://github.com/raspberrypi/linux/blob/rpi-6.6.y/arch/arm64/boot/dts/broadcom/bcm2712.dtsi#L725-L732 In 6.12.y - https://github.com/raspberrypi/linux/blob/rpi-6.12.y/arch/arm64/boot/dts/broadcom/bcm2712.dtsi
Steps to reproduce the behaviour
Run
dmesg | grep perfevents
- it does not show anything. Or check/sys/bus/event_source/devices/armv8_cortex_a76
folder - it does not exist.On 6.6
dmesg | grep perfevents
shows:and
/sys/bus/event_source/devices/armv8_cortex_a76/events/
exists and contains bunch of counter events.I've patched my device tree file
/boot/bcm2712-rpi-5-b.dtb
by adding this section:I don't know if these values are 100% correct, I tried to guess them - I used 6.6 dts as example, and only changed interrupt-affinity to matching values for 6.12 dts file.
Then
dmesg | grep perfevents
shows:and
/sys/bus/event_source/devices/armv8_cortex_a76/events/
folder contains bunch of counter events.After this patch the
perf
works, at least on events I've tried - cpu cycles & instructions.Device (s)
Raspberry Pi 5
System
I am running ArchLinux ARM with
linux-rpi-16k 6.12.1-1
package for kernel.Logs
No response
Additional context
No response