Skip to content

Commit

Permalink
PRD: removed old P8 memory system system code
Browse files Browse the repository at this point in the history
Change-Id: Ib6f0557afad5cf4c1b3f98aeec0e0799734f1370
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59855
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59873
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
  • Loading branch information
zane131 committed Jun 5, 2018
1 parent 41daed1 commit 41f3aa6
Show file tree
Hide file tree
Showing 20 changed files with 55 additions and 5,039 deletions.
55 changes: 55 additions & 0 deletions src/usr/diag/prdf/common/plat/cen/prdfCenMembuf_common.C
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,61 @@ int32_t PostAnalysis( ExtensibleChip * i_chip, STEP_CODE_DATA_STRUCT & io_sc )
}
PRDF_PLUGIN_DEFINE( cen_centaur, PostAnalysis );

/**
* @brief During system or unit checkstop analysis, this is used to determine
* if a chip has any active recoverable attentions.
* @param i_chip A MEMBUF chip.
* @param o_hasAttns True if a recoverable attention exists on the Centaur.
* @return SUCCESS.
*/
int32_t CheckForRecovered( ExtensibleChip * i_chip, bool & o_hasAttns )
{
o_hasAttns = false;

SCAN_COMM_REGISTER_CLASS * reg = i_chip->getRegister("GLOBAL_RE_FIR");
if ( SUCCESS != reg->Read() )
{
PRDF_ERR( "[CheckForRecovered] GLOBAL_RE_FIR read failed on 0x%08x",
i_chip->getHuid() );
}
else if ( 0 != reg->GetBitFieldJustified(1,3) )
{
o_hasAttns = true;
}

return SUCCESS;

} PRDF_PLUGIN_DEFINE( cen_centaur, CheckForRecovered );

/**
* @brief During system checkstop analysis, this is used to determine if a chip
* has any active unit checkstop attentions.
* @param i_chip A MEMBUF chip.
* @param o_hasAttns True if a recoverable attention exists on the Centaur.
* @return SUCCESS.
*/
int32_t CheckForUnitCs( ExtensibleChip * i_chip, bool & o_hasAttns )
{
o_hasAttns = false;

// Note that Centaur checkstop attentions are all reported as unit
// checkstops and they do not directly trigger system checkstops.

SCAN_COMM_REGISTER_CLASS * reg = i_chip->getRegister("GLOBAL_CS_FIR");
if ( SUCCESS != reg->Read() )
{
PRDF_ERR( "[CheckForUnitCs] GLOBAL_CS_FIR read failed on 0x%08x",
i_chip->getHuid() );
}
else if ( 0 != reg->GetBitFieldJustified(1,3) )
{
o_hasAttns = true;
}

return SUCCESS;

} PRDF_PLUGIN_DEFINE( cen_centaur, CheckForUnitCs );

//##############################################################################
//
// MBSFIR
Expand Down

0 comments on commit 41f3aa6

Please sign in to comment.