diff options
-rw-r--r-- | src/usr/diag/mdia/mdiasm.C | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/usr/diag/mdia/mdiasm.C b/src/usr/diag/mdia/mdiasm.C index 571796a8a..a946c2bda 100644 --- a/src/usr/diag/mdia/mdiasm.C +++ b/src/usr/diag/mdia/mdiasm.C @@ -899,28 +899,28 @@ bool StateMachine::executeWorkItem(WorkFlowProperties * i_wfp) case RESTORE_DRAM_REPAIRS: { - //TargetHandle_t target = getTarget( *i_wfp); - //TYPE trgtType = target->getAttr<ATTR_TYPE>(); - - //// 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 ); - // } - //} + TargetHandle_t target = getTarget( *i_wfp); + TYPE trgtType = target->getAttr<ATTR_TYPE>(); + + // 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; } |