]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Apr 2013 04:23:48 +0000 (21:23 -0700)
commitcef72624c31364e7020450571393a4d5a0e44b34
tree8cc7dfac451ea4e7e02508b569e05447906c7772
parentd715cdddb8cdf1c17bf1c5ff8fcc9852cd6ba79e
ARM: 7696/1: Fix kexec by setting outer_cache.inv_all for Feroceon

commit cd272d1ea71583170e95dde02c76166c7f9017e6 upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/cache-feroceon-l2.c