summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test/fapi2HwAccessTest.H
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-06-27 11:06:24 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-07-25 00:18:44 -0400
commitee9b96fff03eb771d04a64b5d61e553834415bcf (patch)
treecf6bdd45267e409ac53a5c62d07cf4e22f1783a3 /src/usr/fapi2/test/fapi2HwAccessTest.H
parent84dd98b173bf22441cf665b182b33ad38638cffc (diff)
downloadtalos-hostboot-ee9b96fff03eb771d04a64b5d61e553834415bcf.tar.gz
talos-hostboot-ee9b96fff03eb771d04a64b5d61e553834415bcf.zip
Refactor plat_getScom and plat_putScom to use opMode param
Previously opMode had not been implemented to so we were not using it while making scom calls through the fapi2 hw access interface. Now that opMode is available the param is being added to the plat call. RTC:144505 Change-Id: If9ac3914082620309c73fb29e3a6074abc2cb89b Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26299 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/fapi2/test/fapi2HwAccessTest.H')
-rw-r--r--src/usr/fapi2/test/fapi2HwAccessTest.H17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/usr/fapi2/test/fapi2HwAccessTest.H b/src/usr/fapi2/test/fapi2HwAccessTest.H
index dc1d4ff08..8fc3e7499 100644
--- a/src/usr/fapi2/test/fapi2HwAccessTest.H
+++ b/src/usr/fapi2/test/fapi2HwAccessTest.H
@@ -182,6 +182,23 @@ void test_fapi2HwAccess()
// a false negative on the next case
}
+ numTests++;
+ uint8_t failed = 0;
+ FAPI_INVOKE_HWP(l_errl,
+ p9_opmodetest_ignorehwerr,
+ fapi2_procTarget,
+ failed );
+
+ if(l_errl || failed)
+ {
+ TS_FAIL("p9_opmodetest_ignorehwerr returned an error!!");
+ numFails++;
+ if(l_errl)
+ {
+ errlCommit(l_errl,FAPI2_COMP_ID);
+ }
+ }
+
#if 0 // TODO-RTC:151428 - need simics support for these to pass
numTests++;
OpenPOWER on IntegriCloud