Skip to contentSkip to conversation

Allocate sys_membarrier on main architectures

PATCH In review Mathieu Desnoyers 6 participants 29 messages Sep 7, 2015 – Sep 28, 2015

Subsystems (9)
Arm (32-bit) PowerPC MIPS arm64 +5 more subsystems
lore
Share & tools
lore
#0 lore raw

v2 cover Allocate sys_membarrier on main architectures

Following feedback from architecture maintainers, this is v2 of this patchset. Status:

* Picked into maintainer's tree:
- powerpc
* Ready to be picked into maintainer's tree (acked/tested):
- mips, sparc/sparc64, parisc,
* Awaiting feedback/testing:
- arm, arm64, ia64, s390/s390x

Thanks,

Mathieu

Mathieu Desnoyers (9):
[picked] powerpc: allocate sys_membarrier system call number
mips: allocate sys_membarrier system call number sparc/sparc64: allocate sys_membarrier system call number
parisc: allocate sys_membarrier system call number
alpha: allocate sys_membarrier system call number
arm: allocate sys_membarrier system call number
arm64: allocate sys_membarrier system call number
ia64: allocate sys_membarrier system call number s390/s390x: allocate sys_membarrier system call number

 arch/alpha/include/asm/unistd.h        |  2 +-
 arch/alpha/include/uapi/asm/unistd.h   |  1 +
 arch/alpha/kernel/systbls.S            |  1 +
 arch/arm/include/asm/unistd.h          |  2 +-
 arch/arm/include/uapi/asm/unistd.h     |  1 +
 arch/arm/kernel/calls.S                |  1 +
 arch/arm64/include/asm/unistd.h        |  2 +-
 arch/arm64/include/asm/unistd32.h      |  2 ++
 arch/ia64/include/asm/unistd.h         |  2 +-
 arch/ia64/include/uapi/asm/unistd.h    |  1 +
 arch/ia64/kernel/entry.S               |  1 +
 arch/mips/include/uapi/asm/unistd.h    | 15 +++++++++------
 arch/mips/kernel/scall32-o32.S         |  1 +
 arch/mips/kernel/scall64-64.S          |  1 +
 arch/mips/kernel/scall64-n32.S         |  1 +
 arch/mips/kernel/scall64-o32.S         |  1 +
 arch/parisc/include/uapi/asm/unistd.h  |  3 ++-
 arch/parisc/kernel/syscall_table.S     |  1 +
 arch/powerpc/include/asm/systbl.h      |  1 +
 arch/powerpc/include/asm/unistd.h      |  2 +-
 arch/powerpc/include/uapi/asm/unistd.h |  1 +
 arch/s390/include/uapi/asm/unistd.h    |  3 ++-
 arch/s390/kernel/syscalls.S            |  1 +
 arch/sparc/include/uapi/asm/unistd.h   |  3 ++-
 arch/sparc/kernel/systbls_32.S         |  2 +-
 arch/sparc/kernel/systbls_64.S         |  4 ++--
 26 files changed, 39 insertions(+), 17 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/9 powerpc: allocate sys_membarrier system call number

Allow it to be used from SPU, since it should not have unwanted side-effects.

[ Picked-by: Michael Ellerman <[email protected]> ]

CC Andrew Morton <[email protected]>
CC Benjamin Herrenschmidt <[email protected]>
CC Paul Mackerras <[email protected]>
CC Michael Ellerman <[email protected]>
---
 arch/powerpc/include/asm/systbl.h      | 1 +
 arch/powerpc/include/asm/unistd.h      | 2 +-
 arch/powerpc/include/uapi/asm/unistd.h | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/include/asm/systbl.h +1 -0
index 4d65499..126d0c4 100644
@@ -369,3 +369,4 @@ SYSCALL_SPU(bpf)
 COMPAT_SYS(execveat)
 PPC64ONLY(switch_endian)
 SYSCALL_SPU(userfaultfd)
+SYSCALL_SPU(membarrier)
arch/powerpc/include/asm/unistd.h +1 -1
index 4a055b6..13411be 100644
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define __NR_syscalls		365
+#define __NR_syscalls		366
 
 #define __NR__exit __NR_exit
 #define NR_syscalls	__NR_syscalls
arch/powerpc/include/uapi/asm/unistd.h +1 -0
index 6ad58d4..6337738 100644
@@ -387,5 +387,6 @@
 #define __NR_execveat		362
 #define __NR_switch_endian	363
 #define __NR_userfaultfd	364
+#define __NR_membarrier		365
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
Signature · 6 lines
1.9.1

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev
#2 lore raw

PATCH v2 2/9 mips: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
---
 arch/mips/include/uapi/asm/unistd.h | 15 +++++++++------
 arch/mips/kernel/scall32-o32.S      |  1 +
 arch/mips/kernel/scall64-64.S       |  1 +
 arch/mips/kernel/scall64-n32.S      |  1 +
 arch/mips/kernel/scall64-o32.S      |  1 +
 5 files changed, 13 insertions(+), 6 deletions(-)
arch/mips/include/uapi/asm/unistd.h +9 -6
index d0bdfaa..b107983 100644
@@ -378,16 +378,17 @@
 #define __NR_bpf			(__NR_Linux + 355)
 #define __NR_execveat			(__NR_Linux + 356)
 #define __NR_mlock2			(__NR_Linux + 357)
+#define __NR_membarrier			(__NR_Linux + 358)
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls		357
+#define __NR_Linux_syscalls		358
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux			4000
-#define __NR_O32_Linux_syscalls		357
+#define __NR_O32_Linux_syscalls		358
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
@@ -713,16 +714,17 @@
 #define __NR_bpf			(__NR_Linux + 315)
 #define __NR_execveat			(__NR_Linux + 316)
 #define __NR_mlock2			(__NR_Linux + 317)
