Skip to contentSkip to conversation

ARM: dts: sun4i-a10: Add PMU node

PATCH Applied Harald Geyer 2 participants 2 messages Dec 16, 2018 – Dec 17, 2018

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

PATCH 1/1 ARM: dts: sun4i-a10: Add PMU node

This is necessary to use 'perf' for cache profiling etc. Tested on cubieboard with 'perf stat echo foo'.

---
 arch/arm/boot/dts/sun4i-a10.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

While looking into this, I noticed that the dtsi files for the allwinner SoCs have no information about caches in them. Is this on purpose?

arch/arm/boot/dts/sun4i-a10.dtsi +5 -0
index 5d46bb0139fa..a2fb473cbb9d 100644
@@ -184,6 +184,11 @@
 		status = "disabled";
 	};
 
+	pmu {
+		compatible = "arm,cortex-a8-pmu";
+		interrupts = <3>;
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <1>;
Signature · 1 line
2.11.0
#1 lore raw

Hi!

Quoted 4 lines · Harald Geyer

This is necessary to use 'perf' for cache profiling etc. Tested on cubieboard with 'perf stat echo foo'.

Queued for 4.22, thanks

Quoted 6 lines
---
 arch/arm/boot/dts/sun4i-a10.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

While looking into this, I noticed that the dtsi files for the allwinner SoCs have no information about caches in them. Is this on purpose?

No, it's just that no one did it so far.

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel