Skip to contentSkip to conversation

arm64: dts: mt7622: specify the L2 cache topology

PATCH Applied Rui Salvaterra 2 participants 2 messages Apr 28, 2022 – Apr 29, 2022

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

PATCH 1/1 arm64: dts: mt7622: specify the L2 cache topology

On an MT7622 system, the kernel complains of not being able to detect the cache hierarchy of CPU 0. Specify the shared L2 cache node in the device tree, in order to fix this.

---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +7 -0
index 6f8cb3ad1e84..3d6eaf6dd078 100644
@@ -80,6 +80,7 @@ cpu0: cpu@0 {
 			enable-method = "psci";
 			clock-frequency = <1300000000>;
 			cci-control-port = <&cci_control2>;
+			next-level-cache = <&L2>;
 		};
 
 		cpu1: cpu@1 {
@@ -94,6 +95,12 @@ cpu1: cpu@1 {
 			enable-method = "psci";
 			clock-frequency = <1300000000>;
 			cci-control-port = <&cci_control2>;
+			next-level-cache = <&L2>;
+		};
+
+		L2: l2-cache {
+			compatible = "cache";
+			cache-level = <2>;
 		};
 	};
 
Signature · 1 line
2.36.0
maintainer Applied
#1 lore raw
Quoted 5 lines · Rui Salvaterra

On an MT7622 system, the kernel complains of not being able to detect the cache hierarchy of CPU 0. Specify the shared L2 cache node in the device tree, in order to fix this.

Applied, thanks!

Quoted 29 lines
---
  arch/arm64/boot/dts/mediatek/mt7622.dtsi | 7 +++++++
  1 file changed, 7 insertions(+)
arch/arm64/boot/dts/mediatek/mt7622.dtsi +7 -0
index 6f8cb3ad1e84..3d6eaf6dd078 100644
@@ -80,6 +80,7 @@ cpu0: cpu@0 {
  			enable-method = "psci";
  			clock-frequency = <1300000000>;
  			cci-control-port = <&cci_control2>;
+			next-level-cache = <&L2>;
  		};
 
  		cpu1: cpu@1 {
@@ -94,6 +95,12 @@ cpu1: cpu@1 {
  			enable-method = "psci";
  			clock-frequency = <1300000000>;
  			cci-control-port = <&cci_control2>;
+			next-level-cache = <&L2>;
+		};
+
+		L2: l2-cache {
+			compatible = "cache";
+			cache-level = <2>;
  		};
  	};