+#define __NR_membarrier			(__NR_Linux + 318)
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls		317
+#define __NR_Linux_syscalls		318
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux			5000
-#define __NR_64_Linux_syscalls		317
+#define __NR_64_Linux_syscalls		318
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
@@ -1052,15 +1054,16 @@
 #define __NR_bpf			(__NR_Linux + 319)
 #define __NR_execveat			(__NR_Linux + 320)
 #define __NR_mlock2			(__NR_Linux + 321)
+#define __NR_membarrier			(__NR_Linux + 322)
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls		321
+#define __NR_Linux_syscalls		322
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux			6000
-#define __NR_N32_Linux_syscalls		321
+#define __NR_N32_Linux_syscalls		322
 
 #endif /* _UAPI_ASM_UNISTD_H */
arch/mips/kernel/scall32-o32.S +1 -0
index b0b377a..9265542 100644
@@ -600,3 +600,4 @@ EXPORT(sys_call_table)
 	PTR	sys_bpf				/* 4355 */
 	PTR	sys_execveat
 	PTR	sys_mlock2
+	PTR	sys_membarrier
arch/mips/kernel/scall64-64.S +1 -0
index f12eb03..79d4fb0 100644
@@ -437,4 +437,5 @@ EXPORT(sys_call_table)
 	PTR	sys_bpf				/* 5315 */
 	PTR	sys_execveat
 	PTR	sys_mlock2
+	PTR	sys_membarrier
 	.size	sys_call_table,.-sys_call_table
arch/mips/kernel/scall64-n32.S +1 -0
index ecdd65a..235892a 100644
@@ -430,4 +430,5 @@ EXPORT(sysn32_call_table)
 	PTR	sys_bpf
 	PTR	compat_sys_execveat		/* 6320 */
 	PTR	sys_mlock2
+	PTR	sys_membarrier
 	.size	sysn32_call_table,.-sysn32_call_table
arch/mips/kernel/scall64-o32.S +1 -0
index 7a8b2df..c051bd3 100644
@@ -585,4 +585,5 @@ EXPORT(sys32_call_table)
 	PTR	sys_bpf				/* 4355 */
 	PTR	compat_sys_execveat
 	PTR	sys_mlock2
+	PTR	sys_membarrier
 	.size	sys32_call_table,.-sys32_call_table
Signature · 1 line
1.9.1
#5 lore raw

PATCH v2 3/9 sparc/sparc64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
---
 arch/sparc/include/uapi/asm/unistd.h | 3 ++-
 arch/sparc/kernel/systbls_32.S       | 2 +-
 arch/sparc/kernel/systbls_64.S       | 4 ++--
 3 files changed, 5 insertions(+), 4 deletions(-)
arch/sparc/include/uapi/asm/unistd.h +2 -1
index 6f35f4d..efe9479 100644
@@ -416,8 +416,9 @@
 #define __NR_memfd_create	348
 #define __NR_bpf		349
 #define __NR_execveat		350
+#define __NR_membarrier		351
 
-#define NR_syscalls		351
+#define NR_syscalls		352
 
 /* Bitmask values returned from kern_features system call.  */
 #define KERN_FEATURE_MIXED_MODE_STACK	0x00000001
arch/sparc/kernel/systbls_32.S +1 -1
index e31a905..cc23b62 100644
@@ -87,4 +87,4 @@ sys_call_table:
 /*335*/	.long sys_syncfs, sys_sendmmsg, sys_setns, sys_process_vm_readv, sys_process_vm_writev
 /*340*/	.long sys_ni_syscall, sys_kcmp, sys_finit_module, sys_sched_setattr, sys_sched_getattr
 /*345*/	.long sys_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf
-/*350*/	.long sys_execveat
+/*350*/	.long sys_execveat, sys_membarrier
arch/sparc/kernel/systbls_64.S +2 -2
index d72f76a..f229468 100644
@@ -88,7 +88,7 @@ sys_call_table32:
 	.word sys_syncfs, compat_sys_sendmmsg, sys_setns, compat_sys_process_vm_readv, compat_sys_process_vm_writev
 /*340*/	.word sys_kern_features, sys_kcmp, sys_finit_module, sys_sched_setattr, sys_sched_getattr
 	.word sys32_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf
-/*350*/	.word sys32_execveat
+/*350*/	.word sys32_execveat, sys_membarrier
 
 #endif /* CONFIG_COMPAT */
 
@@ -168,4 +168,4 @@ sys_call_table:
 	.word sys_syncfs, sys_sendmmsg, sys_setns, sys_process_vm_readv, sys_process_vm_writev
 /*340*/	.word sys_kern_features, sys_kcmp, sys_finit_module, sys_sched_setattr, sys_sched_getattr
 	.word sys_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf
-/*350*/	.word sys64_execveat
+/*350*/	.word sys64_execveat, sys_membarrier
Signature · 1 line
1.9.1
#9 lore raw

PATCH v2 4/9 parisc: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
---
 arch/parisc/include/uapi/asm/unistd.h | 3 ++-
 arch/parisc/kernel/syscall_table.S    | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
arch/parisc/include/uapi/asm/unistd.h +2 -1
index 2e639d7..dadcada 100644
@@ -358,8 +358,9 @@
 #define __NR_memfd_create	(__NR_Linux + 340)
 #define __NR_bpf		(__NR_Linux + 341)
 #define __NR_execveat		(__NR_Linux + 342)
+#define __NR_membarrier		(__NR_Linux + 343)
 
-#define __NR_Linux_syscalls	(__NR_execveat + 1)
+#define __NR_Linux_syscalls	(__NR_membarrier + 1)
 
 
 #define __IGNORE_select		/* newselect */
