Skip to content

Commit

Permalink
Ensure ATTR_EC_GARD and ATTR_EQ_GARD are updated before SBE update
Browse files Browse the repository at this point in the history
The xip_customize code does not look at target states directly.
Instead it just shoves a couple of attributes directly into the
image.

This change ensures those attributes are set correctly before
executing the xip_customize procedure.

Change-Id: I6e9ffedcea08af70882be1de6ff2203de8b3e30b
CQ: SW421514
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56144
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>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
CI-Ready: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
  • Loading branch information
dcrowell77 authored and Nicholas E. Bofferding committed Mar 26, 2018
1 parent a5fb712 commit b2bffd2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/usr/sbe/sbe_update.C
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <sys/misc.h>
#include <sys/msg.h>
#include <hwas/common/deconfigGard.H>
#include <hwas/common/hwas.H>
#include <initservice/initserviceif.H>
#include <console/consoleif.H>
#include <config.h>
Expand Down Expand Up @@ -1014,6 +1015,11 @@ namespace SBE

do{

// Before doing any customization, we need to ensure that the
// ATTR_EC/EQ_GARD attributes are setup to reflect the
// current state of our targets
HWAS::setChipletGardsOnProc(i_target);

// cast OUR type of target to a FAPI type of target.
const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>
l_fapiTarg(i_target);
Expand Down

0 comments on commit b2bffd2

Please sign in to comment.