ARM: Add workaround for I-Cache line size mismatch between CPU cores 52/206252/1
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 15 May 2019 07:53:55 +0000 (09:53 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 15 May 2019 10:55:38 +0000 (12:55 +0200)
commit493d0bdbcf660d92a31c4ca492beb6eabb5e47b1
tree66810eff42ab0c025e2970ce0d35364d332abd5c
parent5612984b6ef7e17578e0cadb407f578a6139e70e
ARM: Add workaround for I-Cache line size mismatch between CPU cores

Some big.LITTLE systems have mismatch of I-Cache line size between
LITTLE and big cores. This patch adds workaround for proper I-Cache
support on such systems. Without it, some code (typically self-modifying)
might suffer from random SIGILL failures.

Similar workaround exists for ARM64 architecture, added by commit
116c81f427ff ("arm64: Work around systems with mismatched cache line
sizes").

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I76e1cb24cde91dbfd5a16bd8d5dc97c7953767ff
arch/arm/include/asm/cacheflush.h
arch/arm/kernel/smp.c
arch/arm/mm/Kconfig
arch/arm/mm/cache-v7.S
arch/arm/mm/init.c
arch/arm/mm/mm.h