summaryrefslogtreecommitdiffstats
path: root/src/usr/fapi2/test/fapi2HwAccessTest.H
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2016-06-17 14:59:41 -0500
committerBill Hoffa <wghoffa@us.ibm.com>2016-06-30 13:14:03 -0500
commit9350dc03d0801592f4e988f24474eb9109223829 (patch)
tree193b17ee80765b662e265d84b5b7602fd59a15ec /src/usr/fapi2/test/fapi2HwAccessTest.H
parent1ab0fb9ee0d02aba250b7fbfe38ca64ce1a63d3f (diff)
downloadtalos-hostboot-9350dc03d0801592f4e988f24474eb9109223829.tar.gz
talos-hostboot-9350dc03d0801592f4e988f24474eb9109223829.zip
Add getOpMode and setOpMode functions to fapi2 namespace
This commit adds functions to get and set the opMode for the current thread. Opmode is to have specific reaction to events triggered by different operations such as scoms or attribute reads. These reactions include things like ignoring all errors, or specific ones. RTC:144505 Change-Id: Ieb5e6b9e1cce9ae548c6ac20314751e9b1ebcd05 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26011 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <v2cibmd@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@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.H12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/usr/fapi2/test/fapi2HwAccessTest.H b/src/usr/fapi2/test/fapi2HwAccessTest.H
index 55c90d66e..dc1d4ff08 100644
--- a/src/usr/fapi2/test/fapi2HwAccessTest.H
+++ b/src/usr/fapi2/test/fapi2HwAccessTest.H
@@ -171,6 +171,18 @@ void test_fapi2HwAccess()
numFails++;
}
+
+ numTests++;
+ FAPI_INVOKE_HWP(l_errl, p9_opmodetest_getsetopmode);
+ if(l_errl)
+ {
+ TS_FAIL("p9_opmodetest_getsetopmode !!");
+ numFails++;
+ delete l_errl; // delete unexpected error log so we dont get
+ // a false negative on the next case
+ }
+
+
#if 0 // TODO-RTC:151428 - need simics support for these to pass
numTests++;
FAPI_INVOKE_HWP(l_errl, p9_ringtest_modring_fail, fapi2_procTarget);
OpenPOWER on IntegriCloud