]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm64: Force KPTI to be disabled on Cavium ThunderX
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Jan 2018 11:59:56 +0000 (11:59 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:47 +0000 (08:15 -0600)
commit08dd019d5c36b5500db30b880c2f8fefec3ace8d
tree9a59346e66b0087d4bdcd8b4d72587d95abe8aee
parent5c10f9cae715fb03722e5200c11eac7bae7ff2b8
arm64: Force KPTI to be disabled on Cavium ThunderX

BugLink: http://bugs.launchpad.net/bugs/1751064
Commit 6dc52b15c4a4 upstream.

Cavium ThunderX's erratum 27456 results in a corruption of icache
entries that are loaded from memory that is mapped as non-global
(i.e. ASID-tagged).

As KPTI is based on memory being mapped non-global, let's prevent
it from kicking in if this erratum is detected.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
[will: Update comment]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/arm64/kernel/cpufeature.c