summaryrefslogtreecommitdiffstats
path: root/src/usr/sbeio/sbe_systemConfig.C
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2017-01-17 10:22:08 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-10 17:53:03 -0500
commitb00bd99484f2ec6e16e51705d124b52c13a39e37 (patch)
tree6dc80f58050f6e4f371f1b0480ca395ff910c232 /src/usr/sbeio/sbe_systemConfig.C
parent1be6c479bcf84d858260ab64ea9ed46d6633ffbb (diff)
downloadtalos-hostboot-b00bd99484f2ec6e16e51705d124b52c13a39e37.tar.gz
talos-hostboot-b00bd99484f2ec6e16e51705d124b52c13a39e37.zip
Quiesce SBE before writing SEEPROM
Call sendPsuQuiesceSbe before doing the deviceWrite of the SBE SEEPROM with the SBE image. Change-Id: I6d3cec5b0430b8083acabc30bb7ff14ba5e1b56e RTC:158899 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34994 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbeio/sbe_systemConfig.C')
-rw-r--r--src/usr/sbeio/sbe_systemConfig.C10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr/sbeio/sbe_systemConfig.C b/src/usr/sbeio/sbe_systemConfig.C
index 16d11624a..817a181f6 100644
--- a/src/usr/sbeio/sbe_systemConfig.C
+++ b/src/usr/sbeio/sbe_systemConfig.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2016 */
+/* Contributors Listed Below - COPYRIGHT 2012,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -33,6 +33,7 @@
#include <errl/errlmanager.H>
#include <sbeio/sbeioif.H>
#include <sbeio/sbe_psudd.H>
+#include <targeting/common/targetservice.H>
extern trace_desc_t* g_trac_sbeio;
@@ -63,6 +64,10 @@ namespace SBEIO
SBE_TRACD(ENTER_MRK "sending system configuration from HB -> SBE i_systemConfig=0x%x",i_systemConfig);
+ // Find master proc for target of PSU command
+ TARGETING::Target * l_master = nullptr;
+ (void)TARGETING::targetService().masterProcChipTargetHandle(l_master);
+
SbePsu::psuCommand l_psuCommand(
SbePsu::SBE_REQUIRE_RESPONSE, //control flags
SbePsu::SBE_PSU_GENERIC_MESSAGE, //command class
@@ -72,7 +77,8 @@ namespace SBEIO
// set up PSU command message
l_psuCommand.cd2_SetSystemConfig_SystemFabricIdMap = i_systemConfig;
- errl = SBEIO::SbePsu::getTheInstance().performPsuChipOp(&l_psuCommand,
+ errl = SBEIO::SbePsu::getTheInstance().performPsuChipOp(l_master,
+ &l_psuCommand,
&l_psuResponse,
SbePsu::MAX_PSU_SHORT_TIMEOUT_NS,
SbePsu::SBE_SYSTEM_CONFIG_REQ_USED_REGS,
OpenPOWER on IntegriCloud