Re: Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-06 Thread Mauricio Faria de Oliveira
On 02/05/2018 11:06 PM, Nicholas Piggin wrote: Does this help? powerpc/64s/radix: allocate guard-PID for kernel contexts at boot Yes, the test-case passes: # strace -e set_robust_list -f ./test set_robust_list(0x7fff8d453910, 24) = 0 +++ exited with 0 +++ # uname -r 4

Re: Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-05 Thread Nicholas Piggin
On Tue, 06 Feb 2018 08:47:03 +0530 "Aneesh Kumar K.V" wrote: > Nicholas Piggin writes: > > > On Tue, 06 Feb 2018 08:55:31 +1100 > > Benjamin Herrenschmidt wrote: > > > >> On Mon, 2018-02-05 at 19:14 -0200, Mauricio Faria de Oliveira wrote: > >> > Nick, Michael, > >> > >> +Aneesh. > >>

Re: Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-05 Thread Aneesh Kumar K.V
Nicholas Piggin writes: > On Tue, 06 Feb 2018 08:55:31 +1100 > Benjamin Herrenschmidt wrote: > >> On Mon, 2018-02-05 at 19:14 -0200, Mauricio Faria de Oliveira wrote: >> > Nick, Michael, >> >> +Aneesh. >> >> > On 02/05/2018 10:48 AM, Florian Weimer wrote: >> > > 7041 set_robust_list(0x7ff

Re: Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-05 Thread Nicholas Piggin
On Tue, 06 Feb 2018 08:55:31 +1100 Benjamin Herrenschmidt wrote: > On Mon, 2018-02-05 at 19:14 -0200, Mauricio Faria de Oliveira wrote: > > Nick, Michael, > > +Aneesh. > > > On 02/05/2018 10:48 AM, Florian Weimer wrote: > > > 7041 set_robust_list(0x7fff93dc3980, 24) = -1 ENOSYS (Function n

Re: Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-05 Thread Benjamin Herrenschmidt
On Mon, 2018-02-05 at 19:14 -0200, Mauricio Faria de Oliveira wrote: > Nick, Michael, +Aneesh. > On 02/05/2018 10:48 AM, Florian Weimer wrote: > > 7041 set_robust_list(0x7fff93dc3980, 24) = -1 ENOSYS (Function not > > implemented) > > The regression was introduced by commit 371b8044 ("powerpc/

Re: Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-05 Thread Mauricio Faria de Oliveira
Nick, Michael, On 02/05/2018 10:48 AM, Florian Weimer wrote: 7041  set_robust_list(0x7fff93dc3980, 24) = -1 ENOSYS (Function not implemented) The regression was introduced by commit 371b8044 ("powerpc/64s: Initialize ISAv3 MMU registers before setting partition table"). The problem is Radix

Re: Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-05 Thread Florian Weimer
On 02/05/2018 01:48 PM, Florian Weimer wrote: I get this: 7041  set_robust_list(0x7fff93dc3980, 24) = -1 ENOSYS (Function not implemented) The system call works on 4.14.  Looks like the probing for futex_cmpxchg_enabled goes wrong. Sorry, I have no idea where to start digging.  I don't see

Kernel 4.15 lost set_robust_list support on POWER 9

2018-02-05 Thread Florian Weimer
I get this: 7041 set_robust_list(0x7fff93dc3980, 24) = -1 ENOSYS (Function not implemented) The system call works on 4.14. Looks like the probing for futex_cmpxchg_enabled goes wrong. Sorry, I have no idea where to start digging. I don't see anything obvious in dmesg. I'm trying to re