From 669fa93550c86b4c37d4fd1e61234dcdb189aabb Mon Sep 17 00:00:00 2001 From: Zane Shelley Date: Tue, 11 Apr 2017 15:46:40 -0500 Subject: PRD: runtime ECC analysis for command complete attn Change-Id: Ic5565154c8b6ccd0425fc7835772d693e9a065d7 RTC: 171915 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39128 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: FSP CI Jenkins Reviewed-by: Caleb N. Palmer Reviewed-by: Zane C. Shelley --- src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C') diff --git a/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C b/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C index 3e93152b4..ea7250918 100644 --- a/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C +++ b/src/usr/diag/prdf/plat/mem/prdfMemTdCtlr.C @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -162,7 +163,7 @@ uint32_t MemTdCtlr::handleCmdComplete( STEP_CODE_DATA_STRUCT & io_sc ) // some way to change the template to use the MCA. It is also a local function // because this is only for MemTdCtlr internal use and it didn't make much sense // to create a public function. -template +template uint32_t __checkEcc( ExtensibleChip * i_chip, TdQueue & io_queue, const MemAddr & i_addr, bool & o_errorsFound, STEP_CODE_DATA_STRUCT & io_sc ); @@ -248,8 +249,11 @@ uint32_t __analyzeCmdComplete( ExtensibleChip * i_chip, for ( auto & mcaChip : portList ) { bool errorsFound; - uint32_t l_rc = __checkEcc( mcaChip, io_queue, i_addr, - errorsFound, io_sc ); + uint32_t l_rc = __checkEcc( mcaChip, + io_queue, + i_addr, + errorsFound, + io_sc ); if ( SUCCESS != l_rc ) { PRDF_ERR( PRDF_FUNC "__checkEcc(0x%08x) failed", @@ -282,8 +286,11 @@ uint32_t __analyzeCmdComplete( ExtensibleChip * i_chip, // Update iv_stoppedRank. o_stoppedRank = TdRankListEntry( i_chip, i_addr.getRank() ); + /* TODO RTC 157888 // Check the MBA for ECC errors. return __checkEcc(i_chip, io_queue, i_addr, o_errorsFound, io_sc); + */ + return SUCCESS; } //------------------------------------------------------------------------------ -- cgit v1.2.1