Skip to content

Commit

Permalink
HDAT: Fix to pass mcbist target for mem bus frequency API
Browse files Browse the repository at this point in the history
Change-Id: Idc78ab584e6d3a9707b9a4e2eebd9a350d5f8eca
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58555
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: VENKATESH SAINATH <venkatesh.sainath@in.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
nagendraIBM authored and dcrowell77 committed May 11, 2018
1 parent 98bee5b commit e33bd00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/usr/hdat/hdatmsvpd.C
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ errlHndl_t HdatMsVpd::hdatLoadMsData(uint32_t &o_size, uint32_t &o_count)
++l_mcbistIdx)
{
TARGETING::Target *l_pMcbistTarget = l_mcbistList[l_mcbistIdx];

TARGETING::PredicateCTM l_mcsPredicate(TARGETING::CLASS_UNIT,
TARGETING::TYPE_MCS);

Expand All @@ -1223,6 +1223,7 @@ errlHndl_t HdatMsVpd::hdatLoadMsData(uint32_t &o_size, uint32_t &o_count)
TARGETING::TargetService::CHILD,
TARGETING::TargetService::ALL,
&l_funcMcs);
uint32_t l_memBusFreq = getMemBusFreq(l_pMcbistTarget);

//scan all mcs in this proc to get sharing counit
for(uint32_t l_mcsIdx = 0;l_mcsIdx<l_mcsList.size(); ++l_mcsIdx)
Expand Down Expand Up @@ -1432,7 +1433,6 @@ errlHndl_t HdatMsVpd::hdatLoadMsData(uint32_t &o_size, uint32_t &o_count)

uint32_t l_dimmId =
1 << (31 - (l_pDimmTarget->getAttr<TARGETING::ATTR_FAPI_POS>() % MAX_DIMMS_PER_MCBIST));
uint32_t l_memBusFreq = getMemBusFreq(l_pDimmTarget);
l_err = addRamFru(l_index,
l_pDimmTarget,
l_dimmRid,
Expand Down
12 changes: 1 addition & 11 deletions src/usr/hdat/hdatutil.C
Original file line number Diff line number Diff line change
Expand Up @@ -2191,20 +2191,10 @@ uint32_t getMemBusFreq(const TARGETING::Target* i_pTarget)
i_pTarget->getAttr<TARGETING::ATTR_HUID>());
}
}
else if((l_class == TARGETING::CLASS_UNIT) && (l_type == TARGETING::TYPE_DIMM))
{
TARGETING::TYPE l_mcbistType = TARGETING::TYPE_MCBIST;
if(getParent(i_pTarget,l_mcbistType)
->tryGetAttr<TARGETING::ATTR_MSS_FREQ>(l_MemBusFreqInMHz) == false )
{
HDAT_ERR(" MSS_FREQ not present for MCBIST with huid [0x%08X]",
getParent(i_pTarget,l_mcbistType)->getAttr<TARGETING::ATTR_HUID>());
}
}
else
{

HDAT_ERR(" Input target with HUID [0x%08X] is not of proc/mcbist/dimm target type",
HDAT_ERR(" Input target with HUID [0x%08X] is not of proc/mcbist target type",
i_pTarget->getAttr<TARGETING::ATTR_HUID>());
}

Expand Down

0 comments on commit e33bd00

Please sign in to comment.