diff options
author | Bill Hoffa <wghoffa@us.ibm.com> | 2019-06-25 10:32:16 -0500 |
---|---|---|
committer | Nicholas E Bofferding <bofferdn@us.ibm.com> | 2019-08-30 13:15:28 -0500 |
commit | e22e362f3cd9b96b845f8c51acd6da97c78554a4 (patch) | |
tree | 4b37414e32dbbdb9cc7cdbdd8aabb27fba49e918 /src/usr/testcore | |
parent | 38845b6460903998891709c6a4bfcaec2a9ed837 (diff) | |
download | talos-hostboot-e22e362f3cd9b96b845f8c51acd6da97c78554a4.tar.gz talos-hostboot-e22e362f3cd9b96b845f8c51acd6da97c78554a4.zip |
Axone 2-Proc Standalone Sim Enablement
- XML Additions for all targets on 2nd proc
Change-Id: Ib8a860e4679e08253076abbbade98f4ba172e81d
RTC: 208448
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/82685
Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@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: Nicholas E Bofferding <bofferdn@us.ibm.com>
Diffstat (limited to 'src/usr/testcore')
-rw-r--r-- | src/usr/testcore/kernel/misctest.H | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/usr/testcore/kernel/misctest.H b/src/usr/testcore/kernel/misctest.H index c61741fac..e6322d741 100644 --- a/src/usr/testcore/kernel/misctest.H +++ b/src/usr/testcore/kernel/misctest.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2012,2018 */ +/* Contributors Listed Below - COPYRIGHT 2012,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -64,8 +64,8 @@ class MiscTest : public CxxTest::TestSuite phys = mm_virt_to_phys( heap ); if( phys != (reinterpret_cast<uint64_t>(heap)|hrmor) ) { - TS_FAIL("Unexpected Physical Address for Heap."); TS_TRACE( "heap> virt=%p, phys=%lX", (void*)heap, phys ); + TS_FAIL("Unexpected Physical Address for Heap."); } free(heap); @@ -78,18 +78,23 @@ class MiscTest : public CxxTest::TestSuite } // Verify a MMIO (XSCOM) - TARGETING::EntityPath epath(TARGETING::EntityPath::PATH_PHYSICAL); - epath.addLast(TARGETING::TYPE_SYS,0); - epath.addLast(TARGETING::TYPE_NODE,0); - epath.addLast(TARGETING::TYPE_PROC,1); - TARGETING::Target* l_targ = - TARGETING::targetService().toTarget(epath); - if(l_targ != NULL) + TARGETING::Target * l_masterProc = nullptr; + TARGETING::Target * l_masterNode = nullptr; + bool l_onlyFunctional = true; // Make sure masterproc is functional + errlHndl_t l_err(nullptr); + l_err = TARGETING::targetService().queryMasterProcChipTargetHandle( + l_masterProc, + l_masterNode, + l_onlyFunctional); + + //Validate we found a master proc and + // didn't encounter any error finding it + if(l_masterProc != nullptr && !l_err) { uint64_t xscom = - l_targ->getAttr<TARGETING::ATTR_XSCOM_VIRTUAL_ADDR>(); + l_masterProc->getAttr<TARGETING::ATTR_XSCOM_VIRTUAL_ADDR>(); phys = mm_virt_to_phys( (void*)xscom ); - if( (phys != (1020*TERABYTE+32*GIGABYTE)) + if( (phys != (1020*TERABYTE+32*GIGABYTE)) && (xscom != 0) ) //never got set { TS_FAIL("Unexpected Physical Address for MMIO."); |