arm64/mte: Add hwcap for asymmetric mode
authorMark Brown <broonie@kernel.org>
Wed, 16 Feb 2022 17:32:23 +0000 (17:32 +0000)
committerWill Deacon <will@kernel.org>
Fri, 25 Feb 2022 14:41:05 +0000 (14:41 +0000)
commitd082a0255fcb8fcb4bd8257df111f2caa67086bc
treed258cb9a841b10c882bf18bb34bc02bc2f6c297c
parentcb627397e02bc65e44912daebfe0bbe6b0ecd384
arm64/mte: Add hwcap for asymmetric mode

Allow userspace to detect support for asymmetric mode by providing a hwcap
for it, using the official feature name FEAT_MTE3.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Vincenzo Frascino <Vincenzo.Frascino@arm.com>
Tested-by: Branislav Rankov <branislav.rankov@arm.com>
Link: https://lore.kernel.org/r/20220216173224.2342152-4-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/arm64/elf_hwcaps.rst
arch/arm64/include/asm/hwcap.h
arch/arm64/include/uapi/asm/hwcap.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/cpuinfo.c