linux_dsm_epyc7002/arch/arm/boot/compressed
Will Deacon 238962ac71 ARM: 8191/1: decompressor: ensure I-side picks up relocated code
To speed up decompression, the decompressor sets up a flat, cacheable
mapping of memory. However, when there is insufficient space to hold
the page tables for this mapping, we don't bother to enable the caches
and subsequently skip all the cache maintenance hooks.

Skipping the cache maintenance before jumping to the relocated code
allows the processor to predict the branch and populate the I-cache
with stale data before the relocation loop has completed (since a
bootloader may have SCTLR.I set, which permits normal, cacheable
instruction fetches regardless of SCTLR.M).

This patch moves the cache maintenance check into the maintenance
routines themselves, allowing the v6/v7 versions to invalidate the
I-cache regardless of the MMU state.

Cc: <stable@vger.kernel.org>
Reported-by: Marc Carino <marc.ceeeee@gmail.com>
Tested-by: Julien Grall <julien.grall@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-11-13 23:45:20 +00:00
..
.gitignore ARM: simplify generation of compressed vmlinux.lds file 2014-07-01 15:01:51 +01:00
atags_to_fdt.c ARM: 8025/1: Get rid of meminfo 2014-06-01 01:17:12 +01:00
big-endian.S
debug.S
decompress.c arm: add support for LZ4-compressed kernel 2013-07-09 10:33:30 -07:00
head-sa1100.S
head-sharpsl.S
head-shmobile.S ARM: shmobile: Update romImage to relocate appended DTB 2013-07-17 10:04:36 +09:00
head-xscale.S
head.S ARM: 8191/1: decompressor: ensure I-side picks up relocated code 2014-11-13 23:45:20 +00:00
libfdt_env.h
ll_char_wr.S
Makefile ARM: 8153/1: Enable gcov support on the ARM architecture 2014-09-26 14:39:57 +01:00
misc.c stackprotector: Introduce CONFIG_CC_STACKPROTECTOR_STRONG 2013-12-20 09:38:40 +01:00
mmcif-sh7372.c
piggy.gzip.S
piggy.lz4.S arm: add support for LZ4-compressed kernel 2013-07-09 10:33:30 -07:00
piggy.lzma.S
piggy.lzo.S
piggy.xzkern.S
sdhi-sh7372.c
sdhi-shmobile.c
sdhi-shmobile.h
string.c
vmlinux.lds.S ARM: simplify generation of compressed vmlinux.lds file 2014-07-01 15:01:51 +01:00