arm64: arch_timer: Add workaround for ARM erratum 1188873
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 27 Sep 2018 16:15:34 +0000 (17:15 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 1 Oct 2018 12:38:47 +0000 (13:38 +0100)
commit95b861a4a6d94f64d5242605569218160ebacdbe
tree201e6c1b33483438a87a7f2a030477bd41f82312
parent32a3e635fb0ecc1b197d54f710e76c6481cf19f0
arm64: arch_timer: Add workaround for ARM erratum 1188873

When running on Cortex-A76, a timer access from an AArch32 EL0
task may end up with a corrupted value or register. The workaround for
this is to trap these accesses at EL1/EL2 and execute them there.

This only affects versions r0p0, r1p0 and r2p0 of the CPU.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/cputype.h
arch/arm64/kernel/cpu_errata.c
drivers/clocksource/arm_arch_timer.c