Skip to content

Commit fcf7ff6

Browse files
jason77-wangShawn Guo
authored andcommitted
arm64: dts: ls1028a: add l1 and l2 cache info
When we ran the stress-ng cache related stressors, we got the log as below: ubuntu@ubuntu:~$ stress-ng --l1cache 4 stress-ng: info: [656] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [656] dispatching hogs: 4 l1cache stress-ng: info: [657] stress-ng-l1cache: skipping stressor, cannot determine cache level 1 information from kernel This is because the l1 and l2 cache info is missing in the devicetree, ls1028a has dual cortex-a72 cores and has 48KB icache, 32KB dcache and 1MB l2 ucache: - icache is 3-way set associative - dcache is 2-way set associative - l2cache is 16-way set associative - line size are 64bytes Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent aca2687 commit fcf7ff6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
reg = <0x0>;
2929
enable-method = "psci";
3030
clocks = <&clockgen QORIQ_CLK_CMUX 0>;
31+
i-cache-size = <0xc000>;
32+
i-cache-line-size = <64>;
33+
i-cache-sets = <256>;
34+
d-cache-size = <0x8000>;
35+
d-cache-line-size = <64>;
36+
d-cache-sets = <256>;
3137
next-level-cache = <&l2>;
3238
cpu-idle-states = <&CPU_PW20>;
3339
#cooling-cells = <2>;
@@ -39,6 +45,12 @@
3945
reg = <0x1>;
4046
enable-method = "psci";
4147
clocks = <&clockgen QORIQ_CLK_CMUX 0>;
48+
i-cache-size = <0xc000>;
49+
i-cache-line-size = <64>;
50+
i-cache-sets = <256>;
51+
d-cache-size = <0x8000>;
52+
d-cache-line-size = <64>;
53+
d-cache-sets = <256>;
4254
next-level-cache = <&l2>;
4355
cpu-idle-states = <&CPU_PW20>;
4456
#cooling-cells = <2>;
@@ -48,6 +60,9 @@
4860
compatible = "cache";
4961
cache-level = <2>;
5062
cache-unified;
63+
cache-size = <0x100000>;
64+
cache-line-size = <64>;
65+
cache-sets = <1024>;
5166
};
5267
};
5368

0 commit comments

Comments
 (0)