arch/parisc/kernel/syscall_table.S +1 -0
index 8eefb12..4e77991 100644
@@ -438,6 +438,7 @@
 	ENTRY_SAME(memfd_create)	/* 340 */
 	ENTRY_SAME(bpf)
 	ENTRY_COMP(execveat)
+	ENTRY_SAME(membarrier)
 
 
 .ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b))
Signature · 1 line
1.9.1
#12 lore raw

RFC PATCH v2 5/9 alpha: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

CC Andrew Morton <[email protected]>
CC Richard Henderson <[email protected]>
CC Ivan Kokshaysky <[email protected]>
CC Matt Turner <[email protected]>
---
 arch/alpha/include/asm/unistd.h      | 2 +-
 arch/alpha/include/uapi/asm/unistd.h | 1 +
 arch/alpha/kernel/systbls.S          | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
arch/alpha/include/asm/unistd.h +1 -1
index a56e608..07aa4ca 100644
@@ -3,7 +3,7 @@
 
 #include <uapi/asm/unistd.h>
 
-#define NR_SYSCALLS			514
+#define NR_SYSCALLS			515
 
 #define __ARCH_WANT_OLD_READDIR
 #define __ARCH_WANT_STAT64
arch/alpha/include/uapi/asm/unistd.h +1 -0
index aa33bf5..7725619 100644
@@ -475,5 +475,6 @@
 #define __NR_getrandom			511
 #define __NR_memfd_create		512
 #define __NR_execveat			513
+#define __NR_membarrier			514
 
 #endif /* _UAPI_ALPHA_UNISTD_H */
arch/alpha/kernel/systbls.S +1 -0
index 9b62e3f..1ea64f4 100644
@@ -532,6 +532,7 @@ sys_call_table:
 	.quad sys_getrandom
 	.quad sys_memfd_create
 	.quad sys_execveat
+	.quad sys_membarrier
 
 	.size sys_call_table, . - sys_call_table
 	.type sys_call_table, @object
Signature · 1 line
1.9.1
#14 lore raw

RFC PATCH v2 6/9 arm: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

---
 arch/arm/include/asm/unistd.h      | 2 +-
 arch/arm/include/uapi/asm/unistd.h | 1 +
 arch/arm/kernel/calls.S            | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
arch/arm/include/asm/unistd.h +1 -1
index 32640c4..d93876c 100644
@@ -19,7 +19,7 @@
  * This may need to be greater than __NR_last_syscall+1 in order to
  * account for the padding in the syscall table
  */
-#define __NR_syscalls  (388)
+#define __NR_syscalls  (389)
 
 /*
  * *NOTE*: This is a ghost syscall private to the kernel.  Only the
arch/arm/include/uapi/asm/unistd.h +1 -0
index 0c3f5a0..436bb32 100644
@@ -414,6 +414,7 @@
 #define __NR_memfd_create		(__NR_SYSCALL_BASE+385)
 #define __NR_bpf			(__NR_SYSCALL_BASE+386)
 #define __NR_execveat			(__NR_SYSCALL_BASE+387)
+#define __NR_membarrier			(__NR_SYSCALL_BASE+388)
 
 /*
  * The following SWIs are ARM private.
arch/arm/kernel/calls.S +1 -0
index 05745eb..310699c 100644
@@ -397,6 +397,7 @@
 /* 385 */	CALL(sys_memfd_create)
 		CALL(sys_bpf)
 		CALL(sys_execveat)
+		CALL(sys_membarrier)
 #ifndef syscalls_counted
 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
 #define syscalls_counted
Signature · 1 line
1.9.1
#19 lore raw

RFC PATCH v2 7/9 arm64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers

arm64 sys_membarrier number is already wired for arm64 through asm-generic/unistd.h, but needs to be allocated separately for the 32-bit compability layer of arm64.

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

---
 arch/arm64/include/asm/unistd.h   | 2 +-
 arch/arm64/include/asm/unistd32.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
arch/arm64/include/asm/unistd.h +1 -1
index 3bc498c..e70f7e7 100644
@@ -44,7 +44,7 @@
 #define __ARM_NR_compat_cacheflush	(__ARM_NR_COMPAT_BASE+2)
 #define __ARM_NR_compat_set_tls		(__ARM_NR_COMPAT_BASE+5)
 
-#define __NR_compat_syscalls		388
+#define __NR_compat_syscalls		389
 #endif
 
 #define __ARCH_WANT_SYS_CLONE
arch/arm64/include/asm/unistd32.h +2 -0
index cef934a..d97be80 100644
@@ -797,3 +797,5 @@ __SYSCALL(__NR_memfd_create, sys_memfd_create)
 __SYSCALL(__NR_bpf, sys_bpf)
 #define __NR_execveat 387
 __SYSCALL(__NR_execveat, compat_sys_execveat)
+#define __NR_membarrier 388
+__SYSCALL(__NR_membarrier, sys_membarrier)
Signature · 1 line
1.9.1
#24 lore raw

RFC PATCH v2 8/9 ia64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

---
 arch/ia64/include/asm/unistd.h      | 2 +-
 arch/ia64/include/uapi/asm/unistd.h | 1 +
 arch/ia64/kernel/entry.S            | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
arch/ia64/include/asm/unistd.h +1 -1
index 95c39b9..1d54e17 100644
@@ -11,7 +11,7 @@
 
 
 
-#define NR_syscalls			319 /* length of syscall table */
+#define NR_syscalls			320 /* length of syscall table */
 
 /*
  * The following defines stop scripts/checksyscalls.sh from complaining about
arch/ia64/include/uapi/asm/unistd.h +1 -0
index 4610795..b7aae55 100644
@@ -332,5 +332,6 @@
 #define __NR_memfd_create		1340
 #define __NR_bpf			1341
 #define __NR_execveat			1342
+#define __NR_membarrier			1343
 
 #endif /* _UAPI_ASM_IA64_UNISTD_H */
