Skip to content

Commit

Permalink
ARM: realview: set up cache correctly on the PB11MPCore
Browse files Browse the repository at this point in the history
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 <linux@arm.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Linus Walleij authored and Arnd Bergmann committed Dec 31, 2015
1 parent f0dba77 commit ef2a270
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions arch/arm/boot/dts/arm-realview-pb11mp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -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@1f000000 {
Expand Down

0 comments on commit ef2a270

Please sign in to comment.