History

Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux

Pull arm64 updates from Will Deacon: "The big highlight is support for the Scalable Vector Extension (SVE) which required extensive ABI work to ensure we don't break existing applications by blowing away their signal stack with the rather large new vector context (<= 2 kbit per vector register). There's further work to be done optimising things like exception return, but the ABI is solid now. Much of the line count comes from some new PMU drivers we have, but they're pretty self-contained and I suspect we'll have more of them in future. Plenty of acronym soup here: - initial support for the Scalable Vector Extension (SVE) - improved handling for SError interrupts (required to handle RAS events) - enable GCC support for 128-bit integer types - remove kernel text addresses from backtraces and register dumps - use of WFE to implement long delay()s - ACPI IORT updates from Lorenzo Pieralisi - perf PMU driver for the Statistical Profiling Extension (SPE) - perf PMU driver for Hisilicon's system PMUs - misc cleanups and non-critical fixes" * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (97 commits) arm64: Make ARMV8_DEPRECATED depend on SYSCTL arm64: Implement __lshrti3 library function arm64: support __int128 on gcc 5+ arm64/sve: Add documentation arm64/sve: Detect SVE and activate runtime support arm64/sve: KVM: Hide SVE from CPU features exposed to guests arm64/sve: KVM: Treat guest SVE use as undefined instruction execution arm64/sve: KVM: Prevent guests from using SVE arm64/sve: Add sysctl to set the default vector length for new processes arm64/sve: Add prctl controls for userspace vector length management arm64/sve: ptrace and ELF coredump support arm64/sve: Preserve SVE registers around EFI runtime service calls arm64/sve: Preserve SVE registers around kernel-mode NEON use arm64/sve: Probe SVE capabilities and usable vector lengths arm64: cpufeature: Move sys_caps_initialised declarations arm64/sve: Backend logic for setting the vector length arm64/sve: Signal handling support arm64/sve: Support vector length resetting for new processes arm64/sve: Core task context handling arm64/sve: Low-level CPU setup ...

Linus Torvalds committed 8 years ago

Commit c9b012e2 parents b293fca 6cfa7cc97 files · +7399 −601Browse files

Showing the changes to include/uapi/linux (3 of 97 files). Show all

Unified · Split

3 files
  1. include/uapi/linux/elf.h +1 −0
  2. include/uapi/linux/perf_event.h +1 −0
  3. include/uapi/linux/prctl.h +9 −0
include/uapi/linux/elf.h+1−0
@@ -418,6 +418,7 @@ typedef struct elf64_shdr { · 417 unmodified lines
418418 #define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */
419419 #define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */
420420 #define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
421+#define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension registers */
421422 #define NT_METAG_CBUF 0x500 /* Metag catch buffer registers */
422423 #define NT_METAG_RPIPE 0x501 /* Metag read pipeline state */
423424 #define NT_METAG_TLS 0x502 /* Metag TLS pointer */
include/uapi/linux/perf_event.h+1−0
@@ -942,6 +942,7 @@ enum perf_callchain_context { · 941 unmodified lines
942942 #define PERF_AUX_FLAG_TRUNCATED 0x01 /* record was truncated to fit */
943943 #define PERF_AUX_FLAG_OVERWRITE 0x02 /* snapshot from overwrite mode */
944944 #define PERF_AUX_FLAG_PARTIAL 0x04 /* record contains gaps */
945+#define PERF_AUX_FLAG_COLLISION 0x08 /* sample collided with another */
945946
946947 #define PERF_FLAG_FD_NO_GROUP (1UL << 0)
947948 #define PERF_FLAG_FD_OUTPUT (1UL << 1)
include/uapi/linux/prctl.h+9−0
@@ -198,4 +198,13 @@ struct prctl_mm_map { · 197 unmodified lines
198198 # define PR_CAP_AMBIENT_LOWER 3
199199 # define PR_CAP_AMBIENT_CLEAR_ALL 4
200200
201+/* arm64 Scalable Vector Extension controls */
202+/* Flag values must be kept in sync with ptrace NT_ARM_SVE interface */
203+#define PR_SVE_SET_VL 50 /* set task vector length */
204+# define PR_SVE_SET_VL_ONEXEC (1 << 18) /* defer effect until exec */
205+#define PR_SVE_GET_VL 51 /* get task vector length */
206+/* Bits common to PR_SVE_SET_VL and PR_SVE_GET_VL */
207+# define PR_SVE_VL_LEN_MASK 0xffff
208+# define PR_SVE_VL_INHERIT (1 << 17) /* inherit across exec */
209+
201210 #endif /* _LINUX_PRCTL_H */