summaryrefslogtreecommitdiffstats
path: root/src/usr/sbeio/sbe_systemConfig.C
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2017-03-28 13:31:32 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-10 13:55:44 -0400
commitab70aa5b81d379bbab438fa9dbe09793bd6a5405 (patch)
treec3b46f9f294191feb93de7da0b08f3f2eeedf99f /src/usr/sbeio/sbe_systemConfig.C
parent3dadb3762be5dba9b74beca9b88c4c07f77d898e (diff)
downloadtalos-hostboot-ab70aa5b81d379bbab438fa9dbe09793bd6a5405.tar.gz
talos-hostboot-ab70aa5b81d379bbab438fa9dbe09793bd6a5405.zip
Send system configuration to all Procs, not just master
Previously there was no way to send chipOps to specific Procs, Now that it is possible we want to send the system configuration to all SBEs, not just the master. This way the SBE doesnt need to worry about propagating the system config to slave SBEs Change-Id: I471c60a294fb2e4dd43772322fb5c6c80ccdda1f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38544 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@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.C14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/sbeio/sbe_systemConfig.C b/src/usr/sbeio/sbe_systemConfig.C
index 817a181f6..4f84460b9 100644
--- a/src/usr/sbeio/sbe_systemConfig.C
+++ b/src/usr/sbeio/sbe_systemConfig.C
@@ -53,20 +53,20 @@ namespace SBEIO
* @param[in] i_systemConfig uint64 where each bit represents a proc in that position
* Bit position ATTR_PROC_FABRIC_CHIP_ID + (8 * ATTR_PROC_FABRIC_GROUP_ID) = 1
* if that proc is present and functional.
+ * @param[in] i_procChip The proc you would like to send the system config to
*
* @return errlHndl_t Error log handle on failure.
*
*/
- errlHndl_t sendSystemConfig(const uint64_t i_systemConfig )
+ errlHndl_t sendSystemConfig(const uint64_t i_systemConfig,
+ TARGETING::Target * i_procChip)
{
errlHndl_t errl = NULL;
- 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);
+ SBE_TRACD(ENTER_MRK "sending system configuration from HB -> SBE i_systemConfig=0x%x on Proc 0x%x",
+ i_systemConfig,
+ i_procChip->getAttr<TARGETING::ATTR_POSITION>());
SbePsu::psuCommand l_psuCommand(
SbePsu::SBE_REQUIRE_RESPONSE, //control flags
@@ -77,7 +77,7 @@ namespace SBEIO
// set up PSU command message
l_psuCommand.cd2_SetSystemConfig_SystemFabricIdMap = i_systemConfig;
- errl = SBEIO::SbePsu::getTheInstance().performPsuChipOp(l_master,
+ errl = SBEIO::SbePsu::getTheInstance().performPsuChipOp(i_procChip,
&l_psuCommand,
&l_psuResponse,
SbePsu::MAX_PSU_SHORT_TIMEOUT_NS,
OpenPOWER on IntegriCloud