PMU setting in bcm2387 dtsi file

Vince Weaver vincent.weaver at maine.edu
Fri Aug 11 12:08:25 PDT 2017


Hello

I managed to get an upstream git kernel booted on my pi3 (minus USB of 
course).

I noticed that the upstream dts file doesn't have PMU (performance 
monitoring unit) support.

I got simple support working with the below patch, but it doesn't properly 
hook up the PMU interrupt (so no sampling support).  Does anyone know the 
proper interrupt setting?  Should I just copy the bcm2386 one, or did 
things change enough that that won't work?

Thanks,

Vince

diff --git a/arch/arm64/boot/dts/broadcom/bcm2837.dtsi 
b/arch/arm64/boot/dts/broadcom/bcm2837.dtsi
index 2d5de6f0..099cb16 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2837.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2837.dtsi
@@ -63,6 +63,12 @@
                        cpu-release-addr = <0x0 0x000000f0>;
                };
        };
+
+       pmu {
+               compatible = "arm,armv8-pmuv3";
+       };
+
+
 };
 
 /* Make the BCM2835-style global interrupt controller be a child of the




More information about the linux-rpi-kernel mailing list