Re: [PATCH 5/6] powerpc/powernv: implement opal_put_chars_nonatomic

2018-04-09 Thread Nicholas Piggin
On Mon, 09 Apr 2018 18:24:46 +1000 Benjamin Herrenschmidt wrote: > On Mon, 2018-04-09 at 16:23 +1000, Nicholas Piggin wrote: > > On Mon, 09 Apr 2018 15:57:55 +1000 > > Benjamin Herrenschmidt wrote: > > > > > On Mon, 2018-04-09 at 15:40 +1000, Nicholas Piggin wrote: > > > > The RAW console d

Re: [PATCH 5/6] powerpc/powernv: implement opal_put_chars_nonatomic

2018-04-09 Thread Benjamin Herrenschmidt
On Mon, 2018-04-09 at 16:23 +1000, Nicholas Piggin wrote: > On Mon, 09 Apr 2018 15:57:55 +1000 > Benjamin Herrenschmidt wrote: > > > On Mon, 2018-04-09 at 15:40 +1000, Nicholas Piggin wrote: > > > The RAW console does not need writes to be atomic, so implement a > > > _nonatomic variant which doe

Re: [PATCH 5/6] powerpc/powernv: implement opal_put_chars_nonatomic

2018-04-08 Thread Nicholas Piggin
On Mon, 09 Apr 2018 15:57:55 +1000 Benjamin Herrenschmidt wrote: > On Mon, 2018-04-09 at 15:40 +1000, Nicholas Piggin wrote: > > The RAW console does not need writes to be atomic, so implement a > > _nonatomic variant which does not take a spinlock. This API is used > > in xmon, so the less locki

Re: [PATCH 5/6] powerpc/powernv: implement opal_put_chars_nonatomic

2018-04-08 Thread Benjamin Herrenschmidt
On Mon, 2018-04-09 at 15:40 +1000, Nicholas Piggin wrote: > The RAW console does not need writes to be atomic, so implement a > _nonatomic variant which does not take a spinlock. This API is used > in xmon, so the less locking thta's used, the better chance there is > that a crash can be debugged.

[PATCH 5/6] powerpc/powernv: implement opal_put_chars_nonatomic

2018-04-08 Thread Nicholas Piggin
The RAW console does not need writes to be atomic, so implement a _nonatomic variant which does not take a spinlock. This API is used in xmon, so the less locking thta's used, the better chance there is that a crash can be debugged. Cc: Benjamin Herrenschmidt Signed-off-by: Nicholas Piggin ---