]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7696/1: Fix kexec by setting outer_cache.inv_all for Feroceon
authorIllia Ragozin <illia.ragozin@grapecom.com>
Wed, 10 Apr 2013 18:43:34 +0000 (19:43 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 17 Apr 2013 15:53:27 +0000 (16:53 +0100)
commit8b81c59c882615ecdde6589e68fe4128fa07f5b8
tree1b388e0d1a7e61584890e008e505a97f7be24c48
parentce1ebdf78380077324c9ea292376e5f6684f3d38
ARM: 7696/1: Fix kexec by setting outer_cache.inv_all for Feroceon

On Feroceon the L2 cache becomes non-coherent with the CPU
when the L1 caches are disabled. Thus the L2 needs to be invalidated
after both L1 caches are disabled.

On kexec before the starting the code for relocation the kernel,
the L1 caches are disabled in cpu_froc_fin (cpu_v7_proc_fin for Feroceon),
but after L2 cache is never invalidated, because inv_all is not set
in cache-feroceon-l2.c.
So kernel relocation and decompression may has (and usually has) errors.
Setting the function enables L2 invalidation and fixes the issue.

Cc: <stable@vger.kernel.org>
Signed-off-by: Illia Ragozin <illia.ragozin@grapecom.com>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-feroceon-l2.c