Re: [PATCH] openrisc: define mb() as its mandatory

2018-04-09 Thread Peter Zijlstra
On Sun, Apr 08, 2018 at 09:07:29AM +0900, Stafford Horne wrote: > On Sat, Apr 07, 2018 at 11:09:05AM +0200, Peter Zijlstra wrote: > > On Sat, Apr 07, 2018 at 05:58:49AM +0900, Stafford Horne wrote: > > > Following Peter Z's patch ("asm-generic: Disallow no-op mb() for SMP > > > systems") which make

Re: [PATCH] openrisc: define mb() as its mandatory

2018-04-07 Thread Stafford Horne
On Sat, Apr 07, 2018 at 11:09:05AM +0200, Peter Zijlstra wrote: > On Sat, Apr 07, 2018 at 05:58:49AM +0900, Stafford Horne wrote: > > Following Peter Z's patch ("asm-generic: Disallow no-op mb() for SMP > > systems") which makes mb() mandatory for SMP architectures we define it > > as l.msync. On

Re: [PATCH] openrisc: define mb() as its mandatory

2018-04-07 Thread Peter Zijlstra
On Sat, Apr 07, 2018 at 05:58:49AM +0900, Stafford Horne wrote: > Following Peter Z's patch ("asm-generic: Disallow no-op mb() for SMP > systems") which makes mb() mandatory for SMP architectures we define it > as l.msync. On OpenRISC this will flush the current cores write buffer > and trigger re