arch/ia64/kernel/entry.S +1 -0
index ae0de7b..1ce01f9 100644
@@ -1768,5 +1768,6 @@ sys_call_table:
 	data8 sys_memfd_create			// 1340
 	data8 sys_bpf
 	data8 sys_execveat
+	data8 sys_membarrier
 
 	.org sys_call_table + 8*NR_syscalls	// guard against failures to increase NR_syscalls
Signature · 1 line
1.9.1
#26 lore raw

RFC PATCH v2 9/9 s390/s390x: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

---
 arch/s390/include/uapi/asm/unistd.h | 3 ++-
 arch/s390/kernel/syscalls.S         | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
arch/s390/include/uapi/asm/unistd.h +2 -1
index 59d2bb4..2f1de70 100644
@@ -290,7 +290,8 @@
 #define __NR_s390_pci_mmio_write	352
 #define __NR_s390_pci_mmio_read		353
 #define __NR_execveat		354
-#define NR_syscalls 355
+#define __NR_membarrier		355
+#define NR_syscalls 356
 
 /* 
  * There are some system calls that are not present on 64 bit, some
arch/s390/kernel/syscalls.S +1 -0
index f3f4a13..914c098 100644
@@ -363,3 +363,4 @@ SYSCALL(sys_bpf,compat_sys_bpf)
 SYSCALL(sys_s390_pci_mmio_write,compat_sys_s390_pci_mmio_write)
 SYSCALL(sys_s390_pci_mmio_read,compat_sys_s390_pci_mmio_read)
 SYSCALL(sys_execveat,compat_sys_execveat)
+SYSCALL(sys_membarrier,sys_membarrier)
Signature · 1 line
1.9.1
#3 lore raw

Re: [PATCH v2 2/9] mips: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 5 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

Hi,

FYI, sys_membarrier has been merged upstream in Linux 4.3-rc1. Feel free to wire up this system call on MIPS.

Thanks!

Mathieu

Quoted 113 lines

---

arch/mips/include/uapi/asm/unistd.h | 15 +++++++++------
arch/mips/kernel/scall32-o32.S      |  1 +
arch/mips/kernel/scall64-64.S       |  1 +
arch/mips/kernel/scall64-n32.S      |  1 +
arch/mips/kernel/scall64-o32.S      |  1 +
5 files changed, 13 insertions(+), 6 deletions(-)
arch/mips/include/uapi/asm/unistd.h +9 -6
index d0bdfaa..b107983 100644
@@ -378,16 +378,17 @@
 #define __NR_bpf			(__NR_Linux + 355)
 #define __NR_execveat			(__NR_Linux + 356)
 #define __NR_mlock2			(__NR_Linux + 357)
+#define __NR_membarrier			(__NR_Linux + 358)
 
 /*
 * Offset of the last Linux o32 flavoured syscall
 */
-#define __NR_Linux_syscalls		357
+#define __NR_Linux_syscalls		358
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux			4000
-#define __NR_O32_Linux_syscalls		357
+#define __NR_O32_Linux_syscalls		358
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
@@ -713,16 +714,17 @@
 #define __NR_bpf			(__NR_Linux + 315)
 #define __NR_execveat			(__NR_Linux + 316)
 #define __NR_mlock2			(__NR_Linux + 317)
+#define __NR_membarrier			(__NR_Linux + 318)
 
 /*
 * Offset of the last Linux 64-bit flavoured syscall
 */
-#define __NR_Linux_syscalls		317
+#define __NR_Linux_syscalls		318
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux			5000
-#define __NR_64_Linux_syscalls		317
+#define __NR_64_Linux_syscalls		318
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
@@ -1052,15 +1054,16 @@
 #define __NR_bpf			(__NR_Linux + 319)
 #define __NR_execveat			(__NR_Linux + 320)
 #define __NR_mlock2			(__NR_Linux + 321)
+#define __NR_membarrier			(__NR_Linux + 322)
 
 /*
 * Offset of the last N32 flavoured syscall
 */
-#define __NR_Linux_syscalls		321
+#define __NR_Linux_syscalls		322
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux			6000
-#define __NR_N32_Linux_syscalls		321
+#define __NR_N32_Linux_syscalls		322
 
 #endif /* _UAPI_ASM_UNISTD_H */
arch/mips/kernel/scall32-o32.S +1 -0
index b0b377a..9265542 100644
@@ -600,3 +600,4 @@ EXPORT(sys_call_table)
 	PTR	sys_bpf				/* 4355 */
 	PTR	sys_execveat
 	PTR	sys_mlock2
+	PTR	sys_membarrier
arch/mips/kernel/scall64-64.S +1 -0
index f12eb03..79d4fb0 100644
@@ -437,4 +437,5 @@ EXPORT(sys_call_table)
 	PTR	sys_bpf				/* 5315 */
 	PTR	sys_execveat
 	PTR	sys_mlock2
+	PTR	sys_membarrier
 	.size	sys_call_table,.-sys_call_table
arch/mips/kernel/scall64-n32.S +1 -0
index ecdd65a..235892a 100644
@@ -430,4 +430,5 @@ EXPORT(sysn32_call_table)
 	PTR	sys_bpf
 	PTR	compat_sys_execveat		/* 6320 */
 	PTR	sys_mlock2
+	PTR	sys_membarrier
 	.size	sysn32_call_table,.-sysn32_call_table
arch/mips/kernel/scall64-o32.S +1 -1
index 7a8b2df..c051bd3 100644
@@ -585,4 +585,5 @@ EXPORT(sys32_call_table)
 	PTR	sys_bpf				/* 4355 */
 	PTR	compat_sys_execveat
 	PTR	sys_mlock2
