diff options
| author | Bill Hoffa <wghoffa@us.ibm.com> | 2018-02-14 14:42:42 -0600 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-02-15 14:23:17 -0500 |
| commit | 77b70bb7119cb13cc35976fa63201ee305538ad3 (patch) | |
| tree | a67e711c04b3a0f44b277e6c4af71f72578256db /src/usr/sbeio/runtime | |
| parent | ed4753f93086d5693b73ffa42863da8f1f108c7f (diff) | |
| download | talos-hostboot-77b70bb7119cb13cc35976fa63201ee305538ad3.tar.gz talos-hostboot-77b70bb7119cb13cc35976fa63201ee305538ad3.zip | |
Enable sbeio runtime testcases
Change-Id: Id5d8ef64606cd808cc05e4ec4f0a317773317b67
RTC: 178802
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54065
Reviewed-by: Matt Derksen <mderkse1@us.ibm.com>
Tested-by: Jenkins Server <pfd-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>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com>
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbeio/runtime')
| -rw-r--r-- | src/usr/sbeio/runtime/test/makefile | 3 | ||||
| -rw-r--r-- | src/usr/sbeio/runtime/test/sbeiotestRt.H | 20 | ||||
| -rw-r--r-- | src/usr/sbeio/runtime/test/sbeiotestRtConstants.H | 3 |
3 files changed, 13 insertions, 13 deletions
diff --git a/src/usr/sbeio/runtime/test/makefile b/src/usr/sbeio/runtime/test/makefile index 3d07f9a86..4a61daa0f 100644 --- a/src/usr/sbeio/runtime/test/makefile +++ b/src/usr/sbeio/runtime/test/makefile @@ -31,7 +31,6 @@ MODULE = testsbeio_rt EXTRAINCDIR += ${ROOTPATH}/src/import/chips/p9/common/include/ -#@TODO RTC:178802 -#TESTS = *.H +TESTS = *.H include ${ROOTPATH}/config.mk diff --git a/src/usr/sbeio/runtime/test/sbeiotestRt.H b/src/usr/sbeio/runtime/test/sbeiotestRt.H index 7fff432c3..a2a4b1996 100644 --- a/src/usr/sbeio/runtime/test/sbeiotestRt.H +++ b/src/usr/sbeio/runtime/test/sbeiotestRt.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2017 */ +/* Contributors Listed Below - COPYRIGHT 2017,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -363,7 +363,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite "0x%08x, but read 0x%08x", (l_read_reg & ~l_mask) | i_checkMask, l_read_reg); - + rc = 1; break; } @@ -400,8 +400,6 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite // Test entry TRACFCOMP(g_trac_sbeio, ENTER_MRK "SbeMessagePassingRtTest::" "testSbeMessagePassingVersions"); -//@TODO RTC:178802 -#if 0 sbeMessage_t l_request; sbeMessage_t l_expected_response; RT_TARG::rtChipId_t chipId = 0; @@ -485,7 +483,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite break; } }while (0); -#endif + // Test exit TRACFCOMP(g_trac_sbeio, EXIT_MRK "SbeMessagePassingRtTest::" "testSbeMessagePassingVersions"); @@ -800,7 +798,8 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite } // Check setting of bits in CFAM register - rc = checkResetSbeMessagePassingCFAM(chipId); + rc = checkResetSbeMessagePassingCFAM(chipId, + SBE_MSG_IN_PROGRESS); if(0 != rc) { TS_FAIL("Unexpected error during RT SBE message passing. " @@ -1051,7 +1050,8 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite } // Check setting of bits in CFAM register - rc = checkResetSbeMessagePassingCFAM(chipId); + rc = checkResetSbeMessagePassingCFAM(chipId, + SBE_MSG_COMPLETE); if(0 != rc) { TS_FAIL("Unexpected error during RT SBE message passing. " @@ -1112,7 +1112,8 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite } // Check setting of bits in CFAM register - rc = checkResetSbeMessagePassingCFAM(chipId); + rc = checkResetSbeMessagePassingCFAM(chipId, + SBE_MSG_COMPLETE); if(0 != rc) { TS_FAIL("Unexpected error during RT SBE message passing. " @@ -1306,7 +1307,8 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite } // Check setting of bits in CFAM register - rc = checkResetSbeMessagePassingCFAM(chipId); + rc = checkResetSbeMessagePassingCFAM(chipId, + SBE_MSG_COMPLETE); if(0 != rc) { TS_FAIL("Unexpected error during RT SBE message passing. " diff --git a/src/usr/sbeio/runtime/test/sbeiotestRtConstants.H b/src/usr/sbeio/runtime/test/sbeiotestRtConstants.H index 4ea937a3b..c4db54ca3 100644 --- a/src/usr/sbeio/runtime/test/sbeiotestRtConstants.H +++ b/src/usr/sbeio/runtime/test/sbeiotestRtConstants.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2017 */ +/* Contributors Listed Below - COPYRIGHT 2017,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -26,7 +26,6 @@ #define __SBEIO_SBEIO_TEST_RT_CONSTANTS_H // Constants for SBE Message bits in SCOM_ADDR_5003B -const uint32_t SCOM_ADDR_5003B = 0x0005003B; // CFAM Reg 0x283B const uint32_t SBE_MSG_IN_PROGRESS = 0x40000000; const uint32_t SBE_MSG_COMPLETE = 0x80000000; const uint32_t SBE_MSG_MASK = SBE_MSG_COMPLETE | SBE_MSG_IN_PROGRESS; |

