aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-10-25 19:32:25 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-25 19:32:25 +1100
commitbedab1a10fc9815948745adc944aeb6a3a11238e (patch)
treeaa027ef366030f46d0214825c7552c818a6cfdc4 /core
parentd3caa64c4ed364af1be1471ad3d67a6f310552d1 (diff)
downloadskiboot-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')
-rw-r--r--core/platform.c1
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);