+	PTR	sys_membarrier
 	.size	sys32_call_table,.-sys32_call_table
--

1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#6 lore raw

Re: [PATCH v2 3/9] sparc/sparc64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 5 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

Hi,

FYI, sys_membarrier has been merged upstream in Linux 4.3-rc1. Feel free to wire up this system call on sparc.

Thanks!

Mathieu

Quoted 60 lines

---

arch/sparc/include/uapi/asm/unistd.h | 3 ++-
arch/sparc/kernel/systbls_32.S       | 2 +-
arch/sparc/kernel/systbls_64.S       | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
arch/sparc/include/uapi/asm/unistd.h +2 -1
index 6f35f4d..efe9479 100644
@@ -416,8 +416,9 @@
 #define __NR_memfd_create	348
 #define __NR_bpf		349
 #define __NR_execveat		350
+#define __NR_membarrier		351
 
-#define NR_syscalls		351
+#define NR_syscalls		352
 
 /* Bitmask values returned from kern_features system call.  */
 #define KERN_FEATURE_MIXED_MODE_STACK	0x00000001
arch/sparc/kernel/systbls_32.S +0 -0
index e31a905..cc23b62 100644
@@ -87,4 +87,4 @@ sys_call_table:
 /*335*/	.long sys_syncfs, sys_sendmmsg, sys_setns, sys_process_vm_readv,

sys_process_vm_writev
/*340*/ .long sys_ni_syscall, sys_kcmp, sys_finit_module, sys_sched_setattr,
sys_sched_getattr
/*345*/ .long sys_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create,
sys_bpf

arch/sparc/kernel/systbls_32.S +1 -1
-/*350*/	.long sys_execveat
+/*350*/	.long sys_execveat, sys_membarrier
arch/sparc/kernel/systbls_64.S +0 -0
index d72f76a..f229468 100644
@@ -88,7 +88,7 @@ sys_call_table32:
 	.word sys_syncfs, compat_sys_sendmmsg, sys_setns, compat_sys_process_vm_readv,
 	compat_sys_process_vm_writev
 /*340*/	.word sys_kern_features, sys_kcmp, sys_finit_module, sys_sched_setattr,

sys_sched_getattr
.word sys32_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf

arch/sparc/kernel/systbls_64.S +1 -1
-/*350*/	.word sys32_execveat
+/*350*/	.word sys32_execveat, sys_membarrier

#endif /* CONFIG_COMPAT */

arch/sparc/kernel/systbls_64.S +0 -0
@@ -168,4 +168,4 @@ sys_call_table:
 	.word sys_syncfs, sys_sendmmsg, sys_setns, sys_process_vm_readv,
 	sys_process_vm_writev
 /*340*/	.word sys_kern_features, sys_kcmp, sys_finit_module, sys_sched_setattr,

sys_sched_getattr
.word sys_renameat2, sys_seccomp, sys_getrandom, sys_memfd_create, sys_bpf

arch/sparc/kernel/systbls_64.S +1 -2
-/*350*/	.word sys64_execveat
+/*350*/	.word sys64_execveat, sys_membarrier
--

1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#10 lore raw

Re: [PATCH v2 4/9] parisc: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 6 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

Hi,

FYI, sys_membarrier has been pulled into Linux 4.3-rc1. Please feel free to wire it up on parisc.

Thanks!

Mathieu

Quoted 36 lines

---
arch/parisc/include/uapi/asm/unistd.h | 3 ++-
arch/parisc/kernel/syscall_table.S | 1 +

2 files changed, 3 insertions(+), 1 deletion(-)
arch/parisc/include/uapi/asm/unistd.h +2 -1
index 2e639d7..dadcada 100644
@@ -358,8 +358,9 @@
 #define __NR_memfd_create	(__NR_Linux + 340)
 #define __NR_bpf		(__NR_Linux + 341)
 #define __NR_execveat		(__NR_Linux + 342)
+#define __NR_membarrier		(__NR_Linux + 343)
 
-#define __NR_Linux_syscalls	(__NR_execveat + 1)
+#define __NR_Linux_syscalls	(__NR_membarrier + 1)
 
 
 #define __IGNORE_select		/* newselect */
arch/parisc/kernel/syscall_table.S +1 -1
index 8eefb12..4e77991 100644
@@ -438,6 +438,7 @@
 	ENTRY_SAME(memfd_create)	/* 340 */
 	ENTRY_SAME(bpf)
 	ENTRY_COMP(execveat)
+	ENTRY_SAME(membarrier)
 
 
 .ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b))
--

1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#13 lore raw

Re: [RFC PATCH v2 5/9] alpha: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 3 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

sys_membarrier has been merged into Linux 4.3-rc1. sys_membarrier can therefore be tested on top of Linus' master.

Thanks,

Mathieu

Quoted 53 lines

---

arch/alpha/include/asm/unistd.h      | 2 +-
arch/alpha/include/uapi/asm/unistd.h | 1 +
arch/alpha/kernel/systbls.S          | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
arch/alpha/include/asm/unistd.h +1 -1
index a56e608..07aa4ca 100644
@@ -3,7 +3,7 @@
 
 #include <uapi/asm/unistd.h>
 
-#define NR_SYSCALLS			514
+#define NR_SYSCALLS			515
 
 #define __ARCH_WANT_OLD_READDIR
 #define __ARCH_WANT_STAT64
arch/alpha/include/uapi/asm/unistd.h +1 -0
index aa33bf5..7725619 100644
@@ -475,5 +475,6 @@
 #define __NR_getrandom			511
 #define __NR_memfd_create		512
 #define __NR_execveat			513
+#define __NR_membarrier			514
 
 #endif /* _UAPI_ALPHA_UNISTD_H */
