summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas
diff options
context:
space:
mode:
authorMatt Ploetz <maploetz@us.ibm.com>2016-04-12 11:31:23 -0500
committerMatthew A. Ploetz <maploetz@us.ibm.com>2016-05-11 12:12:30 -0400
commita2eeea7a4f8441d241251e1411735302144ca3bf (patch)
tree089bf223ec674cc03610917022360db99b181c68 /src/usr/hwas
parent1d150b6e4e679d4c1248e9e49c1d2ccec2483b63 (diff)
downloadtalos-hostboot-a2eeea7a4f8441d241251e1411735302144ca3bf.tar.gz
talos-hostboot-a2eeea7a4f8441d241251e1411735302144ca3bf.zip
Increment reboot count when gard records are written
Change-Id: Iaf9a4d4be19877e564ca1871564467441b472253 CQ:SW347568 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23186 Reviewed-by: A. P. Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24340
Diffstat (limited to 'src/usr/hwas')
-rw-r--r--src/usr/hwas/hwasPlatDeconfigGard.C14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/usr/hwas/hwasPlatDeconfigGard.C b/src/usr/hwas/hwasPlatDeconfigGard.C
index 0377cbd10..b98fa28d8 100644
--- a/src/usr/hwas/hwasPlatDeconfigGard.C
+++ b/src/usr/hwas/hwasPlatDeconfigGard.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2015 */
+/* Contributors Listed Below - COPYRIGHT 2013,2016 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -42,6 +42,7 @@
#include <stdio.h>
#include <sys/mm.h>
#include <config.h>
+#include <initservice/istepdispatcherif.H>
#include <pnor/pnorif.H>
@@ -380,6 +381,17 @@ errlHndl_t DeconfigGard::platCreateGardRecord(
l_pRecord->iv_padding[5] = 0;
_flush((void *)l_pRecord);
+
+ // We wrote a new gard record, we need to make sure to increment the
+ // reboot count so we can reconfigure and attempt to IPL
+ // Call setNewGardRecord in initservice.
+ #ifndef __HOSTBOOT_RUNTIME
+ #ifdef CONFIG_BMC_IPMI
+ HWAS_INF("New gard record committed, call INITSERVICE "
+ "::setNewGardRecord()");
+ INITSERVICE::setNewGardRecord();
+ #endif
+ #endif
}
while (0);
OpenPOWER on IntegriCloud