diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2017-06-28 14:03:32 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-06-29 23:35:32 -0400 |
commit | 119105e94a2b07abb7daad75f79e6156570d4543 (patch) | |
tree | 253084315dc4ea50d91532e8d9dd4ae28e3e5365 /src/usr | |
parent | 9da93b5684cc4059698c3cf356b14b9558d60365 (diff) | |
download | talos-hostboot-119105e94a2b07abb7daad75f79e6156570d4543.tar.gz talos-hostboot-119105e94a2b07abb7daad75f79e6156570d4543.zip |
Ignore ATTR_WOF_TABLE_LID_NUMBER on OpenPOWER boxes
The lid number is only valid for FSP machines
Change-Id: I00a76082c84aef026d4371cf0c7583f7335921f1
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42565
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: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/fapi2/plat_wof_access.C | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/usr/fapi2/plat_wof_access.C b/src/usr/fapi2/plat_wof_access.C index e79779b33..c782a3f20 100644 --- a/src/usr/fapi2/plat_wof_access.C +++ b/src/usr/fapi2/plat_wof_access.C @@ -36,6 +36,7 @@ #include <errl/errlreasoncodes.H> #include <util/utillidmgr.H> #include <p9_pstates_common.h> +#include <initservice/initserviceif.H> namespace fapi2 { @@ -151,9 +152,13 @@ fapi2::ReturnCode platParseWOFTables(uint8_t* o_wofData) do { // @todo RTC 172776 Make WOF table parser PNOR accesses more efficient - // Lid number is system dependent - uint32_t l_lidNumber = - l_sys->getAttr<TARGETING::ATTR_WOF_TABLE_LID_NUMBER>(); + uint32_t l_lidNumber = Util::WOF_LIDID; + if( INITSERVICE::spBaseServicesEnabled() ) + { + // Lid number is system dependent on FSP systems + l_lidNumber = + l_sys->getAttr<TARGETING::ATTR_WOF_TABLE_LID_NUMBER>(); + } UtilLidMgr l_wofLidMgr(l_lidNumber); // Get the size of the full wof tables image |