Skip to content

Commit

Permalink
PRD: Reenable restoreDramRepairs
Browse files Browse the repository at this point in the history
Change-Id: I2b5a7516ceb2a04d607544fac0683ac83292f076
RTC: 178682
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/47106
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.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: Zane C. Shelley <zshelle@us.ibm.com>
  • Loading branch information
cnpalmer authored and zane131 committed Oct 14, 2017
1 parent f1a0f38 commit 4d12533
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/usr/diag/mdia/mdiasm.C
Expand Up @@ -47,6 +47,7 @@
#include <initservice/initserviceif.H>
#include <sys/time.h>
#include <p9c_mss_maint_cmds.H>
#include <dimmBadDqBitmapFuncs.H>

using namespace TARGETING;
using namespace ERRORLOG;
Expand Down Expand Up @@ -897,12 +898,32 @@ bool StateMachine::executeWorkItem(WorkFlowProperties * i_wfp)
// do the appropriate thing based on the phase for this target

case RESTORE_DRAM_REPAIRS:
{
TargetHandle_t target = getTarget( *i_wfp);
TYPE trgtType = target->getAttr<ATTR_TYPE>();

//TODO RTC 136126
//rc = PRDF::restoreDramRepairs(getTarget(*i_wfp));
// MBA target
if ( TYPE_MBA == trgtType )
{
rc = PRDF::restoreDramRepairs<TYPE_MBA>( target );
}
// MCBIST target
else
{
// Get the connected MCAs.
TargetHandleList mcaList;
getChildAffinityTargets( mcaList, target, CLASS_UNIT,
TYPE_MCA );
for ( auto & mca : mcaList )
{
MDIA_SLOW( "sm: restoreDramRepairs(0x%08x)",
get_huid(mca) );
rc = PRDF::restoreDramRepairs<TYPE_MCA>( mca );
}
}

break;

}
case START_PATTERN_0:
case START_PATTERN_1:
case START_PATTERN_2:
Expand Down

0 comments on commit 4d12533

Please sign in to comment.