Skip to contentSkip to conversation

ARM: realview: set up cache correctly on the PB11MPCore

PATCH New Linus Walleij 2 participants 2 messages Dec 30, 2015 – Dec 31, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: realview: set up cache correctly on the PB11MPCore

The L2 cache comes up in a "safe mode" on the PB11MPCore, as it has several issues. This sets it up properly with the right size and associativity, also requiring the outer sync to be disabled for the machine to boot properly.

Cc Russell King <[email protected]>
Cc Arnd Bergmann <[email protected]>

---
ARM SoC folks: Russell has merged the outer cache sync disable patch so it would be nice if you'd merge this directly on top of the branch holding the PB11MPCore device tree, so that the cache is feature complete for v4.5.

---
 arch/arm/boot/dts/arm-realview-pb11mp.dts | 13 +++++++++++++
 1 file changed, 13 insertions(+)
arch/arm/boot/dts/arm-realview-pb11mp.dts +13 -0
index 28bd5aea285f..3d9b1b0f4ffc 100644
@@ -99,6 +99,19 @@
 			     <0 31 IRQ_TYPE_LEVEL_HIGH>;
 		cache-unified;
 		cache-level = <2>;
+		/*
+		 * Override default cache size, sets and
+		 * associativity as these may be erroneously set
+		 * up by boot loader(s), probably for safety
+		 * since th outer sync operation can cause the
+		 * cache to hang unless disabled.
+		 */
+		cache-size = <1048576>; // 1MB
+		cache-sets = <4096>;
+		cache-line-size = <32>;
+		arm,shared-override;
+		arm,parity-enable;
+		arm,outer-sync-disable;
 	};
 
 	scu at 1f000000 {
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 ARM: realview: set up cache correctly on the PB11MPCore

Quoted 5 lines · On Wednesday 30 December 2015 21:05:09 Linus Walleij wrote:

The L2 cache comes up in a "safe mode" on the PB11MPCore, as it has several issues. This sets it up properly with the right size and associativity, also requiring the outer sync to be disabled for the machine to boot properly.

Quoted 8 lines
Cc Russell King <[email protected]>
Cc Arnd Bergmann <[email protected]>

---
ARM SoC folks: Russell has merged the outer cache sync disable patch so it would be nice if you'd merge this directly on top of the branch holding the PB11MPCore device tree, so that the cache is feature complete for v4.5.

Applied on next/dt, thanks!

Arnd