linux-stable/arch/arm/mach-bcm
Russell King 02b4e2756e ARM: v7 setup function should invalidate L1 cache
All ARMv5 and older CPUs invalidate their caches in the early assembly
setup function, prior to enabling the MMU.  This is because the L1
cache should not contain any data relevant to the execution of the
kernel at this point; all data should have been flushed out to memory.

This requirement should also be true for ARMv6 and ARMv7 CPUs - indeed,
these typically do not search their caches when caching is disabled (as
it needs to be when the MMU is disabled) so this change should be safe.

ARMv7 allows there to be CPUs which search their caches while caching is
disabled, and it's permitted that the cache is uninitialised at boot;
for these, the architecture reference manual requires that an
implementation specific code sequence is used immediately after reset
to ensure that the cache is placed into a sane state.  Such
functionality is definitely outside the remit of the Linux kernel, and
must be done by the SoC's firmware before _any_ CPU gets to the Linux
kernel.

Changing the data cache clean+invalidate to a mere invalidate allows us
to get rid of a lot of platform specific hacks around this issue for
their secondary CPU bringup paths - some of which were buggy.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Dinh Nguyen <dinguyen@opensource.altera.com>
Acked-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Tested-by: Thierry Reding <treding@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-06-01 11:30:26 +01:00
..
bcm63xx.c ARM: BCM63XX: add basic support for the Broadcom BCM63138 DSL SoC 2014-09-17 10:56:06 -07:00
bcm_5301x.c ARM: l2c: bcm_5301x: convert to generic l2c OF initialisation 2014-05-30 00:49:04 +01:00
bcm_cygnus.c ARM: cygnus: fix const declaration bcm_cygnus_dt_compat 2015-03-24 15:13:23 -07:00
bcm_kona_smc.c ARM: bcm: rewrite commentary for bcm_kona_do_smc() 2014-04-25 08:51:37 -04:00
bcm_kona_smc.h ARM: bcm: use inline assembly for "smc" request 2014-04-25 08:51:36 -04:00
board_bcm281xx.c platform: Remove most references to platform_bus device 2014-07-23 19:09:03 -07:00
board_bcm2835.c ARM: bcm2835: Move to mach-bcm directory 2014-02-24 19:42:35 -07:00
board_bcm21664.c platform: Remove most references to platform_bus device 2014-07-23 19:09:03 -07:00
brcmstb.c ARM: make arrays containing machine compatible strings const 2015-02-19 09:44:17 +01:00
Kconfig ARM: BCM: put back ARCH_MULTI_V7 dependency for mobile 2015-02-18 12:20:08 +01:00
kona_l2_cache.c ARM: bcm: rename "kona.h" and "kona.c" 2014-04-25 08:51:38 -04:00
kona_l2_cache.h ARM: bcm: rename "kona.h" and "kona.c" 2014-04-25 08:51:38 -04:00
kona_smp.c ARM: add SMP support for Broadcom mobile SoCs 2014-07-28 09:42:24 -04:00
Makefile ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00
platsmp-brcmstb.c ARM: v7 setup function should invalidate L1 cache 2015-06-01 11:30:26 +01:00