diff options
author | Russell Currey <ruscur@russell.cc> | 2015-12-18 17:15:36 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-01-12 12:13:32 +1100 |
commit | f2efc652cbad6b32e1f0295aac819f6062777e31 (patch) | |
tree | ded31817c9ce70d1fb454134a45ffdbb13cb97b2 /include/opal-api.h | |
parent | d4b142823e28deed097cf79b25d8d1e60b6f4e67 (diff) | |
download | skiboot-f2efc652cbad6b32e1f0295aac819f6062777e31.zip skiboot-f2efc652cbad6b32e1f0295aac819f6062777e31.tar.gz skiboot-f2efc652cbad6b32e1f0295aac819f6062777e31.tar.bz2 |
Add OPAL_CONSOLE_FLUSH to the OPAL API
uart consoles only flush output when polled. The Linux kernel calls
these pollers frequently, except when in a panic state. As such, panic
messages are not fully printed unless the system is configured to reboot
after panic.
This patch adds a new call to the OPAL API to flush the buffer. If the
system has a uart console (i.e. BMC machines), it will incrementally
flush the buffer, returning if there is more to be flushed or not. If
the system has a different console, the function will have no effect.
This will allow the Linux kernel to ensure that panic message have been
fully printed out.
The existing synchronous flushing mechanism used in OPAL's shutdown and
reboot routines has been refactored into a helper that repeatedly calls
the new partial flush function.
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/opal-api.h')
-rw-r--r-- | include/opal-api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/opal-api.h b/include/opal-api.h index 7a11fe8..369aa93 100644 --- a/include/opal-api.h +++ b/include/opal-api.h @@ -162,7 +162,8 @@ #define OPAL_LEDS_GET_INDICATOR 114 #define OPAL_LEDS_SET_INDICATOR 115 #define OPAL_CEC_REBOOT2 116 -#define OPAL_LAST 116 +#define OPAL_CONSOLE_FLUSH 117 +#define OPAL_LAST 117 /* Device tree flags */ |