]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Fake the IminLine size on systems affected by Neoverse-N1 #1542419
authorJames Morse <james.morse@arm.com>
Fri, 24 Apr 2020 16:38:03 +0000 (17:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:32:56 +0000 (16:32 +0200)
commit61f7ecff7b50a01bbe958a3c9054d9efbee30b2e
treec2781d249dca418b97f7e5697617be8058302cd0
parent9aa35b7d07673ef3f23a3d758511a5072ed8299a
arm64: Fake the IminLine size on systems affected by Neoverse-N1 #1542419

[ Upstream commit 6d5901ca0878cd99590fa4a2eece3e28b9ee449b ]

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>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/include/asm/cache.h
arch/arm64/kernel/traps.c