PMU setting in bcm2387 dtsi file

Stefan Wahren stefan.wahren at i2se.com
Tue Aug 15 22:57:59 PDT 2017


> Vince Weaver <vincent.weaver at maine.edu> hat am 15. August 2017 um 21:01 geschrieben:
> 
> 
> On Sun, 13 Aug 2017, Stefan Wahren wrote:
> 
> > Please do not this. I like to see the correct values in the dts files. 
> > The bcm2836 ones doesn't look suitable to me. I think the 
> > rockchip/rk3328.dtsi is similiar to the bcm2837 and it defines one irq 
> > for each core.
> 
> I did ask at the bare-metal forum, and they pointed me to this document:
> https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA7_rev3.4.pdf
> 
> Which seems to indicate that the PMU interrupt is on IRQ9 on all cores.
> 
> So if I just copy over the bcm2836 device tree pmu interrupt fields:
> 
> +
> +       pmu {
> +               compatible = "arm,armv8-pmuv3";
> +               interrupt-parent = <&local_intc>;
> +               interrupts = <9>;
> +       };
> +
> 
> It actually works as expcted for my various perf_event tests, including 
> ones that depend on interrupts.

Just a question: did you only test 64 bit mode or 32 bit, too?

> 
> $ cat /proc/interrupts 
>            CPU0       CPU1       CPU2       CPU3       
> ....
>   9:        562          4       1616         10  bcm2836-pmu   9 Edge      arm-pmu
> 
> Vince



More information about the linux-rpi-kernel mailing list