Commit 70282f31 authored by AngeloGioacchino Del Regno's avatar AngeloGioacchino Del Regno Committed by Matthias Brugger
Browse files

arm64: dts: mt8186: Add complete CPU caches information



This SoC features two clusters composed of:
 - 6x Cortex A55: 32KB I-cache and 32KB D-cache, 4-way set associative,
                  per-cpu 128KB L2 cache, 4-way set associative;
 - 2x Cortex A76: 64KB I-cache and 64KB D-cache, 4-way set associative,
                  per-cpu 256KB L2 cache, 8-way set associative;
Moreover, the two clusters are sharing a DSU L3 cache with size 1MB,
16-way set associative.

With that in mind, add the appropriate properties needed to specify the
caches information for this SoC, which will now be correctly exported
to sysfs.

Signed-off-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20221206112330.78431-4-angelogioacchino.delregno@collabora.com


Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 29288bab
Loading
Loading
Loading
Loading
+58 −0
Original line number Original line Diff line number Diff line
@@ -69,6 +69,12 @@
			clock-frequency = <2000000000>;
			clock-frequency = <2000000000>;
			capacity-dmips-mhz = <382>;
			capacity-dmips-mhz = <382>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			i-cache-size = <32768>;
			i-cache-line-size = <64>;
			i-cache-sets = <128>;
			d-cache-size = <32768>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
			next-level-cache = <&l2_0>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -81,6 +87,12 @@
			clock-frequency = <2000000000>;
			clock-frequency = <2000000000>;
			capacity-dmips-mhz = <382>;
			capacity-dmips-mhz = <382>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			i-cache-size = <32768>;
			i-cache-line-size = <64>;
			i-cache-sets = <128>;
			d-cache-size = <32768>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
			next-level-cache = <&l2_0>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -93,6 +105,12 @@
			clock-frequency = <2000000000>;
			clock-frequency = <2000000000>;
			capacity-dmips-mhz = <382>;
			capacity-dmips-mhz = <382>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			i-cache-size = <32768>;
			i-cache-line-size = <64>;
			i-cache-sets = <128>;
			d-cache-size = <32768>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
			next-level-cache = <&l2_0>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -105,6 +123,12 @@
			clock-frequency = <2000000000>;
			clock-frequency = <2000000000>;
			capacity-dmips-mhz = <382>;
			capacity-dmips-mhz = <382>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			i-cache-size = <32768>;
			i-cache-line-size = <64>;
			i-cache-sets = <128>;
			d-cache-size = <32768>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
			next-level-cache = <&l2_0>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -117,6 +141,12 @@
			clock-frequency = <2000000000>;
			clock-frequency = <2000000000>;
			capacity-dmips-mhz = <382>;
			capacity-dmips-mhz = <382>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			i-cache-size = <32768>;
			i-cache-line-size = <64>;
			i-cache-sets = <128>;
			d-cache-size = <32768>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
			next-level-cache = <&l2_0>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -129,6 +159,12 @@
			clock-frequency = <2000000000>;
			clock-frequency = <2000000000>;
			capacity-dmips-mhz = <382>;
			capacity-dmips-mhz = <382>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			cpu-idle-states = <&cpu_off_l &cluster_off_l>;
			i-cache-size = <32768>;
			i-cache-line-size = <64>;
			i-cache-sets = <128>;
			d-cache-size = <32768>;
			d-cache-line-size = <64>;
			d-cache-sets = <128>;
			next-level-cache = <&l2_0>;
			next-level-cache = <&l2_0>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -141,6 +177,12 @@
			clock-frequency = <2050000000>;
			clock-frequency = <2050000000>;
			capacity-dmips-mhz = <1024>;
			capacity-dmips-mhz = <1024>;
			cpu-idle-states = <&cpu_off_b &cluster_off_b>;
			cpu-idle-states = <&cpu_off_b &cluster_off_b>;
			i-cache-size = <65536>;
			i-cache-line-size = <64>;
			i-cache-sets = <256>;
			d-cache-size = <65536>;
			d-cache-line-size = <64>;
			d-cache-sets = <256>;
			next-level-cache = <&l2_1>;
			next-level-cache = <&l2_1>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -153,6 +195,12 @@
			clock-frequency = <2050000000>;
			clock-frequency = <2050000000>;
			capacity-dmips-mhz = <1024>;
			capacity-dmips-mhz = <1024>;
			cpu-idle-states = <&cpu_off_b &cluster_off_b>;
			cpu-idle-states = <&cpu_off_b &cluster_off_b>;
			i-cache-size = <65536>;
			i-cache-line-size = <64>;
			i-cache-sets = <256>;
			d-cache-size = <65536>;
			d-cache-line-size = <64>;
			d-cache-sets = <256>;
			next-level-cache = <&l2_1>;
			next-level-cache = <&l2_1>;
			#cooling-cells = <2>;
			#cooling-cells = <2>;
		};
		};
@@ -200,18 +248,28 @@
		l2_0: l2-cache0 {
		l2_0: l2-cache0 {
			compatible = "cache";
			compatible = "cache";
			cache-level = <2>;
			cache-level = <2>;
			cache-size = <131072>;
			cache-line-size = <64>;
			cache-sets = <512>;
			next-level-cache = <&l3_0>;
			next-level-cache = <&l3_0>;
		};
		};


		l2_1: l2-cache1 {
		l2_1: l2-cache1 {
			compatible = "cache";
			compatible = "cache";
			cache-level = <2>;
			cache-level = <2>;
			cache-size = <262144>;
			cache-line-size = <64>;
			cache-sets = <512>;
			next-level-cache = <&l3_0>;
			next-level-cache = <&l3_0>;
		};
		};


		l3_0: l3-cache {
		l3_0: l3-cache {
			compatible = "cache";
			compatible = "cache";
			cache-level = <3>;
			cache-level = <3>;
			cache-size = <1048576>;
			cache-line-size = <64>;
			cache-sets = <1024>;
			cache-unified;
		};
		};
	};
	};