summaryrefslogtreecommitdiffstats
path: root/src/include/usr/util
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2017-10-09 06:20:29 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2017-11-06 11:20:30 -0500
commit97f6525326d7ad9fa099be2b503a971c9325f503 (patch)
treeca00507985ae3805e22b672c82c6f94bbca183c1 /src/include/usr/util
parentcb260675de9f4f9025e0fc99687f6776e5f1bbac (diff)
downloadblackbird-hostboot-97f6525326d7ad9fa099be2b503a971c9325f503.tar.gz
blackbird-hostboot-97f6525326d7ad9fa099be2b503a971c9325f503.zip
Control Host reboots for manufacturing
In a manufacturing environment it is desired to reboot once (and only once) to get the FIRDATA analysis on checkstop. This commit adds functionality to control the auto reboot policy on the BMC. It then "remembers" the state using the HB VOLATILE PNOR partition to enable reboots when in MFG mode. Note that when in this mode, any reboot (even from host) will terminate the boot. Change-Id: If5ce133b59e10c659d7024d1ae08a40988e35190 RTC:180772 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48116 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/include/usr/util')
-rw-r--r--src/include/usr/util/utilsemipersist.H6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/include/usr/util/utilsemipersist.H b/src/include/usr/util/utilsemipersist.H
index 82943825e..9e56536d1 100644
--- a/src/include/usr/util/utilsemipersist.H
+++ b/src/include/usr/util/utilsemipersist.H
@@ -51,12 +51,14 @@ namespace Util
enum
{
PERSIST_MAGIC = 0x48425f56, // HB_V
+ MFG_TERM_REBOOT_ENABLE = 0x4d464754, // MFGT
};
struct semiPersistData_t
{
- uint32_t magic; //HB_V
- uint32_t reboot_cnt; // Number of reboots with valid data
+ uint32_t magic; //HB_V
+ uint32_t reboot_cnt; // Number of reboots with valid data
+ uint32_t mfg_term_reboot; // Manufacturing Terminate set for reboot
semiPersistData_t(): magic(0), reboot_cnt(0) {};
} PACKED;
OpenPOWER on IntegriCloud