arm64: Avoid Cavium TX2 erratum 219 when switching TTBR
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 9 Apr 2019 15:22:24 +0000 (16:22 +0100)
committerWill Deacon <will@kernel.org>
Tue, 8 Oct 2019 11:25:25 +0000 (12:25 +0100)
commit9405447ef79bc93101373e130f72e9e6cbf17dbb
tree32b2849bdfb5da0850e377da453de5c3b50476ff
parent93916beb70143c46bf1d2bacf814be3a124b253b
arm64: Avoid Cavium TX2 erratum 219 when switching TTBR

As a PRFM instruction racing against a TTBR update can have undesirable
effects on TX2, NOP-out such PRFM on cores that are affected by
the TX2-219 erratum.

Cc: <stable@vger.kernel.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/cpucaps.h
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/entry.S