]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mte: CPU feature detection for Asymm MTE
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Wed, 6 Oct 2021 15:47:49 +0000 (16:47 +0100)
committerWill Deacon <will@kernel.org>
Thu, 7 Oct 2021 08:21:57 +0000 (09:21 +0100)
commit131404db4dcbcb06a5cc46ac4f584b6a4c1c8790
tree0744ad38c277d4d6453faded585b7951b73078e6
parent8c2b2ef6beaad0b77c5a852ca9c05c02163510d7
arm64: mte: CPU feature detection for Asymm MTE

Add the cpufeature entries to detect the presence of Asymmetric MTE.

Note: The tag checking mode is initialized via cpu_enable_mte() ->
kasan_init_hw_tags() hence to enable it we require asymmetric mode
to be at least on the boot CPU. If the boot CPU does not have it, it is
fine for late CPUs to have it as long as the feature is not enabled
(ARM64_CPUCAP_BOOT_CPU_FEATURE).

Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Suzuki K Poulose <Suzuki.Poulose@arm.com>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20211006154751.4463-4-vincenzo.frascino@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpufeature.c
arch/arm64/tools/cpucaps