summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2019-04-30 15:36:57 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-05-13 15:24:25 -0500
commit0c954ba135fb55bdfd38605892f50f9f7cf813bb (patch)
tree8086839b77f11f49262fc1ae215f3d1273c70a26 /src/usr/fapi2
parent1c0d5d1e89b3ccb53b0c2b9171365fe395d5eb6e (diff)
downloadtalos-hostboot-0c954ba135fb55bdfd38605892f50f9f7cf813bb.tar.gz
talos-hostboot-0c954ba135fb55bdfd38605892f50f9f7cf813bb.zip
Fix test_fapi2getChildTargetsForCDG for Axone
Port and socket parameters are not relevent for Axone system. Skip calling these specific parameter tests for Axone configuration. Change-Id: I5418c54e1686d1cff96c8d670b1f461195954044 RTC:201738 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/77045 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: Glenn Miles <milesg@ibm.com> Reviewed-by: Matthew Raybuck <matthew.raybuck@ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2')
-rw-r--r--src/usr/fapi2/test/fapi2GetChildrenTest.H26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/usr/fapi2/test/fapi2GetChildrenTest.H b/src/usr/fapi2/test/fapi2GetChildrenTest.H
index 3971c1270..2617648aa 100644
--- a/src/usr/fapi2/test/fapi2GetChildrenTest.H
+++ b/src/usr/fapi2/test/fapi2GetChildrenTest.H
@@ -966,10 +966,12 @@ void test_fapi2getChildTargetsForCDG()
int numFails = 0;
TARGETING::Target * l_proc = nullptr;
size_t l_expectedDimms = 0;
+ TARGETING::TargetHandleList l_chipList;
+// These port and socket arguments are not valid for Axone targets
+#ifndef CONFIG_AXONE
size_t l_expectedDimmsUnderPort0 = 0;
size_t l_expectedDimmsUnderPort1 = 0;
- TARGETING::TargetHandleList l_chipList;
-
+#endif
do
{
FAPI_DBG("start of test_fapi2getChildTargetsForCDG()");
@@ -992,20 +994,24 @@ void test_fapi2getChildTargetsForCDG()
if (l_proc->getAttr<TARGETING::ATTR_MODEL>() == TARGETING::MODEL_NIMBUS)
{
l_expectedDimms = 16;
+// These port and socket arguments are not valid for Axone targets
+#ifndef CONFIG_AXONE
l_expectedDimmsUnderPort0 = l_expectedDimms;
l_expectedDimmsUnderPort1 = 0;
+#endif
}
else if (l_proc->getAttr<TARGETING::ATTR_MODEL>() == TARGETING::MODEL_CUMULUS)
{
l_expectedDimms = 8;
+// These port and socket arguments are not valid for Axone targets
+#ifndef CONFIG_AXONE
l_expectedDimmsUnderPort0 = l_expectedDimms/2;
l_expectedDimmsUnderPort1 = l_expectedDimms/2;
+#endif
}
else if (l_proc->getAttr<TARGETING::ATTR_MODEL>() == TARGETING::MODEL_AXONE)
{
l_expectedDimms = 9;
- l_expectedDimmsUnderPort0 = 0xFF; //wrong
- l_expectedDimmsUnderPort1 = 0xFF; //wrong
}
else //both are nullptr
{
@@ -1035,6 +1041,9 @@ void test_fapi2getChildTargetsForCDG()
numFails++;
}
+// These port and socket arguments are not valid for Axone targets
+// so skip testing them
+#ifndef CONFIG_AXONE
// All dimms under port 0
fapi2::getChildTargetsForCDG(fapi2_procTarget,
fapi2::TARGET_TYPE_DIMM,
@@ -1047,11 +1056,9 @@ void test_fapi2getChildTargetsForCDG()
if(l_dimmList.size() != l_expectedDimmsUnderPort0)
{
-#ifndef CONFIG_AXONE_BRING_UP
TS_FAIL("test_fapi2getChildTargetsForCDG: Dimm count %d under port 0 not equal expected %d",
l_dimmList.size(),l_expectedDimmsUnderPort0);
numFails++;
-#endif
}
// All dimms under port 1
@@ -1066,11 +1073,9 @@ void test_fapi2getChildTargetsForCDG()
if(l_dimmList.size() != l_expectedDimmsUnderPort1)
{
-#ifndef CONFIG_AXONE_BRING_UP
TS_FAIL("test_fapi2getChildTargetsForCDG: Dimm count %d under port 1 not equal expected %d",
l_dimmList.size(),l_expectedDimmsUnderPort1);
numFails++;
-#endif
}
// All dimms under socket 0
@@ -1084,11 +1089,9 @@ void test_fapi2getChildTargetsForCDG()
numTests++;
if(l_dimmList.size() != l_expectedDimms)
{
-#ifndef CONFIG_AXONE_BRING_UP
- TS_FAIL("test_fapi2getChildTargetsForCDG: Dimm count %d under socket 0 not equal expected %d",
+ TS_FAIL("test_fapi2getChildTargetsForCDG: Dimm count %d under socket 0x0, all ports, not equal expected %d",
l_dimmList.size(),l_expectedDimms);
numFails++;
-#endif
}
// All dimms under socket 1
@@ -1106,6 +1109,7 @@ void test_fapi2getChildTargetsForCDG()
l_dimmList.size(),0);
numFails++;
}
+#endif
}while(0);
OpenPOWER on IntegriCloud