Skip to content

Commit

Permalink
Enable sbeio runtime testcases
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wghoffa authored and dcrowell77 committed Feb 15, 2018
1 parent ed4753f commit 77b70bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/usr/sbeio/runtime/test/makefile
Expand Up @@ -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
20 changes: 11 additions & 9 deletions src/usr/sbeio/runtime/test/sbeiotestRt.H
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2017 */
/* Contributors Listed Below - COPYRIGHT 2017,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -485,7 +483,7 @@ class SbeMessagePassingRtTest : public CxxTest::TestSuite
break;
}
}while (0);
#endif

// Test exit
TRACFCOMP(g_trac_sbeio, EXIT_MRK "SbeMessagePassingRtTest::"
"testSbeMessagePassingVersions");
Expand Down Expand Up @@ -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. "
Expand Down Expand Up @@ -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. "
Expand Down Expand Up @@ -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. "
Expand Down Expand Up @@ -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. "
Expand Down
3 changes: 1 addition & 2 deletions src/usr/sbeio/runtime/test/sbeiotestRtConstants.H
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2017 */
/* Contributors Listed Below - COPYRIGHT 2017,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand All @@ -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;
Expand Down

0 comments on commit 77b70bb

Please sign in to comment.