[PATCH] ARM64: dts: rk3399: Add the missing L2 cache information This patch fixes the kernel warning "cacheinfo: Unable to detect cache hierarchy for CPU 0" for the rk3399.
Vincent Belpois
vincent.belpois at gmail.com
Mon Sep 25 10:08:21 PDT 2023
Signed-off-by: Vincent Belpois <vincent.belpois at gmail.com>
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
index 9da0b6d77c8d..4da39f3fa692 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi
@@ -71,11 +71,16 @@ cpu_l0: cpu at 0 {
compatible = "arm,cortex-a53";
reg = <0x0 0x0>;
enable-method = "psci";
+ next-level-cache = <&l2_0>;
capacity-dmips-mhz = <485>;
clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */
dynamic-power-coefficient = <100>;
cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
+
+ l2_0: l2-cache {
+ compatible = "cache,arm,arch-cache";
+ };
};
cpu_l1: cpu at 1 {
@@ -83,6 +88,7 @@ cpu_l1: cpu at 1 {
compatible = "arm,cortex-a53";
reg = <0x0 0x1>;
enable-method = "psci";
+ next-level-cache = <&l2_0>;
capacity-dmips-mhz = <485>;
clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */
@@ -95,6 +101,7 @@ cpu_l2: cpu at 2 {
compatible = "arm,cortex-a53";
reg = <0x0 0x2>;
enable-method = "psci";
+ next-level-cache = <&l2_0>;
capacity-dmips-mhz = <485>;
clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */
@@ -107,6 +114,7 @@ cpu_l3: cpu at 3 {
compatible = "arm,cortex-a53";
reg = <0x0 0x3>;
enable-method = "psci";
+ next-level-cache = <&l2_0>;
capacity-dmips-mhz = <485>;
clocks = <&cru ARMCLKL>;
#cooling-cells = <2>; /* min followed by max */
@@ -119,6 +127,7 @@ cpu_b0: cpu at 100 {
compatible = "arm,cortex-a72";
reg = <0x0 0x100>;
enable-method = "psci";
+ next-level-cache = <&l2_1>;
capacity-dmips-mhz = <1024>;
clocks = <&cru ARMCLKB>;
#cooling-cells = <2>; /* min followed by max */
@@ -130,6 +139,9 @@ thermal-idle {
duration-us = <10000>;
exit-latency-us = <500>;
};
+ l2_1: l2-cache {
+ compatible = "cache,arm,arch-cache";
+ };
};
cpu_b1: cpu at 101 {
@@ -137,6 +149,7 @@ cpu_b1: cpu at 101 {
compatible = "arm,cortex-a72";
reg = <0x0 0x101>;
enable-method = "psci";
+ next-level-cache = <&l2_1>;
capacity-dmips-mhz = <1024>;
clocks = <&cru ARMCLKB>;
#cooling-cells = <2>; /* min followed by max */
--
2.34.1
More information about the Linux-rockchip
mailing list