Message ID | 20191121011835.8467-2-andre.przywara@arm.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 7aa9b9eb7d6a8fde7acbe0446444f7e3fae1fe3b |
Headers | show |
Series | arm/arm64: dts: allwinner: Add PMU nodes | expand |
On Thu, Nov 21, 2019 at 01:18:33AM +0000, Andre Przywara wrote: > Add the Performance Monitoring Unit (PMU) device tree node to the H6 > .dtsi, which tells DT users which interrupts are triggered by PMU > overflow events on each core. The numbers come from the manual and have > been checked in U-Boot and with perf in Linux. > > Tested with perf record and taskset on a Pine H64. > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> Queued all three patches for 5.6, thanks for taking the time to do this. > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > index 29824081b43b..86a77b1734e0 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > @@ -70,6 +70,16 @@ > clock-output-names = "ext_osc32k"; > }; > > + pmu { This was indented with spaces however, unlike the rest of the DT. I've fixed it while applying. Maxime
On Thu, 21 Nov 2019 08:22:30 +0100 Maxime Ripard <maxime@cerno.tech> wrote: Hi, > On Thu, Nov 21, 2019 at 01:18:33AM +0000, Andre Przywara wrote: > > Add the Performance Monitoring Unit (PMU) device tree node to the H6 > > .dtsi, which tells DT users which interrupts are triggered by PMU > > overflow events on each core. The numbers come from the manual and have > > been checked in U-Boot and with perf in Linux. > > > > Tested with perf record and taskset on a Pine H64. > > > > Signed-off-by: Andre Przywara <andre.przywara@arm.com> > > Queued all three patches for 5.6, thanks for taking the time to do > this. > > > --- > > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++++++++++ > > 1 file changed, 10 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > index 29824081b43b..86a77b1734e0 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > > @@ -70,6 +70,16 @@ > > clock-output-names = "ext_osc32k"; > > }; > > > > + pmu { > > This was indented with spaces however, unlike the rest of the DT. I've > fixed it while applying. Shoot, thinks for fixing this up, also for queuing it! Cheers, Andre.
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 29824081b43b..86a77b1734e0 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -70,6 +70,16 @@ clock-output-names = "ext_osc32k"; }; + pmu { + compatible = "arm,cortex-a53-pmu", + "arm,armv8-pmuv3"; + interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + }; + psci { compatible = "arm,psci-0.2"; method = "smc";
Add the Performance Monitoring Unit (PMU) device tree node to the H6 .dtsi, which tells DT users which interrupts are triggered by PMU overflow events on each core. The numbers come from the manual and have been checked in U-Boot and with perf in Linux. Tested with perf record and taskset on a Pine H64. Signed-off-by: Andre Przywara <andre.przywara@arm.com> --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)