summaryrefslogtreecommitdiffstats
path: root/src/usr/util/runtime/rt_fwnotify.C
diff options
context:
space:
mode:
authorCorey Swenson <cswenson@us.ibm.com>2019-06-17 13:27:25 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-06-24 10:39:22 -0500
commitdd0aba64608a9d073ee7dcfc8e407ba0f47f0398 (patch)
tree130239784c4452e45791258b8c62767b3bd08921 /src/usr/util/runtime/rt_fwnotify.C
parent164e8bc5fc070dfcffb7ce86077161259f01af93 (diff)
downloadtalos-hostboot-dd0aba64608a9d073ee7dcfc8e407ba0f47f0398.tar.gz
talos-hostboot-dd0aba64608a9d073ee7dcfc8e407ba0f47f0398.zip
Auto-arm the NVDIMMs at runtime
Add control attribute and auto-arm NVDIMMs when OCC is enabled at runtime. Change-Id: I2e897e25f83b3c0ff51ddbaf3d922f07156d5747 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/79069 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> 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> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/util/runtime/rt_fwnotify.C')
-rw-r--r--src/usr/util/runtime/rt_fwnotify.C11
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
{
OpenPOWER on IntegriCloud