]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64: Handle trapped DC CVAP
authorRobin Murphy <robin.murphy@arm.com>
Tue, 25 Jul 2017 10:55:41 +0000 (11:55 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 9 Aug 2017 10:00:43 +0000 (11:00 +0100)
commite1bc5d1b8e0547c258e65dd97a03560f4d69e635
tree421aea530d18c65528ece256b0789dc3b05aa2e1
parent7aac405ebb3224037efd56b73d82d181111cdac3
arm64: Handle trapped DC CVAP

Cache clean to PoP is subject to the same access controls as to PoC, so
if we are trapping userspace cache maintenance with SCTLR_EL1.UCI, we
need to be prepared to handle it. To avoid getting into complicated
fights with binutils about ARMv8.2 options, we'll just cheat and use the
raw SYS instruction rather than the 'proper' DC alias.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/esr.h
arch/arm64/kernel/traps.c