mbox series

[0/4] powerpc: Add support for system call vectored

Message ID 20201118144703.75569-1-msc@linux.ibm.com
Headers show
Series powerpc: Add support for system call vectored | expand

Message

Matheus Castanho Nov. 18, 2020, 2:46 p.m. UTC
This patchset enables the usage of system call vectored (scv) instruction by
system calls for improved performance on POWER9 and later processors.

Please check each patch for more details, specially 3/4 which explains the
rationale and details of the runtime mechanism to choose between the old
behavior (sc) and the new one (scv 0).

Tested on powerpc, powerpc64, and powerpc64le (with and without scv)

Matheus Castanho (3):
  powerpc: Make PT_THREAD_POINTER available to assembly code
  powerpc: Runtime selection between sc and scv for syscalls
  powerpc: Use scv instruction on clone when available

Tulio Magno Quites Machado Filho (1):
  powerpc: Replace brk.S with a C implementation

 sysdeps/powerpc/nptl/tls.h                    | 26 +++---
 sysdeps/powerpc/powerpc32/sysdep.h            | 19 ++--
 sysdeps/powerpc/powerpc64/sysdep.h            | 90 ++++++++++++++++++-
 .../linux/powerpc/{powerpc64/brk.S => brk.c}  | 41 ++++-----
 sysdeps/unix/sysv/linux/powerpc/dl-brk.S      |  1 -
 .../unix/sysv/linux/powerpc/powerpc32/brk.S   | 52 -----------
 .../unix/sysv/linux/powerpc/powerpc64/clone.S | 36 +++++++-
 .../unix/sysv/linux/powerpc/powerpc64/vfork.S |  6 +-
 sysdeps/unix/sysv/linux/powerpc/syscall.S     | 11 ++-
 sysdeps/unix/sysv/linux/powerpc/sysdep.h      | 78 +++++++++++-----
 10 files changed, 235 insertions(+), 125 deletions(-)
 rename sysdeps/unix/sysv/linux/powerpc/{powerpc64/brk.S => brk.c} (58%)
 delete mode 100644 sysdeps/unix/sysv/linux/powerpc/dl-brk.S
 delete mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S

--
2.26.2