summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/module.h
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-05-04 15:22:41 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-05-08 10:42:33 +0100
commite748994f5cc59e82ef28e31bae680f15fdadb26f (patch)
tree8e4cbf826701c556d50f6cf1bd3ca1b96e25e695 /arch/arm/include/asm/module.h
parent9827e8e55532f5a7967d31da847fbd3185a5b5ed (diff)
ARM: 8353/1: mm: Fix Cortex-A8 erratum 430973 segfaults for bootloaders and multiarch
Looks like apps can be made to segfault easily on armhf distros just by running cpuburn-a8 in the background, then starting apt get update unless erratum 430973 workaround is enabled. This happens on r3p2 also, which has 430973 fixed in hardware. Turns out the reason for this is some bootloaders incorrectly setting the auxilary register IBE bit, which probably causes us to hit erratum 687067 on Cortex-A8 later than r1p2. If the bootloader incorrectly sets the IBE bit in the auxilary control register for Cortex-A8 revisions with 430973 fixed in hardware, we need to call flush BTAC/BTB to avoid segfaults probably caused by erratum 687067. So let's flush BTAC/BTB unconditionally for Cortex-A8. It won't do anything unless the IBE bit is set. Note that we keep the erratum 430973 Kconfig option still around and disabled for multiarch as it may be unsafe to enable for some secure SoC. It is known safe to be enabled for n900, but won't do anything on n900 as the IBE bit needs to be set with SMC. Also note that SoCs probably should also add checks and print warnings for the misconfigured IBE bit depending on the Cortex-A8 revision so the bootloaders can be fixed Cortex-A8 revisions later than r1p2 to not set the IBE bit. Tested-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/module.h')
0 files changed, 0 insertions, 0 deletions