arch/alpha/kernel/systbls.S +1 -1
index 9b62e3f..1ea64f4 100644
@@ -532,6 +532,7 @@ sys_call_table:
 	.quad sys_getrandom
 	.quad sys_memfd_create
 	.quad sys_execveat
+	.quad sys_membarrier
 
 	.size sys_call_table, . - sys_call_table
 	.type sys_call_table, @object
--

1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#20 lore raw

Re: [RFC PATCH v2 7/9] arm64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 7 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

arm64 sys_membarrier number is already wired for arm64 through asm-generic/unistd.h, but needs to be allocated separately for the 32-bit compability layer of arm64.

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

sys_membarrier has been merged into Linux 4.3-rc1. sys_membarrier can therefore be tested on top of Linus' master.

Thanks,

Mathieu

Quoted 37 lines

---
arch/arm64/include/asm/unistd.h | 2 +-
arch/arm64/include/asm/unistd32.h | 2 ++

2 files changed, 3 insertions(+), 1 deletion(-)
arch/arm64/include/asm/unistd.h +1 -1
index 3bc498c..e70f7e7 100644
@@ -44,7 +44,7 @@
 #define __ARM_NR_compat_cacheflush	(__ARM_NR_COMPAT_BASE+2)
 #define __ARM_NR_compat_set_tls		(__ARM_NR_COMPAT_BASE+5)
 
-#define __NR_compat_syscalls		388
+#define __NR_compat_syscalls		389
 #endif
 
 #define __ARCH_WANT_SYS_CLONE
arch/arm64/include/asm/unistd32.h +2 -1
index cef934a..d97be80 100644
@@ -797,3 +797,5 @@ __SYSCALL(__NR_memfd_create, sys_memfd_create)
 __SYSCALL(__NR_bpf, sys_bpf)
 #define __NR_execveat 387
 __SYSCALL(__NR_execveat, compat_sys_execveat)
+#define __NR_membarrier 388
+__SYSCALL(__NR_membarrier, sys_membarrier)
--

1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#25 lore raw

Re: [RFC PATCH v2 8/9] ia64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 3 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

sys_membarrier has been merged into Linux 4.3-rc1. It can therefore be tested on top of Linus' master.

Thanks,

Mathieu

Quoted 52 lines

---

arch/ia64/include/asm/unistd.h      | 2 +-
arch/ia64/include/uapi/asm/unistd.h | 1 +
arch/ia64/kernel/entry.S            | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
arch/ia64/include/asm/unistd.h +1 -1
index 95c39b9..1d54e17 100644
@@ -11,7 +11,7 @@
 
 
 
-#define NR_syscalls			319 /* length of syscall table */
+#define NR_syscalls			320 /* length of syscall table */
 
 /*
 * The following defines stop scripts/checksyscalls.sh from complaining about
arch/ia64/include/uapi/asm/unistd.h +1 -0
index 4610795..b7aae55 100644
@@ -332,5 +332,6 @@
 #define __NR_memfd_create		1340
 #define __NR_bpf			1341
 #define __NR_execveat			1342
+#define __NR_membarrier			1343
 
 #endif /* _UAPI_ASM_IA64_UNISTD_H */
arch/ia64/kernel/entry.S +1 -0
index ae0de7b..1ce01f9 100644
@@ -1768,5 +1768,6 @@ sys_call_table:
 	data8 sys_memfd_create			// 1340
 	data8 sys_bpf
 	data8 sys_execveat
+	data8 sys_membarrier
 
 	.org sys_call_table + 8*NR_syscalls	// guard against failures to increase

NR_syscalls
--
1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#27 lore raw

Re: [RFC PATCH v2 9/9] s390/s390x: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 3 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

sys_membarrier has been merged into Linux 4.3-rc1. It can therefore be tested on top of Linus' master by applying this patch.

Thanks,

Mathieu

Quoted 38 lines

---
arch/s390/include/uapi/asm/unistd.h | 3 ++-
arch/s390/kernel/syscalls.S | 1 +

2 files changed, 3 insertions(+), 1 deletion(-)
arch/s390/include/uapi/asm/unistd.h +2 -1
index 59d2bb4..2f1de70 100644
@@ -290,7 +290,8 @@
 #define __NR_s390_pci_mmio_write	352
 #define __NR_s390_pci_mmio_read		353
 #define __NR_execveat		354
