]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
arm64: dbm: Invalidate local TLB when setting TCR_EL1.HD
authorWill Deacon <will@kernel.org>
Thu, 1 Oct 2020 08:48:21 +0000 (09:48 +0100)
committerWill Deacon <will@kernel.org>
Thu, 1 Oct 2020 11:43:05 +0000 (12:43 +0100)
commit80d6b466679c3dced3b359a6379c6d913de39afd
tree1b3b33a7510d22f342ea459c98acb8d792eb064b
parent6a1bdb173f9967b2329aab0f25bcba963f54e06b
arm64: dbm: Invalidate local TLB when setting TCR_EL1.HD

TCR_EL1.HD is permitted to be cached in a TLB, so invalidate the local
TLB after setting the bit when detected support for the feature. Although
this isn't strictly necessary, since we can happily operate with the bit
effectively clear, the current code uses an ISB in a half-hearted attempt
to make the change effective, so let's just fix that up.

Link: https://lore.kernel.org/r/20201001110405.18617-1-will@kernel.org
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c