aboutsummaryrefslogtreecommitdiff
path: root/core/platform.c
diff options
context:
space:
mode:
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>2016-11-22 20:17:25 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-12-23 15:00:19 +1100
commit85e67a66daaa7adff336b4501c1b1f45d5f03bb5 (patch)
treee4ba38f327484104d827999e08a42ac7524dd3e9 /core/platform.c
parentd6a21dbeb37c19859c1b509fbe291f07e2ff4460 (diff)
downloadskiboot-85e67a66daaa7adff336b4501c1b1f45d5f03bb5.zip
skiboot-85e67a66daaa7adff336b4501c1b1f45d5f03bb5.tar.gz
skiboot-85e67a66daaa7adff336b4501c1b1f45d5f03bb5.tar.bz2
platform: add OPAL_REBOOT_FULL_IPL reboot type
There may be circumstances in which a user wants to force a full IPL reboot rather than using fast reboot. Add a new reboot type, OPAL_REBOOT_FULL_IPL, that disables fast reboot. On platforms which don't support fast reboot, this will be equivalent to a normal reboot. Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/platform.c')
-rw-r--r--core/platform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/platform.c b/core/platform.c
index 4e1c691..838dfd6 100644
--- a/core/platform.c
+++ b/core/platform.c
@@ -92,6 +92,9 @@ static int64_t opal_cec_reboot2(uint32_t reboot_type, char *diag)
}
disable_fast_reboot("Reboot due to Platform Error");
return xscom_trigger_xstop();
+ case OPAL_REBOOT_FULL_IPL:
+ disable_fast_reboot("full IPL reboot requested");
+ return opal_cec_reboot();
default:
prlog(PR_NOTICE, "OPAL: Unsupported reboot request %d\n", reboot_type);
return OPAL_UNSUPPORTED;