Skip to content

Commit

Permalink
PRD: Fix MPE error path asserts
Browse files Browse the repository at this point in the history
Change-Id: I805585ea540663e80f7a4bae71f7dc0352dc3cbe
CQ: SW489980
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/95648
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Benjamen G Tyner <ben.tyner@ibm.com>
Reviewed-by: Brian J Stegmiller <bjs@us.ibm.com>
Reviewed-by: Zane C Shelley <zshelle@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/96126
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>
  • Loading branch information
cnpalmer authored and zane131 committed May 1, 2020
1 parent f0daff6 commit 3e8d0ec
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
13 changes: 10 additions & 3 deletions src/usr/diag/prdf/common/plat/mem/prdfMemDqBitmap.C
Expand Up @@ -583,9 +583,16 @@ uint32_t MemDqBitmap::isSpareAvailable( uint8_t i_portSlct, bool & o_dramSpare,
}

// Check for ECC spare
uint8_t eccDqBits =
iv_data.at(ECC_SPARE_PORT).bitmap[ECC_SPARE_BYTE];
o_eccSpare = ( 0 == (eccDqBits & 0x0f) );
// Note: ECC spares only exist when we have DIMM pairs. We don't
// want to check the iv_data map for data that won't exist
// if there is no DIMM on the ECC_SPARE_PORT, so we confirm
// that a paired DIMM exists here first.
if ( nullptr != getConnectedDimm(iv_trgt, iv_rank, ECC_SPARE_PORT) )
{
uint8_t eccDqBits =
iv_data.at(ECC_SPARE_PORT).bitmap[ECC_SPARE_BYTE];
o_eccSpare = ( 0 == (eccDqBits & 0x0f) );
}
}
else
{
Expand Down
2 changes: 2 additions & 0 deletions src/usr/diag/prdf/common/plat/prdfPlatServices_common.C
Expand Up @@ -1239,6 +1239,7 @@ uint32_t isDramSparingEnabled<TYPE_MEM_PORT>( TARGETING::TargetHandle_t i_trgt,
uint32_t o_rc = SUCCESS;
o_spareEnable = false;

/* TODO RTC 199032 - DRAM Sparing disabled for now
do
{
TargetHandle_t dimm = getConnectedDimm( i_trgt, i_rank, i_ps );
Expand All @@ -1262,6 +1263,7 @@ uint32_t isDramSparingEnabled<TYPE_MEM_PORT>( TARGETING::TargetHandle_t i_trgt,
o_spareEnable = (TARGETING::MEM_EFF_DIMM_SPARE_NO_SPARE != cnfg);
}while(0);
*/

return o_rc;

Expand Down
16 changes: 0 additions & 16 deletions src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C
Expand Up @@ -434,13 +434,7 @@ void MemTdCtlr<T>::collectStateCaptureData( STEP_CODE_DATA_STRUCT & io_sc,

// Get the version to use.
uint8_t version = TD_CTLR_DATA::VERSION_1;
bool isNimbus = false;
if ( MODEL_NIMBUS == getChipModel(getMasterProc()) )
{
version = TD_CTLR_DATA::VERSION_2;
isNimbus = true;
}
else if ( MODEL_AXONE == getChipModel(getMasterProc()) )
{
version = TD_CTLR_DATA::VERSION_2;
}
Expand Down Expand Up @@ -486,11 +480,6 @@ void MemTdCtlr<T>::collectStateCaptureData( STEP_CODE_DATA_STRUCT & io_sc,
if ( TD_CTLR_DATA::VERSION_2 == version )
{
curPort = iv_curProcedure->getChip()->getPos() % MAX_MCA_PER_MCBIST;
if ( !isNimbus )
{
TargetHandle_t portTrgt = iv_curProcedure->getChip()->getTrgt();
curPort = portTrgt->getAttr<ATTR_REL_POS>();
}
}
}

Expand Down Expand Up @@ -523,11 +512,6 @@ void MemTdCtlr<T>::collectStateCaptureData( STEP_CODE_DATA_STRUCT & io_sc,
if ( TD_CTLR_DATA::VERSION_2 == version )
{
itPort = queue[n]->getChip()->getPos() % MAX_MCA_PER_MCBIST;
if ( !isNimbus )
{
TargetHandle_t portTrgt = queue[n]->getChip()->getTrgt();
itPort = portTrgt->getAttr<ATTR_REL_POS>();
}
}

bsb.setFieldJustify( pos, 3, itMrnk ); pos+=3;
Expand Down
5 changes: 3 additions & 2 deletions src/usr/diag/prdf/plat/prdfPlatServices.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016,2019 */
/* Contributors Listed Below - COPYRIGHT 2016,2020 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -715,7 +715,7 @@ bool isRowRepairEnabled<TYPE_OCMB_CHIP>( ExtensibleChip * i_chip,
PRDF_ASSERT( TYPE_OCMB_CHIP == i_chip->getType() );

bool o_isEnabled = false;

/* TODO RTC 199035
do
{
// Don't do row repair if DRAM repairs is disabled.
Expand All @@ -741,6 +741,7 @@ bool isRowRepairEnabled<TYPE_OCMB_CHIP>( ExtensibleChip * i_chip,
}
}while(0);
*/

return o_isEnabled;

Expand Down

0 comments on commit 3e8d0ec

Please sign in to comment.