aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/uapi/asm/hwcap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-08-29 16:48:15 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2022-09-06 18:53:52 +0100
commit81ff692ad924da2233381bedff90c5c1f5c31368 (patch)
tree87b4ebedbeb97cda17ed4ad288d743bab98aed0c /arch/arm64/include/uapi/asm/hwcap.h
parentLinux 6.0-rc3 (diff)
downloadlinux-dev-81ff692ad924da2233381bedff90c5c1f5c31368.tar.xz
linux-dev-81ff692ad924da2233381bedff90c5c1f5c31368.zip
arm64/sysreg: Add hwcap for SVE EBF16
SVE has a separate identification register indicating support for BFloat16 operations. Add a hwcap identifying support for EBF16 in this register, mirroring what we did for the non-SVE case. While there is currently an architectural requirement for BF16 support to be the same in SVE and non-SVE contexts there are separate identification registers this separate hwcap helps avoid issues if that requirement were to be relaxed in the future, we have already chosen to have a separate capability for base BF16 support. Signed-off-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220829154815.832347-1-broonie@kernel.org Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/uapi/asm/hwcap.h')
-rw-r--r--arch/arm64/include/uapi/asm/hwcap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h
index 1ad2568a2569..9b245da6f507 100644
--- a/arch/arm64/include/uapi/asm/hwcap.h
+++ b/arch/arm64/include/uapi/asm/hwcap.h
@@ -92,5 +92,6 @@
#define HWCAP2_SME_FA64 (1 << 30)
#define HWCAP2_WFXT (1UL << 31)
#define HWCAP2_EBF16 (1UL << 32)
+#define HWCAP2_SVE_EBF16 (1UL << 33)
#endif /* _UAPI__ASM_HWCAP_H */