summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/framework
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/prdf/common/framework')
-rwxr-xr-xsrc/usr/diag/prdf/common/framework/service/prdfServiceDataCollector.C35
1 files changed, 21 insertions, 14 deletions
diff --git a/src/usr/diag/prdf/common/framework/service/prdfServiceDataCollector.C b/src/usr/diag/prdf/common/framework/service/prdfServiceDataCollector.C
index 11f264a49..731102a26 100755
--- a/src/usr/diag/prdf/common/framework/service/prdfServiceDataCollector.C
+++ b/src/usr/diag/prdf/common/framework/service/prdfServiceDataCollector.C
@@ -199,14 +199,17 @@ void ServiceDataCollector::clearNvdimmMruListGard()
if ( TYPE_DIMM == PlatServices::getTargetType(trgt) &&
isNVDIMM(trgt) )
{
- // Send the message to PHYP/Hostboot
- uint32_t l_rc = PlatServices::nvdimmNotifyProtChange( trgt,
- NVDIMM::NVDIMM_RISKY_HW_ERROR );
- if ( SUCCESS != l_rc )
+ // Send the message to PHYP/Hostboot if a predictive log
+ if ( queryServiceCall() )
{
- PRDF_TRAC( PRDF_FUNC "nvdimmNotifyProtChange(0x%08x) "
- "failed.", PlatServices::getHuid(trgt) );
- continue;
+ uint32_t l_rc = PlatServices::nvdimmNotifyProtChange( trgt,
+ NVDIMM::NVDIMM_RISKY_HW_ERROR );
+ if ( SUCCESS != l_rc )
+ {
+ PRDF_TRAC( PRDF_FUNC "nvdimmNotifyProtChange(0x%08x) "
+ "failed.", PlatServices::getHuid(trgt) );
+ continue;
+ }
}
#ifndef __HOSTBOOT_RUNTIME
// IPL, clear Gard
@@ -227,14 +230,18 @@ void ServiceDataCollector::clearNvdimmMruListGard()
if ( TYPE_DIMM == PlatServices::getTargetType(dimm) &&
isNVDIMM(dimm) )
{
- // Send the message to PHYP/Hostboot
- uint32_t l_rc = PlatServices::nvdimmNotifyProtChange( dimm,
- NVDIMM::NVDIMM_RISKY_HW_ERROR );
- if ( SUCCESS != l_rc )
+ // Send the message to PHYP/Hostboot if a predictive log
+ if ( queryServiceCall() )
{
- PRDF_TRAC( PRDF_FUNC "nvdimmNotifyProtChange(0x%08x) "
- "failed.", PlatServices::getHuid(dimm) );
- continue;
+ uint32_t l_rc = PlatServices::nvdimmNotifyProtChange(
+ dimm, NVDIMM::NVDIMM_RISKY_HW_ERROR );
+ if ( SUCCESS != l_rc )
+ {
+ PRDF_TRAC( PRDF_FUNC "nvdimmNotifyProtChange"
+ "(0x%08x) failed.",
+ PlatServices::getHuid(dimm) );
+ continue;
+ }
}
#ifndef __HOSTBOOT_RUNTIME
// IPL, clear Gard
OpenPOWER on IntegriCloud