Re: [PATCH v2 1/3] arm64: add FEAT_MTE_TAGGED_FAR feature

From: Yury Khrustalev
Date: Mon Apr 07 2025 - 08:05:45 EST


On Thu, Apr 03, 2025 at 06:27:56PM +0100, Yeoreum Yun wrote:
> Add FEAT_MTE_TAGGED_FAR cpucap which makes FAR_ELx report
> all non-address bits on a synchronous MTE tag check fault since Armv8.9
>
> Signed-off-by: Yeoreum Yun <yeoreum.yun@xxxxxxx>
> ---
> ...
> arch/arm64/include/asm/hwcap.h | 1 +
> ...
>
> diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h
> index 705a7afa8e58..7d22527a7975 100644
> --- a/arch/arm64/include/uapi/asm/hwcap.h
> +++ b/arch/arm64/include/uapi/asm/hwcap.h
> @@ -143,5 +143,6 @@
> /*
> * HWCAP3 flags - for AT_HWCAP3
> */
> +#define HWCAP3_MTE_FAR (1UL << 0)

Acked-by: Yury Khrustalev <yury.khrustalev@xxxxxxx>