diff options
author | Thi Tran <thi@us.ibm.com> | 2018-01-29 20:56:41 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-02-03 19:48:04 -0500 |
commit | 53b3c1f1d859cb5a6b03060b46933d4ac049ca83 (patch) | |
tree | b97feb581ebce9cd0b4156315c16bc4de8660517 /src/usr/fapi2 | |
parent | 07c9730e0a3ff5bf6ca59b09fc91da69ac4c9753 (diff) | |
download | talos-hostboot-53b3c1f1d859cb5a6b03060b46933d4ac049ca83.tar.gz talos-hostboot-53b3c1f1d859cb5a6b03060b46933d4ac049ca83.zip |
HB supports - Use ADU chipops to switch fabric configuration
Change-Id: I090cdac654d9c6efbe30748713687c6e36ff914d
RTC:177597
CQ:SW413432
Backport: release-fips910
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52878
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>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2')
-rw-r--r-- | src/usr/fapi2/plat_hw_access.C | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/fapi2/plat_hw_access.C b/src/usr/fapi2/plat_hw_access.C index 5fbabee11..09da6e320 100644 --- a/src/usr/fapi2/plat_hw_access.C +++ b/src/usr/fapi2/plat_hw_access.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016,2017 */ +/* Contributors Listed Below - COPYRIGHT 2016,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -407,6 +407,7 @@ errlHndl_t getCfamChipTarget(const TARGETING::Target* i_target, l_err->collectTrace(FAPI_TRACE_NAME); } } + return l_err; } @@ -1100,8 +1101,9 @@ errlHndl_t isOnMasterProc(TARGETING::Target * i_target, bool & o_isMaster) TARGETING::targetService().masterProcChipTargetHandle( l_pMasterProcChip ); assert(l_pMasterProcChip != nullptr, "isOnMasterProc:: Unable to find the system's master proc chip target handle"); o_isMaster = false; - l_errl = getCfamChipTarget(i_target, l_pMasterProcChip); + // Target can be a chiplet or a proc, get the parent proc in case it's a chiplet + l_errl = getCfamChipTarget(i_target, l_pParentProcChip); if(l_errl == nullptr) { if(l_pMasterProcChip == l_pParentProcChip) @@ -1113,4 +1115,3 @@ errlHndl_t isOnMasterProc(TARGETING::Target * i_target, bool & o_isMaster) } } // End namespace - |