arm64: Fake the IminLine size on systems affected by Neoverse-N1 #1542419
authorJames Morse <james.morse@arm.com>
Thu, 17 Oct 2019 17:42:59 +0000 (18:42 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 25 Oct 2019 16:48:44 +0000 (17:48 +0100)
commitee9d90be9ddace01b7fb126567e4b539fbe1f82f
treee0776d49cff3e0ff4259ee3c853c64d6bce31c3d
parent05460849c3b51180d5ada3373d0449aea19075e4
arm64: Fake the IminLine size on systems affected by Neoverse-N1 #1542419

Systems affected by Neoverse-N1 #1542419 support DIC so do not need to
perform icache maintenance once new instructions are cleaned to the PoU.
For the errata workaround, the kernel hides DIC from user-space, so that
the unnecessary cache maintenance can be trapped by firmware.

To reduce the number of traps, produce a fake IminLine value based on
PAGE_SIZE.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cache.h
arch/arm64/kernel/traps.c