summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test/fapi2GetChildrenTest.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/fapi2/test/fapi2GetChildrenTest.H')
-rw-r--r--src/usr/fapi2/test/fapi2GetChildrenTest.H38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/usr/fapi2/test/fapi2GetChildrenTest.H b/src/usr/fapi2/test/fapi2GetChildrenTest.H
index 38ca8444e..6dbe88e86 100644
--- a/src/usr/fapi2/test/fapi2GetChildrenTest.H
+++ b/src/usr/fapi2/test/fapi2GetChildrenTest.H
@@ -84,6 +84,8 @@ void test_fapi2GetChildren()
std::vector<Target<fapi2::TARGET_TYPE_XBUS> > l_childXBUSs;
std::vector<Target<fapi2::TARGET_TYPE_DMI> > l_childDMIs;
std::vector<Target<fapi2::TARGET_TYPE_OMI> > l_childOMIs;
+ std::vector<Target<fapi2::TARGET_TYPE_OCMB_CHIP> > l_childOCMBs;
+ std::vector<Target<fapi2::TARGET_TYPE_MEM_PORT> > l_childMEMPORTs;
if (isHwValid(l_proc, MY_MCA)
@@ -231,6 +233,42 @@ void test_fapi2GetChildren()
}
}
+ if (isHwValid(l_proc, MY_OMI)
+ && isHwValid(l_proc, MY_OCMB))
+ {
+ l_childOCMBs = fapi2_omiTarget.getChildren<fapi2::TARGET_TYPE_OCMB_CHIP>(TARGET_STATE_PRESENT);
+ l_targetHuid = TARGETING::get_huid(targeting_targets[MY_OMI]);
+ l_actualSize = l_childOCMBs.size();
+
+ //Set expected size to be the number of OMIs per proc
+ l_expectedSize = OCMB_PER_OMI;
+ numTests++;
+ if(l_actualSize != l_expectedSize)
+ {
+ FAPI_INF("fapi2TargetTest:: OCMBs per proc mismatch");
+ numFails++;
+ break;
+ }
+ }
+
+ if (isHwValid(l_proc, MY_OCMB)
+ && isHwValid(l_proc, MY_MEM_PORT))
+ {
+ l_childMEMPORTs = fapi2_ocmbTarget.getChildren<fapi2::TARGET_TYPE_MEM_PORT>(TARGET_STATE_PRESENT);
+ l_targetHuid = TARGETING::get_huid(targeting_targets[MY_OCMB]);
+ l_actualSize = l_childOCMBs.size();
+
+ //Set expected size to be the number of OMIs per proc
+ l_expectedSize = MEM_PORT_PER_OCMB;
+ numTests++;
+ if(l_actualSize != l_expectedSize)
+ {
+ FAPI_INF("fapi2TargetTest:: MEM_PORTs per proc mismatch");
+ numFails++;
+ break;
+ }
+ }
+
l_childCores = fapi2_exTarget.getChildren<fapi2::TARGET_TYPE_CORE>(TARGET_STATE_PRESENT);
l_targetHuid = TARGETING::get_huid(targeting_targets[MY_EX]) ;
OpenPOWER on IntegriCloud