summaryrefslogtreecommitdiffstats
path: root/src/include/usr/sbe
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2017-01-06 13:55:20 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-01-23 23:29:43 -0500
commitc50f586098a5208764c5cbee9b88f23a51d16f07 (patch)
treedf2d2cc4e36295344b2c1ab6cfe4d0e19b09a56d /src/include/usr/sbe
parent44eaa7b67e29cbca5b79e60c491ebdfcb624d787 (diff)
downloadtalos-hostboot-c50f586098a5208764c5cbee9b88f23a51d16f07.tar.gz
talos-hostboot-c50f586098a5208764c5cbee9b88f23a51d16f07.zip
Enforce single-threaded rule for Hardware Procedures
Because we aren't using read thread-local storage for the FAPI variables (opmode, piberrmask, current_err) we need to ensure that we never have multiple HWPs running at the same time. The external interface that we use in all cases is FAPI_INVOKE_HWP so that is where a mutex is placed. This change also uncovered a couple bugs in how we were executing some non-fapi HWPs in the SBE update code so I fixed those as well. Change-Id: Ie8817da62dd4e6bc9ed3ac2debf126f6d05c2b23 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/34518 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr/sbe')
-rw-r--r--src/include/usr/sbe/sbereasoncodes.H5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/usr/sbe/sbereasoncodes.H b/src/include/usr/sbe/sbereasoncodes.H
index d8e9dc161..8126060e4 100644
--- a/src/include/usr/sbe/sbereasoncodes.H
+++ b/src/include/usr/sbe/sbereasoncodes.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2016 */
+/* Contributors Listed Below - COPYRIGHT 2013,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -61,6 +61,7 @@ enum sbeModuleId
SBE_WRITE_SBE_IMAGE = 0x10,
SBE_GET_SBE_IMAGE_SIZE = 0x11,
HBBL_FIND_IN_PNOR = 0x12,
+ SBE_APPEND_HBBL = 0x13,
};
/**
@@ -101,6 +102,8 @@ enum sbeReasonCode
SBE_IMAGE_GET_SET_SCALAR_FAIL = SBE_COMP_ID | 0x16,
HBBL_END_DATA_NOT_FOUND = SBE_COMP_ID | 0x17,
+ ERROR_FROM_XIP_DELETE = SBE_COMP_ID | 0x18,
+ ERROR_FROM_XIP_FIND = SBE_COMP_ID | 0x19,
};
OpenPOWER on IntegriCloud