[PATCH 2/6] powerpc/powernv: Implement and use opal_flush_console

Russell Currey ruscur at russell.cc
Tue Apr 10 15:02:04 AEST 2018


On Mon, 2018-04-09 at 15:40 +1000, Nicholas Piggin wrote:
> A new console flushing firmware API was introduced to replace event
> polling loops, and implemented in opal-kmsg with affddff69c55e
> ("powerpc/powernv: Add a kmsg_dumper that flushes console output on
> panic"), to flush the console in the panic path.
> 
> The OPAL console driver has other situations where interrupts are off
> and it needs to flush the console synchronously. These still use a
> polling loop.
> 
> So move the opal-kmsg flush code to opal_flush_console, and use the
> new function in opal-kmsg and opal_put_chars.
> 
> Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Cc: Russell Currey <ruscur at russell.cc>
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>

Reviewed-by: Russell Currey <ruscur at russell.cc>


More information about the Linuxppc-dev mailing list