Skip to content

Commit

Permalink
PRD: Update restoreDramRepairs for P9
Browse files Browse the repository at this point in the history
Change-Id: I3b2a75fdaa88017dc221a337dd39759e03e82337
RTC: 178682
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45149
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48346
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 Oct 14, 2017
1 parent 4d12533 commit 387febc
Show file tree
Hide file tree
Showing 6 changed files with 386 additions and 66 deletions.
13 changes: 10 additions & 3 deletions src/include/usr/diag/prdf/prdfMain_ipl.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2014,2015 */
/* Contributors Listed Below - COPYRIGHT 2014,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -40,13 +40,20 @@
namespace PRDF
{

/**
* @brief Initialize PRD system model and data (No System Lock)
* @return Error log if error occurs
*/
extern errlHndl_t noLock_initialize();

/**
* @brief Restores hardware DRAM repairs to reflect what is stored in VPD.
* @param i_mba An MBA target.
* @param i_trgt An MBA or MCA target.
* @return Non-SUCCESS if conditions are such that a callout had to be made,
* SUCCESS otherwise.
*/
extern int32_t restoreDramRepairs( const TARGETING::TargetHandle_t i_mba );
template<TARGETING::TYPE T>
extern uint32_t restoreDramRepairs( const TARGETING::TargetHandle_t i_trgt );

/**
* @brief Analyzes IPL CE statistics during MNFG IPL
Expand Down
19 changes: 14 additions & 5 deletions src/usr/diag/prdf/common/plat/mem/prdfP9McaExtraSig.H
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ PRDR_ERROR_SIGNATURE(VcmFalseAlarm, 0xffff0021, "", "VCM: false alarm");
PRDR_ERROR_SIGNATURE(VcmFalseAlarmTH, 0xffff0022, "", "VCM: false alarm threshold");
PRDR_ERROR_SIGNATURE(AllDramRepairs, 0xffff002F, "", "all DRAM repairs used");

PRDR_ERROR_SIGNATURE(RdrInternalFail, 0xffff0040, "", "RDR: Internal failure");
PRDR_ERROR_SIGNATURE(RdrInvalidConfig, 0xffff0041, "", "RDR: Invalid config");
PRDR_ERROR_SIGNATURE(RdrScreenBadDqs, 0xffff0042, "",
"RDR: DRAM repairs disabled and VPD found");
PRDR_ERROR_SIGNATURE(RdrRepairsUsed, 0xffff0043, "",
"RDR: All repairs used");
PRDR_ERROR_SIGNATURE(RdrRepairUnavail, 0xffff0044, "",
"RDR: Repairs needed but unavailable");

PRDR_ERROR_SIGNATURE(MnfgIplHardCE, 0xffff0051, "", "MNFG IPL hard CE");
PRDR_ERROR_SIGNATURE(MnfgIplDramCTE, 0xffff0052, "", "MNFG IPL DRAM CTE");
PRDR_ERROR_SIGNATURE(MnfgIplRankCTE, 0xffff0053, "", "MNFG IPL rank CTE");
PRDR_ERROR_SIGNATURE(MnfgIplDsCTE, 0xffff0054, "", "MNFG IPL DIMM CTE");

PRDR_ERROR_SIGNATURE(TpsFalseAlarm, 0xffff0061, "", "TPS: false alarm");
PRDR_ERROR_SIGNATURE(TpsFalseAlarmTH, 0xffff0062, "", "TPS: false alarm threshold");
PRDR_ERROR_SIGNATURE(TpsSymbolMark, 0xffff0063, "", "TPS: symbol mark placed");
Expand All @@ -58,11 +72,6 @@ PRDR_ERROR_SIGNATURE(TpsChipUeRisk, 0xffff0066, "", "TPS: placing chip mark ri
PRDR_ERROR_SIGNATURE(TpsPotentialUe, 0xffff0067, "", "TPS: potential UE");
PRDR_ERROR_SIGNATURE(TpsDramDisabled, 0xffff0068, "", "TPS: DRAM repairs disabled");

PRDR_ERROR_SIGNATURE(MnfgIplHardCE, 0xffff0051, "", "MNFG IPL hard CE");
PRDR_ERROR_SIGNATURE(MnfgIplDramCTE, 0xffff0052, "", "MNFG IPL DRAM CTE");
PRDR_ERROR_SIGNATURE(MnfgIplRankCTE, 0xffff0053, "", "MNFG IPL rank CTE");
PRDR_ERROR_SIGNATURE(MnfgIplDsCTE, 0xffff0054, "", "MNFG IPL DIMM CTE");

PRDR_ERROR_SIGNATURE(MnfgDramCte, 0xffff0070, "", "MNFG per DRAM CTE");
PRDR_ERROR_SIGNATURE(MnfgRankCte, 0xffff0071, "", "MNFG per rank CTE");
PRDR_ERROR_SIGNATURE(MnfgDimmCte, 0xffff0072, "", "MNFG per DIMM CTE");
Expand Down

0 comments on commit 387febc

Please sign in to comment.