Skip to content

Commit

Permalink
PRD: initialize PRD objects for Restore DRAM Repairs
Browse files Browse the repository at this point in the history
Change-Id: I744483fe5f785a87062e99e723b5034e814830cb
CQ: SW419561
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55085
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
CI-Ready: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-by: Dean Sanner <dsanner@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55112
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
  • Loading branch information
zane131 committed Mar 6, 2018
1 parent d2fd055 commit 82aaa7d
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/usr/diag/prdf/plat/mem/prdfRestoreDramRepairs.C
Original file line number Diff line number Diff line change
Expand Up @@ -179,16 +179,6 @@ bool processRepairedRanks<TYPE_MCA>( TargetHandle_t i_trgt,

do
{
if ( (false == g_initialized) || (nullptr == systemPtr) )
{
errl = noLock_initialize();
if ( nullptr != errl )
{
PRDF_ERR( PRDF_FUNC "Failed to initialize PRD" );
break;
}
}

// Keep a list of DIMMs to callout. Note that we are using a map with
// the DIMM target as the key so that we can maintain a unique list. The
// map value has no significance.
Expand Down Expand Up @@ -639,6 +629,19 @@ uint32_t restoreDramRepairs<TYPE_MCA>( TargetHandle_t i_trgt )

do
{
// Will need the chip and system objects initialized for several parts
// of this function and sub-functions.
if ( (false == g_initialized) || (nullptr == systemPtr) )
{
errlHndl_t errl = noLock_initialize();
if ( nullptr != errl )
{
PRDF_ERR( PRDF_FUNC "Failed to initialize PRD" );
RDR::commitErrl<TYPE_MCA>( errl, i_trgt );
break;
}
}

std::vector<MemRank> ranks;
getMasterRanks<TYPE_MCA>( i_trgt, ranks );

Expand Down

0 comments on commit 82aaa7d

Please sign in to comment.