[PATCH v3 1/2] x86/arch_prctl: Add AMX feature numbers as ABI constants

From
Chang S. Bae <hidden>
Date
2022-07-11 17:23:18
Also in
linux-man, lkml
Reply to
Chang S. Bae, 2022-07-11
AMX state is dynamically enabled by the architecture-specific prctl().
Expose the XSTATE numbers as ABI constants. It will help applications as no
more spec look-up is needed for these numbers.

Signed-off-by: Chang S. Bae <redacted>
Cc: Tony Luck <tony.luck@intel.com>
Cc: <redacted>
---
Changes from v2:
* Add as a new patch (Tony Luck).
---
 arch/x86/include/uapi/asm/prctl.h | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/arch/x86/include/uapi/asm/prctl.h b/arch/x86/include/uapi/asm/prctl.h
index 500b96e71f18..f298c778f856 100644
--- a/arch/x86/include/uapi/asm/prctl.h
+++ b/arch/x86/include/uapi/asm/prctl.h
@@ -16,6 +16,9 @@
 #define ARCH_GET_XCOMP_GUEST_PERM	0x1024
 #define ARCH_REQ_XCOMP_GUEST_PERM	0x1025
 
+#define ARCH_XCOMP_TILECFG		17
+#define ARCH_XCOMP_TILEDATA		18
+
 #define ARCH_MAP_VDSO_X32		0x2001
 #define ARCH_MAP_VDSO_32		0x2002
 #define ARCH_MAP_VDSO_64		0x2003
-- 
2.17.1
Thread (5 messages) 5 messages, 2 authors, last reply 2022-07-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help