diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2016-08-06 13:37:39 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-02-07 09:09:38 -0500 |
commit | 6e0b34872da165a1c30609d3e9d6cfbd70418507 (patch) | |
tree | 1da665e0024724133d96d665505d6dcc66026bc3 /src/include | |
parent | f986133a26546254d64e65e30b00ae7f0d561ec9 (diff) | |
download | talos-hostboot-6e0b34872da165a1c30609d3e9d6cfbd70418507.tar.gz talos-hostboot-6e0b34872da165a1c30609d3e9d6cfbd70418507.zip |
OP820:OPRASGS:Garrison:Hostboot IPL fails to halt during shutdown reconfig
-Added the ability to notify the istep dispacher discontinue
executing isteps
-Added call to stopIpl() api in sbe update path
-Added internal graceful reboot request for SBE update and
reconfigure re-ipl usage
Change-Id: I5682992802b0f373df91378a38187d032bb3a0b4
CQ:SW361886
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27959
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28574
Reviewed-by: Dean Sanner <dsanner@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/usr/initservice/istepdispatcherif.H | 18 | ||||
-rw-r--r-- | src/include/usr/ipmi/ipmiif.H | 10 |
2 files changed, 27 insertions, 1 deletions
diff --git a/src/include/usr/initservice/istepdispatcherif.H b/src/include/usr/initservice/istepdispatcherif.H index 69cebf0a8..752f9ffff 100644 --- a/src/include/usr/initservice/istepdispatcherif.H +++ b/src/include/usr/initservice/istepdispatcherif.H @@ -70,6 +70,24 @@ bool isShutdownRequested ( void ); /** * @brief This function is to be used by external code to tell + * this instance of istepdispatcher to stop executing steps + * + * @return Nothing + */ +void stopIpl( void ); + +#ifdef CONFIG_BMC_IPMI +/** + * @brief This function is to be used by external code to + * initate a system reboot via IPMI commands + * + * @return Nothing + */ +void requestReboot( void ); +#endif + +/** + * @brief This function is to be used by external code to tell * this instance of istepdispatcher whether it should * accept istep messages or not * diff --git a/src/include/usr/ipmi/ipmiif.H b/src/include/usr/ipmi/ipmiif.H index 51bafb31d..09f0c4830 100644 --- a/src/include/usr/ipmi/ipmiif.H +++ b/src/include/usr/ipmi/ipmiif.H @@ -54,8 +54,11 @@ namespace IPMI MSG_STATE_GRACEFUL_SHUTDOWN, + // initate a reboot request + MSG_STATE_INITATE_POWER_CYCLE, + // Used to check range. Leave as last. - MSG_LAST_TYPE = MSG_STATE_GRACEFUL_SHUTDOWN, + MSG_LAST_TYPE = MSG_STATE_INITATE_POWER_CYCLE, }; // chassis power off request types @@ -345,6 +348,11 @@ namespace IPMI */ size_t max_buffer(void); + /** + * Tells ipmirp to start a graceful reboot sequence + * + */ + void initiateReboot(); /** * Structure to return BMC/IPMI information in |