summaryrefslogtreecommitdiffstats
path: root/src/usr/scom/test
diff options
context:
space:
mode:
authorCamVan Nguyen <ctnguyen@us.ibm.com>2012-07-30 17:04:10 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-08-03 09:53:45 -0500
commit6581dbd0ba6add5404a6a8a0bf440352130ce6aa (patch)
treecab15aa0ad0cb29fb54e248a9989b226ca5d3b66 /src/usr/scom/test
parent79202f07a0f71f6131b83bf859c24bc227ffaeb2 (diff)
downloadtalos-hostboot-6581dbd0ba6add5404a6a8a0bf440352130ce6aa.tar.gz
talos-hostboot-6581dbd0ba6add5404a6a8a0bf440352130ce6aa.zip
Update test cases to work for both Venice and Murano chip
Change-Id: I3344c9a8b5d3784d4bc64dc458e63d2435622023 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1445 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Van H. Lee <vanlee@us.ibm.com> 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.H24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/usr/scom/test/scomtest.H b/src/usr/scom/test/scomtest.H
index a42cb56a8..feb1919de 100644
--- a/src/usr/scom/test/scomtest.H
+++ b/src/usr/scom/test/scomtest.H
@@ -454,7 +454,7 @@ public:
uint64_t addr;
uint64_t data;
} test_data[] = {
- { scom_targets[myPROC0], 0x8000F06002011A3F ,0x1234432112344321},
+ { scom_targets[myPROC0], 0x8000F06002011E3F ,0x1234432112344321},
{ scom_targets[myPROC0], 0x8000086002011E3F, 0x123443211234ABAB},
};
const uint64_t NUM_ADDRS = sizeof(test_data)/sizeof(test_data[0]);
@@ -1558,6 +1558,16 @@ public:
TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_XBUS> Target %d is not functional", x );
continue;
}
+ // TODO: engd data for s1 supports XBUS1 only.
+ // 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>() ==
+ TARGETING::MODEL_MURANO) && (x != 1))
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_XBUS> Processor is Murano"
+ " - skipping Target %d", x );
+ continue;
+ }
op_size = sizeof(uint64_t);
@@ -1600,7 +1610,17 @@ 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)
{
- TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_XBUS> Target %d is not functional", x );
+ TRACDCOMP( g_trac_scom, "ScomTest::test_TranslateScom_XBUS> Target %d is not functional", x );
+ continue;
+ }
+ // TODO: engd data for s1 supports XBUS1 only.
+ // 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>() ==
+ TARGETING::MODEL_MURANO) && (x != 1))
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_TranslateScom_XBUS> Processor is Murano"
+ " - skipping Target %d", x );
continue;
}
OpenPOWER on IntegriCloud