powerpc/powernv: implement opal_put_chars_atomic
authorNicholas Piggin <npiggin@gmail.com>
Mon, 30 Apr 2018 14:55:51 +0000 (00:55 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 24 Jul 2018 12:09:57 +0000 (22:09 +1000)
commit17cc1dd4924391b54fb179d0868b89dc96f2ee80
tree18aada7559529c711897037d94b316a6d26cfa63
parentac4ac788fdadc6b703ff3322de07dee442e08e1c
powerpc/powernv: implement opal_put_chars_atomic

The RAW console does not need writes to be atomic, so relax
opal_put_chars to be able to do partial writes, and implement an
_atomic variant which does not take a spinlock. This API is used
in xmon, so the less locking that is used, the better chance there
is that a crash can be debugged.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/opal.h
arch/powerpc/platforms/powernv/opal.c
drivers/tty/hvc/hvc_opal.c