diff options
Diffstat (limited to 'src/usr/util/runtime/rt_fwnotify.C')
-rw-r--r-- | src/usr/util/runtime/rt_fwnotify.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/usr/util/runtime/rt_fwnotify.C b/src/usr/util/runtime/rt_fwnotify.C index dab40ff13..754fafac4 100644 --- a/src/usr/util/runtime/rt_fwnotify.C +++ b/src/usr/util/runtime/rt_fwnotify.C @@ -266,6 +266,17 @@ void occActiveNotification( void * i_data ) { l_err = NVDIMM::notifyNvdimmProtectionChange(l_proc, NVDIMM::OCC_ACTIVE); + // Arm the nvdimms + Target* l_sys = nullptr; + targetService().getTopLevelTarget( l_sys ); + assert(l_sys, "occActiveNotification: no TopLevelTarget"); + + if (l_sys->getAttr<ATTR_NVDIMM_AUTO_ARM>()) + { + TARGETING::TargetHandleList l_nvdimmTargetList = + TARGETING::getProcNVDIMMs(l_proc); + NVDIMM::nvdimmArm(l_nvdimmTargetList); + } } else { |