summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/uapi/asm/hwcap.h
diff options
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2019-04-18 18:41:38 +0100
committerWill Deacon <will.deacon@arm.com>2019-04-23 18:02:00 +0100
commit06a916feca2b262ab0c1a2aeb68882f4b1108a07 (patch)
tree7687db5cfb7163edb21e8f6d13bcea9c5c8488e8 /arch/arm64/include/uapi/asm/hwcap.h
parentdd523791c939cfe642557cb2fac754ac0fed80fe (diff)
downloadlinux-06a916feca2b262ab0c1a2aeb68882f4b1108a07.tar.bz2
arm64: Expose SVE2 features for userspace
This patch provides support for reporting the presence of SVE2 and its optional features to userspace. This will also enable visibility of SVE2 for guests, when KVM support for SVE-enabled guests is available. Signed-off-by: Dave Martin <Dave.Martin@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/uapi/asm/hwcap.h')
-rw-r--r--arch/arm64/include/uapi/asm/hwcap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h
index d64af3913a9e..1a772b162191 100644
--- a/arch/arm64/include/uapi/asm/hwcap.h
+++ b/arch/arm64/include/uapi/asm/hwcap.h
@@ -57,5 +57,11 @@
* HWCAP2 flags - for AT_HWCAP2
*/
#define HWCAP2_DCPODP (1 << 0)
+#define HWCAP2_SVE2 (1 << 1)
+#define HWCAP2_SVEAES (1 << 2)
+#define HWCAP2_SVEPMULL (1 << 3)
+#define HWCAP2_SVEBITPERM (1 << 4)
+#define HWCAP2_SVESHA3 (1 << 5)
+#define HWCAP2_SVESM4 (1 << 6)
#endif /* _UAPI__ASM_HWCAP_H */