summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2016-03-08 08:33:57 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-03-23 11:19:36 -0400
commitefb976fc64fc447d93015d3bb950431f341b6c19 (patch)
treeb55c264b2ac3d7c68da42adc4d59465976ceb07d /src/usr/fapi2/test
parent8acb41d0016e2e85dd464dfb383bedf63a53e4de (diff)
downloadtalos-hostboot-efb976fc64fc447d93015d3bb950431f341b6c19.tar.gz
talos-hostboot-efb976fc64fc447d93015d3bb950431f341b6c19.zip
Support association between pervasive targets and other unit targets
- Updated attribute compiler to link targets based on pervasive association - Updated attribute compiler to support virtual attributes - Added virtual attribute describing a unit's pervasive association - Updated Nimbus system XML with pervasive/unit associations - Fixed various errors compiling with debug trace enabled - Updated FSP attribute generator to create perv/unit links - Fixed FSP bad path character in attribute generator - Fixed PHB chip unit numbering in attribute generator - Replaced some NVBUS references with NV RTC: 148577 CMVC-Prereq: 988338 Change-Id: I6f3c4aa806e465dd9f09859c4911ff70db782a4f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21943 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2/test')
-rw-r--r--src/usr/fapi2/test/fapi2GetParentTest.C14
-rw-r--r--src/usr/fapi2/test/fapi2TestUtils.C5
2 files changed, 10 insertions, 9 deletions
diff --git a/src/usr/fapi2/test/fapi2GetParentTest.C b/src/usr/fapi2/test/fapi2GetParentTest.C
index 6418b8b9a..3fc30cfbb 100644
--- a/src/usr/fapi2/test/fapi2GetParentTest.C
+++ b/src/usr/fapi2/test/fapi2GetParentTest.C
@@ -137,7 +137,7 @@ errlHndl_t fapi2GetParentTest()
targeting_targets[MY_XBUS]);
Target<fapi2::TARGET_TYPE_OBUS> fapi2_obusTarget(
targeting_targets[MY_OBUS]);
- Target<fapi2::TARGET_TYPE_NV> fapi2_nvbusTarget(
+ Target<fapi2::TARGET_TYPE_NV> fapi2_nvTarget(
targeting_targets[MY_NV]);
Target<fapi2::TARGET_TYPE_PPE> fapi2_ppeTarget(
targeting_targets[MY_PPE]);
@@ -574,7 +574,7 @@ errlHndl_t fapi2GetParentTest()
numFails++;
}
-// //Check PHB's parents
+ //Check PHB's parents
l_tempTargetingParent =
static_cast<TARGETING::Target*>(
fapi2_phbTarget.getParent<TARGET_TYPE_PROC_CHIP>());
@@ -741,10 +741,10 @@ errlHndl_t fapi2GetParentTest()
numFails++;
}
- //Check NVBUS's parents
+ //Check NV's parents
l_tempTargetingParent =
static_cast<TARGETING::Target*>(
- fapi2_nvbusTarget.getParent<TARGET_TYPE_PROC_CHIP>());
+ fapi2_nvTarget.getParent<TARGET_TYPE_PROC_CHIP>());
numTests++;
if(TARGETING::get_huid(l_nimbusProc) !=
TARGETING::get_huid(l_tempTargetingParent))
@@ -758,10 +758,10 @@ errlHndl_t fapi2GetParentTest()
* @reasoncode fapi2::RC_NV_NO_PROC_FOUND
* @userdata1[0:31] Expected Parent HUID
* @userdata1[32:63] Actual Parent HUID
- * @userdata2[0:31] Instance of NVBUS
+ * @userdata2[0:31] Instance of NV
* @userdata2[32:63] fapi2 Type of expected parent
* @devdesc Could not find the parent PROC of this
- * NVBUS target
+ * NV target
*/
l_err = new ERRORLOG::ErrlEntry(ERRORLOG::ERRL_SEV_UNRECOVERABLE,
fapi2::MOD_FAPI2_PLAT_GET_PARENT_TEST,
@@ -778,7 +778,7 @@ errlHndl_t fapi2GetParentTest()
TO_UINT32(TARGET_TYPE_PROC_CHIP)),
true/*SW Error*/);
errlCommit(l_err,HWPF_COMP_ID);
- TS_FAIL( "fapi2TargetTest::Unable to find NVBUS's PROC parent!");
+ TS_FAIL( "fapi2TargetTest::Unable to find NV's PROC parent!");
numFails++;
}
diff --git a/src/usr/fapi2/test/fapi2TestUtils.C b/src/usr/fapi2/test/fapi2TestUtils.C
index acf25eeb3..e3d07ec0e 100644
--- a/src/usr/fapi2/test/fapi2TestUtils.C
+++ b/src/usr/fapi2/test/fapi2TestUtils.C
@@ -45,7 +45,7 @@
#define NUM_MCBISTS 2
#define NUM_PECS 3
#define NUM_PHBS 6
-#define NUM_XBUS 1
+#define NUM_XBUS 2
#define NUM_OBUS 2
#define NUM_NV 2
#define NUM_PPES 21
@@ -195,7 +195,8 @@ void generateTargets(TARGETING::Target* i_pMasterProcChip,
i_pMasterProcChip->tryGetAttr<TARGETING::ATTR_PHYS_PATH>(l_epath);
for(int i = 0; i < NUM_XBUS; i++)
{
- l_epath.addLast(TARGETING::TYPE_XBUS, i);
+ // Nimbus doesn't have the 0th xbus, so index from 1 for now
+ l_epath.addLast(TARGETING::TYPE_XBUS, i+1);
if(TARGETING::targetService().toTarget(l_epath) != NULL)
{
o_targetList[MY_XBUS] =
OpenPOWER on IntegriCloud