]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mte: CPU feature detection and initial sysreg configuration
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Fri, 6 Sep 2019 09:58:01 +0000 (10:58 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 3 Sep 2020 16:26:32 +0000 (17:26 +0100)
commitb6d6d324c3cda46a4a8fe1c7a1f5c9f56747376e
tree355afb2207944284b1e3d2a14a89083f57ddef98
parent8ce05d746a7034418a7c2e6a39af3df3011da3d5
arm64: mte: CPU feature detection and initial sysreg configuration

Add the cpufeature and hwcap entries to detect the presence of MTE. Any
secondary CPU not supporting the feature, if detected on the boot CPU,
will be parked.

Add the minimum SCTLR_EL1 and HCR_EL2 bits for enabling MTE. The Normal
Tagged memory type is configured in MAIR_EL1 before the MMU is enabled
in order to avoid disrupting other CPUs in the CnP domain.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Co-developed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Suzuki K Poulose <Suzuki.Poulose@arm.com>
arch/arm64/include/asm/cpucaps.h
arch/arm64/include/asm/cpufeature.h
arch/arm64/include/asm/hwcap.h
arch/arm64/include/asm/kvm_arm.h
arch/arm64/include/asm/sysreg.h
arch/arm64/include/uapi/asm/hwcap.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/cpuinfo.c
arch/arm64/mm/proc.S