diff options
author | Matt Ploetz <maploetz@us.ibm.com> | 2016-04-12 11:31:23 -0500 |
---|---|---|
committer | Matthew A. Ploetz <maploetz@us.ibm.com> | 2016-05-11 12:12:30 -0400 |
commit | a2eeea7a4f8441d241251e1411735302144ca3bf (patch) | |
tree | 089bf223ec674cc03610917022360db99b181c68 /src/usr/hwas/hwasPlatDeconfigGard.C | |
parent | 1d150b6e4e679d4c1248e9e49c1d2ccec2483b63 (diff) | |
download | blackbird-hostboot-a2eeea7a4f8441d241251e1411735302144ca3bf.tar.gz blackbird-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/hwasPlatDeconfigGard.C')
-rw-r--r-- | src/usr/hwas/hwasPlatDeconfigGard.C | 14 |
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); |