-#define NR_syscalls 355
+#define __NR_membarrier		355
+#define NR_syscalls 356
 
 /*
 * There are some system calls that are not present on 64 bit, some
arch/s390/kernel/syscalls.S +1 -1
index f3f4a13..914c098 100644
@@ -363,3 +363,4 @@ SYSCALL(sys_bpf,compat_sys_bpf)
 SYSCALL(sys_s390_pci_mmio_write,compat_sys_s390_pci_mmio_write)
 SYSCALL(sys_s390_pci_mmio_read,compat_sys_s390_pci_mmio_read)
 SYSCALL(sys_execveat,compat_sys_execveat)
+SYSCALL(sys_membarrier,sys_membarrier)
--

1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#21 lore raw

Re: [RFC PATCH v2 7/9] arm64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers

Hi Mathieu,

Quoted 6 lines · Mathieu Desnoyers
Quoted 4 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

arm64 sys_membarrier number is already wired for arm64 through asm-generic/unistd.h, but needs to be allocated separately for the 32-bit compability layer of arm64.

Quoted 6 lines
Quoted 3 lines

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

sys_membarrier has been merged into Linux 4.3-rc1. sys_membarrier can therefore be tested on top of Linus' master.

Just to say that I'm happy to merge this once arch/arm/ also has the syscall wired up. It'd be a bit weird to have the support in the arm64 compat layer but not the arch/arm/ native kernel!

Will

#22 lore raw

Re: [RFC PATCH v2 7/9] arm64: allocate sys_membarrier system call number

Quoted 14 lines · ----- On Sep 16, 2015, at 12:35 PM, Will Deacon [email protected] wrote:

Hi Mathieu,

Quoted 11 lines · Mathieu Desnoyers

----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers

Quoted 7 lines · [email protected] wrote:

arm64 sys_membarrier number is already wired for arm64 through asm-generic/unistd.h, but needs to be allocated separately for the 32-bit compability layer of arm64.

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Quoted 6 lines
Quoted 2 lines

sys_membarrier has been merged into Linux 4.3-rc1. sys_membarrier can therefore be tested on top of Linus' master.

Just to say that I'm happy to merge this once arch/arm/ also has the syscall wired up. It'd be a bit weird to have the support in the arm64 compat layer but not the arch/arm/ native kernel!

Sounds good! We're currently testing sys_membarrier on a wandboard. We'll provide feedback by replying to the ARM patch thread soon.

Thanks,

Mathieu

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#23 lore raw

Re: [RFC PATCH v2 7/9] arm64: allocate sys_membarrier system call number

Quoted 19 lines · Mathieu Desnoyers
Quoted 17 lines · ----- On Sep 16, 2015, at 12:35 PM, Will Deacon [email protected] wrote:

Hi Mathieu,

Quoted 13 lines · Mathieu Desnoyers

----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers

Quoted 7 lines · [email protected] wrote:

arm64 sys_membarrier number is already wired for arm64 through asm-generic/unistd.h, but needs to be allocated separately for the 32-bit compability layer of arm64.

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

sys_membarrier has been merged into Linux 4.3-rc1. sys_membarrier can therefore be tested on top of Linus' master.

Quoted 6 lines
Quoted 3 lines

Just to say that I'm happy to merge this once arch/arm/ also has the syscall wired up. It'd be a bit weird to have the support in the arm64 compat layer but not the arch/arm/ native kernel!

Sounds good! We're currently testing sys_membarrier on a wandboard. We'll provide feedback by replying to the ARM patch thread soon.

Ok. I was about to kick the selftest on my Juno board (arm64).

Will

maintainer
#7 lore raw

Re: [PATCH v2 3/9] sparc/sparc64: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers

From: Mathieu Desnoyers <[email protected]>
Date: Wed, 16 Sep 2015 15:05:54 +0000 (UTC)

Quoted 8 lines
Quoted 5 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…
Quoted 4 lines

Hi,

FYI, sys_membarrier has been merged upstream in Linux 4.3-rc1. Feel free to wire up this system call on sparc.

Since I ACK'd this patch which wires the system call up, it should have been submitted by you directly. That's the whole idea.

#8 lore raw

Re: [PATCH v2 3/9] sparc/sparc64: allocate sys_membarrier system call number

Quoted 12 lines · ----- On Sep 16, 2015, at 1:57 PM, David Miller…

From: Mathieu Desnoyers <mathieu.desnoyers-vg+e7yoeK/dWk0Htik3J/[email protected]>
Date: Wed, 16 Sep 2015 15:05:54 +0000 (UTC)

Quoted 9 lines

----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers

Quoted 5 lines · mathieu.desnoyers-vg+e7yoeK/dWk0Htik3J/[email protected] wrote:
Quoted 7 lines
Quoted 4 lines

Hi,

FYI, sys_membarrier has been merged upstream in Linux 4.3-rc1. Feel free to wire up this system call on sparc.

Since I ACK'd this patch which wires the system call up, it should have been submitted by you directly. That's the whole idea.

OK, good to know. Other architecture maintainers chose to pick up the system call wire-up patch themselves.

Andrew, can you pick up this patch please ?

Thanks,

Mathieu

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
author Tested-by on v2 6/9
#15 lore raw

Re: [RFC PATCH v2 6/9] arm: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 3 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

We tested the system call on our ARM board (Wandboard, SoC Freescale i.MX6 Quad) by applying this patch on top of Linux 4.3-rc1. Both the membarrier kselftest and Userspace RCU regression tests (the latter manually wired up on sys_membarrier) work fine.

sys_membarrier has been pulled into Linux 4.3-rc1. Please feel free to wire it up on ARM.

Thanks!

Mathieu

Quoted 51 lines

---

arch/arm/include/asm/unistd.h      | 2 +-
arch/arm/include/uapi/asm/unistd.h | 1 +
arch/arm/kernel/calls.S            | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
arch/arm/include/asm/unistd.h +1 -1
index 32640c4..d93876c 100644
@@ -19,7 +19,7 @@
 * This may need to be greater than __NR_last_syscall+1 in order to
 * account for the padding in the syscall table
 */
-#define __NR_syscalls  (388)
+#define __NR_syscalls  (389)
 
 /*
 * *NOTE*: This is a ghost syscall private to the kernel.  Only the
arch/arm/include/uapi/asm/unistd.h +1 -0
index 0c3f5a0..436bb32 100644
@@ -414,6 +414,7 @@
 #define __NR_memfd_create		(__NR_SYSCALL_BASE+385)
 #define __NR_bpf			(__NR_SYSCALL_BASE+386)
 #define __NR_execveat			(__NR_SYSCALL_BASE+387)
+#define __NR_membarrier			(__NR_SYSCALL_BASE+388)
 
 /*
 * The following SWIs are ARM private.
arch/arm/kernel/calls.S +1 -0
index 05745eb..310699c 100644
@@ -397,6 +397,7 @@
 /* 385 */	CALL(sys_memfd_create)
 		CALL(sys_bpf)
 		CALL(sys_execveat)
+		CALL(sys_membarrier)
 #ifndef syscalls_counted

.equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls #define syscalls_counted
--
1.9.1

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
maintainer
#11 lore raw

Re: [PATCH v2 4/9] parisc: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 9 lines · Mathieu Desnoyers
Quoted 6 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…
Quoted 4 lines

