diff options
author | Yeoreum Yun <yeoreum.yun@arm.com> | 2025-06-18 09:45:05 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2025-07-02 17:44:17 +0100 |
commit | 7c7f55039b8d69567acc953964b656a8b126c30a (patch) | |
tree | 9827d41ae6a7eb0d7ab3163eaba3d2fd0ada0bbb /drivers/cdx/controller/cdx_controller.c | |
parent | 66984536899f49d388424cf9b158b0a664217cf6 (diff) |
arm64: Report address tag when FEAT_MTE_TAGGED_FAR is supported
If FEAT_MTE_TAGGED_FAR (Armv8.9) is supported, bits 63:60 of the fault address
are preserved in response to synchronous tag check faults (SEGV_MTESERR).
This patch modifies below to support this feature:
- Use the original FAR_EL1 value when an MTE tag check fault occurs,
if ARM64_MTE_FAR is supported so that not only logical tag
(bits 59:56) but also address tag (bits 63:60] being reported too.
- Add HWCAP for mtefar to let user know bits 63:60 includes
address tag information when when FEAT_MTE_TAGGED_FAR is supported.
Applications that require this information should install
a signal handler with the SA_EXPOSE_TAGBITS flag.
While this introduces a minor ABI change,
most applications do not set this flag and therefore will not be affected.
Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
Link: https://lore.kernel.org/r/20250618084513.1761345-3-yeoreum.yun@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions