summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Palmer <cnpalmer@us.ibm.com>2019-08-20 16:37:17 -0500
committerZane C Shelley <zshelle@us.ibm.com>2019-08-27 10:10:57 -0500
commitcbd250000a538286af32342438d37a0ed70cadde (patch)
treef9eebbc04c8c81710a3e5cffb89603ada12119b7
parentd8db346a16273bbf66e5b9adc1bd4fc90b2f0e54 (diff)
downloadtalos-hostboot-cbd250000a538286af32342438d37a0ed70cadde.tar.gz
talos-hostboot-cbd250000a538286af32342438d37a0ed70cadde.zip
PRD: Don't dealloc NVDIMMs set to NO_GARD in a predictive log
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>
-rwxr-xr-xsrc/usr/diag/prdf/common/plat/prdfRasServices_common.C11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/usr/diag/prdf/common/plat/prdfRasServices_common.C b/src/usr/diag/prdf/common/plat/prdfRasServices_common.C
index 3f9ba2322..d1119efdc 100755
--- a/src/usr/diag/prdf/common/plat/prdfRasServices_common.C
+++ b/src/usr/diag/prdf/common/plat/prdfRasServices_common.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2016,2018 */
+/* Contributors Listed Below - COPYRIGHT 2016,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -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() )
{
OpenPOWER on IntegriCloud