Hi,

FYI, sys_membarrier has been pulled into Linux 4.3-rc1. Please feel free to wire it up on parisc.

Thanks for the notice.
I'll include your patch with an upcoming parisc pull-request later in the 4.3 cycle.

Helge

Quoted 37 lines
Quoted 36 lines

---
arch/parisc/include/uapi/asm/unistd.h | 3 ++-
arch/parisc/kernel/syscall_table.S | 1 +

2 files changed, 3 insertions(+), 1 deletion(-)
arch/parisc/include/uapi/asm/unistd.h +2 -1
index 2e639d7..dadcada 100644
@@ -358,8 +358,9 @@
 #define __NR_memfd_create	(__NR_Linux + 340)
 #define __NR_bpf		(__NR_Linux + 341)
 #define __NR_execveat		(__NR_Linux + 342)
+#define __NR_membarrier		(__NR_Linux + 343)
 
-#define __NR_Linux_syscalls	(__NR_execveat + 1)
+#define __NR_Linux_syscalls	(__NR_membarrier + 1)
 
 
 #define __IGNORE_select		/* newselect */
arch/parisc/kernel/syscall_table.S +1 -1
index 8eefb12..4e77991 100644
@@ -438,6 +438,7 @@
 	ENTRY_SAME(memfd_create)	/* 340 */
 	ENTRY_SAME(bpf)
 	ENTRY_COMP(execveat)
+	ENTRY_SAME(membarrier)
 
 
 .ifne (. - 90b) - (__NR_Linux_syscalls * (91b - 90b))
--

1.9.1

#28 lore raw

Re: [RFC PATCH v2 9/9] s390/s390x: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 10 lines · On Wed, 16 Sep 2015 15:20:05 +0000 (UTC) Mathieu Desnoyers…
Quoted 3 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

sys_membarrier has been merged into Linux 4.3-rc1. It can therefore be tested on top of Linus' master by applying this patch.

Successfully tested with todays Linus' master, membarrier_test has passed. Patch applied to linux-s390 but with a different system call number. #355 is already taken by sys_userfaultfd, the new one for membarrier is #356.

Signature · 4 lines
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.
#16 lore raw

Re: [RFC PATCH v2 6/9] arm: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 14 lines · Mathieu Desnoyers
Quoted 3 lines · ----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers…

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

We tested the system call on our ARM board (Wandboard, SoC Freescale i.MX6 Quad) by applying this patch on top of Linux 4.3-rc1. Both the membarrier kselftest and Userspace RCU regression tests (the latter manually wired up on sys_membarrier) work fine.

Quoted 4 lines

sys_membarrier has been pulled into Linux 4.3-rc1. Please feel free to wire it up on ARM.

Well, it's not going to end up with 388, but 389, because we also have userfaultfd added in the same merge window, and I follow the x86 syscall ordering when adding to ARM.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#17 lore raw

Re: [RFC PATCH v2 6/9] arm: allocate sys_membarrier system call number

Quoted 16 lines · ----- On Sep 17, 2015, at 9:13 AM, Russell King - ARM Linux…
Quoted 15 lines · Mathieu Desnoyers

----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers

Quoted 3 lines · mathieu.desnoyers-vg+e7yoeK/dWk0Htik3J/[email protected] wrote:

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

We tested the system call on our ARM board (Wandboard, SoC Freescale i.MX6 Quad) by applying this patch on top of Linux 4.3-rc1. Both the membarrier kselftest and Userspace RCU regression tests (the latter manually wired up on sys_membarrier) work fine.

Quoted 8 lines
Quoted 4 lines

sys_membarrier has been pulled into Linux 4.3-rc1. Please feel free to wire it up on ARM.

Well, it's not going to end up with 388, but 389, because we also have userfaultfd added in the same merge window, and I follow the x86 syscall ordering when adding to ARM.

That's fine with me!

Thanks,

Mathieu

Quoted 4 lines

--
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
#18 lore raw

Re: [RFC PATCH v2 6/9] arm: allocate sys_membarrier system call number

Quoted 20 lines · Mathieu Desnoyers
Quoted 18 lines · ----- On Sep 17, 2015, at 9:13 AM, Russell King - ARM Linux…
Quoted 17 lines · Mathieu Desnoyers

----- On Sep 7, 2015, at 12:15 PM, Mathieu Desnoyers

Quoted 3 lines · mathieu.desnoyers-vg+e7yoeK/dWk0Htik3J/[email protected] wrote:

[ Untested on this architecture. To try it out: fetch linux-next/akpm,
apply this patch, build/run a membarrier-enabled kernel, and do make kselftest. ]

Hi,

We tested the system call on our ARM board (Wandboard, SoC Freescale i.MX6 Quad) by applying this patch on top of Linux 4.3-rc1. Both the membarrier kselftest and Userspace RCU regression tests (the latter manually wired up on sys_membarrier) work fine.

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

sys_membarrier has been pulled into Linux 4.3-rc1. Please feel free to wire it up on ARM.

Well, it's not going to end up with 388, but 389, because we also have userfaultfd added in the same merge window, and I follow the x86 syscall ordering when adding to ARM.

That's fine with me!

I'll also merge my patch after -rc2's out, so expect it to appear in linux-next next week.

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
#4 lore raw

Re: [PATCH v2 2/9] mips: allocate sys_membarrier system call number

In reply to Mathieu Desnoyers
Quoted 2 lines · ----- On Sep 16, 2015, at 11:04 AM, Mathieu Desnoyers…
Quoted 2 lines

[...]

Hi Andrew,

Since I got the Acked-by from Ralf, my understanding is that he expects that you can pick up this patch through your tree. Please let me know if I need to do anything more. It's the same story for sparc/sparc64.

Thanks!

Mathieu

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com