[PATCH v3 0/3] support FEAT_MTE_TAGGED_FAR feature

From: Yeoreum Yun
Date: Thu Apr 10 2025 - 03:51:02 EST


The FEAT_MTE_TAGGED_FAR feature provides support for
reporting all non-address bits during a synchronous MTE tag check fault.

This patchset extends the reporting tag to include
not only the memory tag (logical tag) but also the address tag via
si_addr when FEAT_MTE_TAGGED_FAR feature is supported.

Since v1:
- add hwcap test for MTE_FAR feature.
- add MTE_FAR doc into elf_hwcap.rst

Since v2:
- Rebase to 6.15-rc1

Yeoreum Yun (3):
arm64: add FEAT_MTE_TAGGED_FAR feature
arm64/mm/fault: use original FAR_EL1 value when ARM64_MTE_FAR is
supported
tools/kselftest: add MTE_FAR hwcap test

Documentation/arch/arm64/elf_hwcaps.rst | 3 +++
Documentation/arch/arm64/tagged-pointers.rst | 11 ++++++-----
arch/arm64/include/asm/hwcap.h | 1 +
arch/arm64/include/uapi/asm/hwcap.h | 1 +
arch/arm64/kernel/cpufeature.c | 9 +++++++++
arch/arm64/kernel/cpuinfo.c | 1 +
arch/arm64/mm/fault.c | 7 +++++--
arch/arm64/tools/cpucaps | 1 +
tools/testing/selftests/arm64/abi/hwcap.c | 6 ++++++
9 files changed, 33 insertions(+), 7 deletions(-)

--
LEVI:{C3F47F37-75D8-414A-A8BA-3980EC8A46D7}