diff options
author | Matt Derksen <mderkse1@us.ibm.com> | 2019-07-10 09:20:45 -0500 |
---|---|---|
committer | Daniel M Crowell <dcrowell@us.ibm.com> | 2019-08-20 10:04:30 -0500 |
commit | 052182c0de15d0d3ce3ffc06100f6b60459704ed (patch) | |
tree | f8d048ca8abcf17742724c3e4ae32e0ff1ec64a9 /src/usr/expaccess/test | |
parent | a950157bfa82be76566ba9a81783592f42f727c9 (diff) | |
download | talos-hostboot-052182c0de15d0d3ce3ffc06100f6b60459704ed.tar.gz talos-hostboot-052182c0de15d0d3ce3ffc06100f6b60459704ed.zip |
Test runtime scom support in Axone
Needed to disable i2c explorer command tests during
runtime. Currently just support mmio operations for runtime.
Change-Id: Ifd2888b1deb03b76408b03516a9dd030896e1ee1
RTC:210321
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80236
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R Geddes <crgeddes@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-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>
Reviewed-by: Roland Veloz <rveloz@us.ibm.com>
Reviewed-by: Daniel M Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/expaccess/test')
-rw-r--r-- | src/usr/expaccess/test/expscomtest.H | 13 | ||||
-rw-r--r-- | src/usr/expaccess/test/makefile | 2 | ||||
-rw-r--r-- | src/usr/expaccess/test/test.mk | 7 |
3 files changed, 17 insertions, 5 deletions
diff --git a/src/usr/expaccess/test/expscomtest.H b/src/usr/expaccess/test/expscomtest.H index 6da7d53b1..274ce0bb7 100644 --- a/src/usr/expaccess/test/expscomtest.H +++ b/src/usr/expaccess/test/expscomtest.H @@ -42,8 +42,8 @@ #include <fapi2/hw_access.H> #include <lib/shared/exp_consts.H> #include "exptest_utils.H" +#include "../expscom_trace.H" -extern trace_desc_t* g_trac_expscom; using namespace TARGETING; using namespace ERRORLOG; @@ -120,6 +120,8 @@ public: */ void testExpscomI2c(void) { +// Only MMIO supported at runtime +#ifndef __HOSTBOOT_RUNTIME TRACFCOMP( g_trac_expscom, ">> Enter testExpscomI2c"); // Keep trace of pass/fails uint32_t l_tests = 0; @@ -272,8 +274,8 @@ public: // << atomic section mutex_unlock(iv_serializeTestMutex); }while(0); - TRACFCOMP( g_trac_expscom, "<< Exit testExpscomI2c"); +#endif return; } @@ -282,6 +284,8 @@ public: */ void testExpscomI2cPlatform(void) { +// Only mmio supported at runtime +#ifndef __HOSTBOOT_RUNTIME TRACFCOMP( g_trac_expscom, ">> Enter testExpscomI2cPlatform"); // Keep trace of pass/fails uint32_t l_tests = 0; @@ -434,6 +438,7 @@ public: }while(0); TRACFCOMP( g_trac_expscom, "<< Exit testExpscomI2cPlatform"); +#endif return; } @@ -620,6 +625,8 @@ public: */ void testExpscomCombined(void) { +// Only MMIO scoms supported at runtime, i2c not supported +#ifndef __HOSTBOOT_RUNTIME TargetHandleList l_explorerList; uint32_t l_tests = 0; uint32_t l_fails = 0; @@ -796,7 +803,7 @@ public: }while(0); TRACFCOMP(g_trac_expscom, "<< Exit testExpscomCombined"); - +#endif return; } diff --git a/src/usr/expaccess/test/makefile b/src/usr/expaccess/test/makefile index 41706b719..0e4f0e2e5 100644 --- a/src/usr/expaccess/test/makefile +++ b/src/usr/expaccess/test/makefile @@ -28,8 +28,6 @@ MODULE = testexpaccess include test.mk -OBJS += exptest_utils.o - TESTS = *.H include ${ROOTPATH}/config.mk diff --git a/src/usr/expaccess/test/test.mk b/src/usr/expaccess/test/test.mk index 059efe27d..5aaeeda66 100644 --- a/src/usr/expaccess/test/test.mk +++ b/src/usr/expaccess/test/test.mk @@ -30,6 +30,13 @@ EXTRAINCDIR += ${ROOTPATH}/src/import/chips/ocmb/explorer/procedures/hwp/memory/ EXTRAINCDIR += ${ROOTPATH}/src/import/chips/ocmb/explorer/procedures/hwp/memory/ EXTRAINCDIR += ${ROOTPATH}/src/import/chips/ocmb/explorer/common/include EXTRAINCDIR += ${ROOTPATH}/src/import +EXTRAINCDIR += ${ROOTPATH}/src/usr/expaccess/ +EXTRAINCDIR += ${ROOTPATH}/src/usr/expaccess/test/ + +VPATH += ${ROOTPATH}/src/usr/expaccess/test/ +VPATH += ${ROOTPATH}/src/usr/expaccess/ + +OBJS += exptest_utils.o include ${ROOTPATH}/config.mk |