summaryrefslogtreecommitdiffstats
path: root/src/usr/scom/test
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2014-06-02 15:14:43 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-06-27 17:10:16 -0500
commit9c4aa90f178a4f9ed68bdb0d17eec52785c5ea47 (patch)
treef6effbb3402b63985b434f85cb62815bea6b3666 /src/usr/scom/test
parenta07b3a334abf5c5349a31c80ed456847efdb31bb (diff)
downloadtalos-hostboot-9c4aa90f178a4f9ed68bdb0d17eec52785c5ea47.tar.gz
talos-hostboot-9c4aa90f178a4f9ed68bdb0d17eec52785c5ea47.zip
Add basic fapi support for Naples
Change-Id: Ie0d9c6fcc3a51e01f5ecec9ac52b4933c267e80c RTC: 107939 Depends-On: I421e5a456a8d84a844f341e8c6fd462ad557e728 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11373 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/scom/test')
-rw-r--r--src/usr/scom/test/scomtest.H34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/usr/scom/test/scomtest.H b/src/usr/scom/test/scomtest.H
index bbff268f8..59659d7d6 100644
--- a/src/usr/scom/test/scomtest.H
+++ b/src/usr/scom/test/scomtest.H
@@ -104,7 +104,7 @@ public:
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_proc> useFsiScom set to zero on target %d", x );
scom_targets[x] = NULL; //remove from our list
}
- else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_proc> Target %d is not functional", x );
scom_targets[x] = NULL; //remove from our list
@@ -279,7 +279,7 @@ public:
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_centaur> useFsiScom set to zero on target %d", x );
scom_targets[x] = NULL; //remove from our list
}
- else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_centaur> Target %d is not functional", x );
scom_targets[x] = NULL; //remove from our list
@@ -436,7 +436,7 @@ public:
TRACDCOMP(g_trac_scom, "INDIRECT SCOM>> SKIPPING ");
scom_targets[x] = NULL; //remove from our list
}
- else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_centaur> Target %d is not functional", x );
scom_targets[x] = NULL; //remove from our list
@@ -624,7 +624,7 @@ public:
continue;
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_EX> Target %d is not functional", x );
continue;
@@ -719,7 +719,7 @@ public:
{
return;
}
-
+
// Setup some targets to use
enum {
myProc0,
@@ -811,7 +811,7 @@ public:
continue;
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_MCS> Target %d is not functional", x );
continue;
@@ -1001,7 +1001,7 @@ public:
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_MCS_DMI> Target %d is not functional", x );
continue;
@@ -1171,7 +1171,7 @@ public:
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_MBA_MBS> Target %d is not functional", x );
continue;
@@ -1217,7 +1217,7 @@ public:
continue;
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_MBA_MBS> Target %d is not functional", x );
continue;
@@ -1365,7 +1365,7 @@ public:
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_ABUS> Target %d is not functional", x );
continue;
@@ -1410,7 +1410,7 @@ public:
continue;
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_ABUS> Target %d is not functional", x );
continue;
@@ -1557,12 +1557,13 @@ public:
continue;
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_XBUS> Target %d is not functional", x );
continue;
}
// TODO: engd data for s1 supports XBUS1 only.
+ // TODO: RTC 109249, check XBUS for Naples
// For now check if murano or naples chip and target is not XBUS1, then skip this target.
// Long term solution would be to change HWAS per RTC 45796.
else if ( ((scom_targets[myProc0]->getAttr<TARGETING::ATTR_MODEL>() ==
@@ -1614,12 +1615,13 @@ public:
continue;
}
// check to see if the target is functional.. if not.. skip this target
- else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_TranslateScom_XBUS> Target %d is not functional", x );
continue;
}
// TODO: engd data for s1 supports XBUS1 only.
+ // TODO: RTC 109249, check XBUS for Naples
// For now check if murano chip and target is not XBUS1, then skip this target.
// Long term solution would be to change HWAS per RTC 45796.
else if ( ((scom_targets[myProc0]->getAttr<TARGETING::ATTR_MODEL>() ==
@@ -1669,7 +1671,7 @@ public:
/**
- * @brief multi chip SCOM test
+ * @brief multi chip SCOM test
*
*/
void test_MultiChipSCOMreadWrite_proc(void)
@@ -1705,7 +1707,7 @@ public:
{
continue;
}
- else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_proc> Target %d is not functional", x );
scom_targets[x] = NULL; //remove from our list
@@ -1745,7 +1747,7 @@ public:
test_data[x].target,
&(test_data[x].data),
op_size,
- DEVICE_XSCOM_ADDRESS(test_data[x].addr) );
+ DEVICE_XSCOM_ADDRESS(test_data[x].addr) );
if( l_err )
{
OpenPOWER on IntegriCloud