summaryrefslogtreecommitdiffstats
path: root/src/usr/expscom
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2019-02-20 09:18:07 -0600
committerChristian R. Geddes <crgeddes@us.ibm.com>2019-03-07 16:35:52 -0600
commit386165c1c5dad4b0dde4a94401b4feb0435787a9 (patch)
treef43ec0e10671d3751a3d3d1eb7160306b1a8da95 /src/usr/expscom
parentebf6fda9958f1b82742bea22e98388f38a9b62d5 (diff)
downloadblackbird-hostboot-386165c1c5dad4b0dde4a94401b4feb0435787a9.tar.gz
blackbird-hostboot-386165c1c5dad4b0dde4a94401b4feb0435787a9.zip
Updates to testcases for Axone
Disabling a few testcases temporarily until Axone gets off the ground. Cleaned up some bad traces, etc in existing code. Add CI support for AXONE config Change-Id: I7a2140366e225971c91a50cec1f7e822e4847078 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72186 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/usr/expscom')
-rw-r--r--src/usr/expscom/test/expscomtest.H83
1 files changed, 54 insertions, 29 deletions
diff --git a/src/usr/expscom/test/expscomtest.H b/src/usr/expscom/test/expscomtest.H
index a5741d632..4acb72e21 100644
--- a/src/usr/expscom/test/expscomtest.H
+++ b/src/usr/expscom/test/expscomtest.H
@@ -92,6 +92,21 @@ errlCommit(l_err, 0x10);
class expscomTest: public CxxTest::TestSuite
{
+private:
+ fapi2::ReturnCode put_scom(const fapi2::Target<fapi2::TARGET_TYPE_OCMB_CHIP>& i_target,
+ const uint64_t i_address,
+ const fapi2::buffer<uint64_t> i_data)
+ {
+ return fapi2::putScom(i_target,i_address,i_data);
+ }
+
+ fapi2::ReturnCode get_scom(const fapi2::Target<fapi2::TARGET_TYPE_OCMB_CHIP>& i_target,
+ const uint64_t i_address,
+ fapi2::buffer<uint64_t>& o_data)
+ {
+ return fapi2::getScom(i_target,i_address,o_data);
+ }
+
public:
/**
@@ -113,6 +128,11 @@ public:
TargetHandleList l_explorerList;
do{
+// Causing a data storage exception in c_str...
+#ifdef CONFIG_AXONE_BRING_UP
+TRACFCOMP( g_trac_expscom,"skipping testExpscomI2c");
+break;
+#endif
// Get the system's OCMB chips, we will use these as test targets
getAllChips( l_explorerList,
TYPE_OCMB_CHIP,
@@ -159,27 +179,27 @@ public:
l_scom_buffer.insert<32,32,0,uint32_t>(l_testEntry.data);
}
- FAPI_INVOKE_HWP(l_err, fapi2::putScom,
+ FAPI_INVOKE_HWP(l_err, put_scom,
l_firstExpChip_fapi,
l_testEntry.addr,
l_scom_buffer );
l_tests++;
if(l_err)
{
- FAIL_TEST_RC(l_firstExpChip,
+ FAIL_TEST_ERRL(l_firstExpChip,
"testExpscomI2c>> Failed putScom writing 0x%.16X to 0x%.8X on target w/ huid 0x%.8X");
}
// putScom to last OCMB over i2c
- FAPI_INVOKE_HWP(l_err, fapi2::putScom,
+ FAPI_INVOKE_HWP(l_err, put_scom,
l_lastExpChip_fapi,
- l_testEntry.addr,
+ l_testEntry.addr,
l_scom_buffer );
l_tests++;
- if(l_rc)
+ if(l_err)
{
- FAIL_TEST_RC(l_lastExpChip,
+ FAIL_TEST_ERRL(l_lastExpChip,
"testExpscomI2c>> Failed putScom writing 0x%.16X to 0x%.8X on target w/ huid 0x%.8X");
}
@@ -188,14 +208,14 @@ public:
l_scom_buffer.flush<0>();
// getScom to first OCMB over i2c
- FAPI_INVOKE_HWP(l_err, fapi2::getScom,
+ FAPI_INVOKE_HWP(l_err, get_scom,
l_firstExpChip_fapi,
l_testEntry.addr,
l_scom_buffer );
l_tests++;
- if(l_rc)
+ if(l_err)
{
- FAIL_TEST_RC(l_firstExpChip,
+ FAIL_TEST_ERRL(l_firstExpChip,
"testExpscomI2c>> Failed getScom reading 0x%.16X to 0x%.8X on target w/ huid 0x%.8X")
}
@@ -213,14 +233,14 @@ public:
l_scom_buffer.flush<0>();
// getScom to last OCMB over i2c
- FAPI_INVOKE_HWP(l_err, fapi2::getScom,
+ FAPI_INVOKE_HWP(l_err, get_scom,
l_lastExpChip_fapi,
l_testEntry.addr,
l_scom_buffer );
l_tests++;
- if(l_rc)
+ if(l_err)
{
- FAIL_TEST_RC(l_lastExpChip,
+ FAIL_TEST_ERRL(l_lastExpChip,
"testExpscomI2c>> Failed getScom reading 0x%.16X to 0x%.8X on target w/ huid 0x%.8X")
}
@@ -247,7 +267,7 @@ public:
void testExpscomI2cPlatform(void)
{
- TRACFCOMP( g_trac_expscom, ">> Enter testExpscomI2c");
+ TRACFCOMP( g_trac_expscom, ">> Enter testExpscomI2cPlatform");
// Keep trace of pass/fails
uint32_t l_tests = 0;
uint32_t l_fails = 0;
@@ -263,6 +283,11 @@ public:
TargetHandleList l_explorerList;
do{
+// Causing a data storage exception in c_str...
+#ifdef CONFIG_AXONE_BRING_UP
+TRACFCOMP( g_trac_expscom,"skipping testExpscomI2cPlatformPlatform");
+break;
+#endif
getAllChips( l_explorerList,
TYPE_OCMB_CHIP,
@@ -271,7 +296,7 @@ public:
if(l_explorerList.size() == 0 )
{
- TRACFCOMP( g_trac_expscom, "No OCMB targets found, skipping testExpscomI2cPlatform");
+ TRACFCOMP( g_trac_expscom, "No OCMB targets found, skipping testExpscomI2cPlatformPlatform");
break;
}
@@ -312,7 +337,7 @@ public:
if(l_err)
{
FAIL_TEST_ERRL(l_firstExpChip,
- "testExpscomI2c>> Failed putScom writing 0x%.16X to 0x%.8X on target w/ huid 0x%.8X");
+ "testExpscomI2cPlatform>> Failed putScom writing 0x%.16X to 0x%.8X on target w/ huid 0x%.8X");
}
@@ -324,7 +349,7 @@ public:
if(l_err)
{
FAIL_TEST_ERRL(l_firstExpChip,
- "testExpscomI2c>> Failed putScom writing 0x%.16X to 0x%.8X on target w/ huid 0x%.8X");
+ "testExpscomI2cPlatform>> Failed putScom writing 0x%.16X to 0x%.8X on target w/ huid 0x%.8X");
}
// Flush scom buffers so it doesnt mess up next test
@@ -339,14 +364,14 @@ public:
if(l_err)
{
FAIL_TEST_ERRL(l_firstExpChip,
- "testExpscomI2c>> Failed getScom reading 0x%.16X to 0x%.8X on target w/ huid 0x%.8X")
+ "testExpscomI2cPlatform>> Failed getScom reading 0x%.16X to 0x%.8X on target w/ huid 0x%.8X")
}
l_tests++;
if(l_scom_buffer() != l_testEntry.data)
{
l_fails++;
- TS_FAIL("testExpscomI2c>> Expected 0x%.16X but got 0x%.16X on target w/ huid 0x%.8X",
+ TS_FAIL("testExpscomI2cPlatform>> Expected 0x%.16X but got 0x%.16X on target w/ huid 0x%.8X",
l_testEntry.data,
l_scom_buffer(),
get_huid(l_firstExpChip));
@@ -365,14 +390,14 @@ public:
if(l_err)
{
FAIL_TEST_ERRL(l_firstExpChip,
- "testExpscomI2c>> Failed getScom reading 0x%.16X to 0x%.8X on target w/ huid 0x%.8X")
+ "testExpscomI2cPlatform>> Failed getScom reading 0x%.16X to 0x%.8X on target w/ huid 0x%.8X")
}
l_tests++;
if(l_scom_buffer() != l_testEntry.data)
{
l_fails++;
- TS_FAIL("testExpscomI2c>> Expected 0x%.16X but got 0x%.16X on target w/ huid 0x%.8X",
+ TS_FAIL("testExpscomI2cPlatform>> Expected 0x%.16X but got 0x%.16X on target w/ huid 0x%.8X",
l_testEntry.data,
l_scom_buffer(),
get_huid(l_firstExpChip));
@@ -384,7 +409,7 @@ public:
l_lastExpChip->setAttr<TARGETING::ATTR_SCOM_SWITCHES>(last_ocmb_info);
}while(0);
- TRACFCOMP( g_trac_expscom, "<< Exit testExpscomI2c");
+ TRACFCOMP( g_trac_expscom, "<< Exit testExpscomI2cPlatform");
return;
}
@@ -432,7 +457,7 @@ public:
// }
//
// // putScom to first OCMB over mmio
-// l_rc = fapi2::putScom(l_firstExpChip_fapi,
+// l_rc = put_scom(l_firstExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
@@ -448,7 +473,7 @@ public:
// }
//
// // putScom to last OCMB over mmio
-// l_rc = fapi2::putScom(l_lastExpChip_fapi,
+// l_rc = put_scom(l_lastExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
@@ -468,7 +493,7 @@ public:
//
//
// // getScom to first OCMB over mmio
-// l_rc = fapi2::getScom(l_firstExpChip_fapi,
+// l_rc = get_scom(l_firstExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
@@ -499,7 +524,7 @@ public:
// l_scom_buffer.flush<0>();
//
// // getScom to last OCMB over mmio
-// l_rc = fapi2::getScom(l_lastExpChip_fapi,
+// l_rc = get_scom(l_lastExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
@@ -586,7 +611,7 @@ public:
// }
//
// // putScom to first OCMB over mmio
-// l_rc = fapi2::putScom(l_firstExpChip_fapi,
+// l_rc = put_scom(l_firstExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
@@ -600,7 +625,7 @@ public:
// }
//
// // putScom to last OCMB over mmio
-// l_rc = fapi2::putScom(l_lastExpChip_fapi,
+// l_rc = put_scom(l_lastExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
@@ -617,7 +642,7 @@ public:
// l_scom_buffer.flush<0>();
//
// // getScom to first OCMB over mmio
-// l_rc = fapi2::getScom(l_firstExpChip_fapi,
+// l_rc = get_scom(l_firstExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
@@ -657,7 +682,7 @@ public:
// l_scom_buffer.flush<0>();
//
// // getScom to last OCMB over mmio
-// l_rc = fapi2::getScom(l_lastExpChip_fapi,
+// l_rc = get_scom(l_lastExpChip_fapi,
// l_testEntry.addr,
// l_scom_buffer);
// l_tests++;
OpenPOWER on IntegriCloud