Skip to contentSkip to conversation

ARM: dts: allwinner: a10: Fix PMU interrupt

PATCH Applied Andre Przywara 2 participants 2 messages Jul 20 – Jul 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: allwinner: a10: Fix PMU interrupt

The Performance Monitoring Unit of the Cortex-A8 cores in the Allwinner A10 SoC is connected to interrupt line 66, not 3. This is shown in the manual (where interrupt 3 is assigned to UART2, also in our .dtsi), but has also been confirmed by triggering an PMU overflow interrupt and inspecting the IRQ controller status registers (from U-Boot). Please note that "perf stat" does not use interrupts, this might explain why this evaded the initial testing.

Fixes 7e345d25c796 ("ARM: dts: sun4i-a10: Add PMU node")
---
 arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/allwinner/sun4i-a10.dtsi +1 -1
index 51a6464aab9a3..cabf619c2e217 100644
@@ -185,7 +185,7 @@ de: display-engine {
 
 	pmu {
 		compatible = "arm,cortex-a8-pmu";
-		interrupts = <3>;
+		interrupts = <66>;
 	};
 
 	reserved-memory {
Signature · 1 line
2.46.4
maintainer Applied
#1 lore raw
Quoted 9 lines · Andre Przywara

The Performance Monitoring Unit of the Cortex-A8 cores in the Allwinner A10 SoC is connected to interrupt line 66, not 3. This is shown in the manual (where interrupt 3 is assigned to UART2, also in our .dtsi), but has also been confirmed by triggering an PMU overflow interrupt and inspecting the IRQ controller status registers (from U-Boot). Please note that "perf stat" does not use interrupts, this might explain why this evaded the initial testing.

[...]

Applied to sunxi/dt-for-7.3 in sunxi, thanks!

[1/1] ARM: dts: allwinner: a10: Fix PMU interrupt

      https://git.kernel.org/sunxi/linux/c/eb7051f75646

Best regards,

Signature · 1 line
Chen-Yu Tsai <[email protected]>