Skip to contentSkip to conversation

arm64: dts: socfpga: stratix10: add L2 cache info

PATCH Applied Beniamin Sandu 2 participants 2 messages May 15, 2024 – Jun 3, 2024

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

PATCH 1/1 arm64: dts: socfpga: stratix10: add L2 cache info

This removes cacheinfo warnings at boot, e.g.:
cacheinfo: Unable to detect cache hierarchy for CPU 0

---
 arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +10 -0
index cbbc53c47921..0def0b0daaf7 100644
@@ -34,6 +34,7 @@ cpu0: cpu@0 {
 			compatible = "arm,cortex-a53";
 			device_type = "cpu";
 			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
 			reg = <0x0>;
 		};
 
@@ -41,6 +42,7 @@ cpu1: cpu@1 {
 			compatible = "arm,cortex-a53";
 			device_type = "cpu";
 			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
 			reg = <0x1>;
 		};
 
@@ -48,6 +50,7 @@ cpu2: cpu@2 {
 			compatible = "arm,cortex-a53";
 			device_type = "cpu";
 			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
 			reg = <0x2>;
 		};
 
@@ -55,8 +58,15 @@ cpu3: cpu@3 {
 			compatible = "arm,cortex-a53";
 			device_type = "cpu";
 			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
 			reg = <0x3>;
 		};
+
+		l2_shared: cache {
+			compatible = "cache";
+			cache-level = <2>;
+			cache-unified;
+		};
 	};
 
 	firmware {
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 42 lines · Beniamin Sandu

This removes cacheinfo warnings at boot, e.g.:
cacheinfo: Unable to detect cache hierarchy for CPU 0

---
  arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 10 ++++++++++
  1 file changed, 10 insertions(+)
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +4 -0
index cbbc53c47921..0def0b0daaf7 100644
@@ -34,6 +34,7 @@ cpu0: cpu@0 {
  			compatible = "arm,cortex-a53";
  			device_type = "cpu";
  			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
  			reg = <0x0>;
  		};
 
@@ -41,6 +42,7 @@ cpu1: cpu@1 {
  			compatible = "arm,cortex-a53";
  			device_type = "cpu";
  			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
  			reg = <0x1>;
  		};
 
@@ -48,6 +50,7 @@ cpu2: cpu@2 {
  			compatible = "arm,cortex-a53";
  			device_type = "cpu";
  			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
  			reg = <0x2>;
  		};
 
@@ -55,8 +58,15 @@ cpu3: cpu@3 {
  			compatible = "arm,cortex-a53";
  			device_type = "cpu";
  			enable-method = "psci";
+			next-level-cache = <&l2_shared>;
  			reg = <0x3>;

arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi cpu3: cpu@3 { · line 72

Quoted 10 lines
arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi +6 -0
  		};
+
+		l2_shared: cache {
+			compatible = "cache";
+			cache-level = <2>;
+			cache-unified;
+		};
  	};
 
  	firmware {

Applied!

Thanks,
Dinh