]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ARM: mach-ux500: unlock I&D l2x0 caches before init
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 12 Aug 2011 11:54:42 +0000 (13:54 +0200)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:59 +0000 (11:17 -0800)
commit42406cacc41f715eef78f8ad5108741ce2082e78
treef7b9f1c7b922c9d561f263ae92690d924355d479
parentbc673f7c8f55749f2ac8c554544771b0b79299e0
ARM: mach-ux500: unlock I&D l2x0 caches before init

commit 1bf6d2c1bb23533af6930581cc39b74685bc29de upstream.

Apparently U8500 U-Boot versions may leave the l2x0 locked down
before executing the kernel. Make sure we unlock it before we
initialize the l2x0. This fixes a performance problem reported
by Jan Rinze.

The l2x0 core has been modified to unlock the l2x0 by default,
but it will not touch the locking registers if the l2x0 was
already enabled, as on the ux500, so we need this quirk to
make sure it is properly turned off.

Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Cc: Rabin Vincent <rabin.vincent@stericsson.com>
Cc: Adrian Bunk <adrian.bunk@movial.com>
Reported-by: Jan Rinze <janrinze@gmail.com>
Tested-by: Robert Marklund <robert.marklund@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/arm/mach-ux500/cpu.c