Skip to content

Commit 058387d

Browse files
willowecffainelli
authored andcommitted
arm64: dts: broadcom: Fix L2 linesize for Raspberry Pi 5
Set the cache-line-size parameter of the L2 cache for each core to the correct value of 64 bytes. Previously, the L2 cache line size was incorrectly set to 128 bytes for the Broadcom BCM2712. This causes validation tests for the Performance Application Programming Interface (PAPI) tool to fail as they depend on sysfs accurately reporting cache line sizes. The correct value of 64 bytes is stated in the official documentation of the ARM Cortex A-72, which is linked in the comments of arm64/boot/dts/broadcom/bcm2712.dtsi as the source for cache-line-size. Fixes: faa3381 ("arm64: dts: broadcom: Add minimal support for Raspberry Pi 5") Signed-off-by: Willow Cunningham <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Florian Fainelli <[email protected]>
1 parent 40384c8 commit 058387d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/arm64/boot/dts/broadcom/bcm2712.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
l2_cache_l0: l2-cache-l0 {
6868
compatible = "cache";
6969
cache-size = <0x80000>;
70-
cache-line-size = <128>;
70+
cache-line-size = <64>;
7171
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
7272
cache-level = <2>;
7373
cache-unified;
@@ -91,7 +91,7 @@
9191
l2_cache_l1: l2-cache-l1 {
9292
compatible = "cache";
9393
cache-size = <0x80000>;
94-
cache-line-size = <128>;
94+
cache-line-size = <64>;
9595
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
9696
cache-level = <2>;
9797
cache-unified;
@@ -115,7 +115,7 @@
115115
l2_cache_l2: l2-cache-l2 {
116116
compatible = "cache";
117117
cache-size = <0x80000>;
118-
cache-line-size = <128>;
118+
cache-line-size = <64>;
119119
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
120120
cache-level = <2>;
121121
cache-unified;
@@ -139,7 +139,7 @@
139139
l2_cache_l3: l2-cache-l3 {
140140
compatible = "cache";
141141
cache-size = <0x80000>;
142-
cache-line-size = <128>;
142+
cache-line-size = <64>;
143143
cache-sets = <1024>; //512KiB(size)/64(line-size)=8192ways/8-way set
144144
cache-level = <2>;
145145
cache-unified;

0 commit comments

Comments
 (0)