Skip to content

Commit

Permalink
ARM/DISARM NVDIMMs by proc
Browse files Browse the repository at this point in the history
By proc instead of all nvdimms together, thereby allowing
nvdimms under other proc to remain functional.

Change-Id: I85f1a2bda2e4b493bfaa32d93404f15aaeb333a4
CQ:SW487847
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/93933
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com>
  • Loading branch information
cvswen authored and Nicholas E Bofferding committed Mar 31, 2020
1 parent cff2786 commit e69d7d9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/usr/isteps/istep21/call_host_runtime_setup.C
Expand Up @@ -743,12 +743,20 @@ void* call_host_runtime_setup (void *io_pArgs)
{
#ifdef CONFIG_NVDIMM
// Arm the nvdimms
// Only get here if is_sapphire_load and PM started and have NVDIMMs
// Only get here if is_sapphire_load
// and PM started and have NVDIMMs
TARGETING::TargetHandleList l_nvdimmTargetList;
NVDIMM::nvdimm_getNvdimmList(l_nvdimmTargetList);
if (l_nvdimmTargetList.size() != 0)
TARGETING::TargetHandleList l_procList;
TARGETING::getAllChips(l_procList, TARGETING::TYPE_PROC, true);

// Arm nvdimms by proc
for (auto l_proc : l_procList)
{
NVDIMM::nvdimmArm(l_nvdimmTargetList);
l_nvdimmTargetList = TARGETING::getProcNVDIMMs(l_proc);
if (l_nvdimmTargetList.size() != 0)
{
NVDIMM::nvdimmArm(l_nvdimmTargetList);
}
}
#endif
}
Expand Down

0 comments on commit e69d7d9

Please sign in to comment.