Skip to content

Commit

Permalink
Ignore ATTR_WOF_TABLE_LID_NUMBER on OpenPOWER boxes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dcrowell77 committed Jun 30, 2017
1 parent 9da93b5 commit 119105e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/usr/fapi2/plat_wof_access.C
Expand Up @@ -36,6 +36,7 @@
#include <errl/errlreasoncodes.H>
#include <util/utillidmgr.H>
#include <p9_pstates_common.h>
#include <initservice/initserviceif.H>

namespace fapi2
{
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 119105e

Please sign in to comment.