Skip to content

Commit

Permalink
PRD: Don't dealloc NVDIMMs set to NO_GARD in a predictive log
Browse files Browse the repository at this point in the history
Change-Id: I0dd124c1d797baa50de78f01f01c29b6af524a32
CQ: SW473646
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82702
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Benjamen G Tyner <ben.tyner@ibm.com>
Reviewed-by: Zane C Shelley <zshelle@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82761
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
  • Loading branch information
cnpalmer authored and zane131 committed Aug 27, 2019
1 parent d8db346 commit cbd2500
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/usr/diag/prdf/common/plat/prdfRasServices_common.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2016,2018 */
/* Contributors Listed Below - COPYRIGHT 2016,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -891,6 +891,15 @@ void ErrDataService::deallocateDimms( const SDC_MRU_LIST & i_mruList )
for ( SDC_MRU_LIST::const_iterator it = i_mruList.begin();
it != i_mruList.end(); ++it )
{
#ifdef CONFIG_NVDIMM
// If the MRU's gard policy is set to NO_GARD, skip it.
if ( NO_GARD == it->gardState &&
isNVDIMM(it->callout.getTarget()) )
{
continue;
}
#endif

PRDcallout thiscallout = it->callout;
if ( PRDcalloutData::TYPE_TARGET == thiscallout.getType() )
{
Expand Down

0 comments on commit cbd2500

Please sign in to comment.