]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
arm64: cpufeature: Add global feature override facility
authorMarc Zyngier <maz@kernel.org>
Mon, 8 Feb 2021 09:57:19 +0000 (09:57 +0000)
committerWill Deacon <will@kernel.org>
Tue, 9 Feb 2021 13:47:12 +0000 (13:47 +0000)
commit8f266a5d878ad38fbd43e41e22847650f51d4734
treec5f381423fd8e4e52a67fb014b1c81644ebd9bcf
parentd077cb3cb90470f8bd7dbe357a474e13589390b9
arm64: cpufeature: Add global feature override facility

Add a facility to globally override a feature, no matter what
the HW says. Yes, this sounds dangerous, but we do respect the
"safe" value for a given feature. This doesn't mean the user
doesn't need to know what they are doing.

Nothing uses this yet, so we are pretty safe. For now.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Acked-by: David Brazdil <dbrazdil@google.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210208095732.3267263-11-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/cpufeature.c