diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-25 19:32:25 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-25 19:32:25 +1100 |
commit | bedab1a10fc9815948745adc944aeb6a3a11238e (patch) | |
tree | aa027ef366030f46d0214825c7552c818a6cfdc4 /core/platform.c | |
parent | d3caa64c4ed364af1be1471ad3d67a6f310552d1 (diff) | |
download | skiboot-bedab1a10fc9815948745adc944aeb6a3a11238e.zip skiboot-bedab1a10fc9815948745adc944aeb6a3a11238e.tar.gz skiboot-bedab1a10fc9815948745adc944aeb6a3a11238e.tar.bz2 |
fast-reset: disable fast reboot in event of platform error
Most of the time, if we're rebooting due to a platform error, we should
trigger a checkstop. However, if we haven't been told what we should do
to trigger a checkstop (e.g. on an FSP machine), then we should still
fail to fast-reboot.
So, disable fast-reboot in the OPAL_CEC_REBOOT2 code path
for OPAL_REBOOT_PLATFORM_ERROR reboot type.
We don't save the reason for the platform error as that's already
been error logged.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/platform.c')
-rw-r--r-- | core/platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/platform.c b/core/platform.c index b37346e..9171fa3 100644 --- a/core/platform.c +++ b/core/platform.c @@ -89,6 +89,7 @@ static int64_t opal_cec_reboot2(uint32_t reboot_type, char *diag) } else { prerror("OPAL: failed to log an error\n"); } + disable_fast_reboot("Reboot due to Platform Error"); return xscom_trigger_xstop(); default: prlog(PR_NOTICE, "OPAL: Unsupported reboot request %d\n", reboot_type); |