Skip to content

Commit

Permalink
PRD: Remove EccSp from errl when not avail
Browse files Browse the repository at this point in the history
Change-Id: Ib57dc550fc71ba12e4cf98a7e3eaae5745ec3594
CQ: SW458138
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/73427
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Benjamen G. Tyner <ben.tyner@ibm.com>
Reviewed-by: Paul Greenwood <paul.greenwood@ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/74683
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>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
cnpalmer authored and dcrowell77 committed Mar 20, 2019
1 parent 86b0576 commit 6d28e5b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/usr/diag/prdf/common/plat/mem/prdfMemCaptureData.C
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ void captureDramRepairsData( TARGETING::TargetHandle_t i_trgt,
if ( data.rankDataList.size() > 0 )
{
data.header.rankCount = data.rankDataList.size();
data.header.isX4Dram = isDramWidthX4( i_trgt );
data.header.isEccSp = (isDramWidthX4( i_trgt ) &&
!(TYPE_MCA != getTargetType(i_trgt)));
UtilMem dramStream;
dramStream << data;

Expand Down
8 changes: 4 additions & 4 deletions src/usr/diag/prdf/common/plugins/prdfDramRepairUsrData.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2013,2017 */
/* Contributors Listed Below - COPYRIGHT 2013,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -50,7 +50,7 @@ namespace FSP
struct DramRepairDataHdr
{
uint8_t rankCount : 4; // Number of ranks with DRAM Repair data
uint8_t isX4Dram : 1; // Is this mba connected in x4 mode
uint8_t isEccSp : 1; // Is ecc spare available for use.
uint8_t isSpareDram : 1; // Is spare DRAM supported on DIMMS attached
// to this MBA.
uint8_t reserved : 2; // Future use
Expand All @@ -67,7 +67,7 @@ struct DramRepairDataHdr
DramRepairDataHdr& i_right )
{
i_left << ( uint8_t )(i_right.rankCount << 4
| i_right.isX4Dram << 3
| i_right.isEccSp << 3
| i_right.isSpareDram << 2
| i_right.reserved )
<< i_right.wiringType;
Expand All @@ -87,7 +87,7 @@ struct DramRepairDataHdr
i_left >> temp >> i_right.wiringType;

i_right.rankCount = temp >> 4;
i_right.isX4Dram = temp >> 3;
i_right.isEccSp = temp >> 3;
i_right.isSpareDram = temp >> 2;
i_right.reserved = temp;

Expand Down
2 changes: 1 addition & 1 deletion src/usr/diag/prdf/common/plugins/prdfMemLogParse.C
Original file line number Diff line number Diff line change
Expand Up @@ -3330,7 +3330,7 @@ bool parseDramRepairsData( uint8_t * i_buffer, uint32_t i_buflen,
}

// Display ECC spare information for X4 DRAMs
if ( usrData.header.isX4Dram )
if ( usrData.header.isEccSp )
{
getDramRepairSymbolStr( rankEntry.eccSpare, symbolStr, 10 );
snprintf(temp, 64, "%s EccSp: %s", data, symbolStr);
Expand Down

0 comments on commit 6d28e5b

Please sign in to comment.