diff options
author | Matthew Raybuck <matthew.raybuck@ibm.com> | 2019-03-27 12:59:30 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-03-29 14:54:25 -0500 |
commit | 8684bd3d5656797931b455ff6aae7d2be3b12eed (patch) | |
tree | 1c6fc7067f140f6f3d26e76582bd0a59daa238b9 /src/include/usr | |
parent | 0d9e3f2cde9173ae224e726e340d42355d33dfb2 (diff) | |
download | talos-hostboot-8684bd3d5656797931b455ff6aae7d2be3b12eed.tar.gz talos-hostboot-8684bd3d5656797931b455ff6aae7d2be3b12eed.zip |
Add retry loop to UCD deviceOps
The UCD requirements say that if a device operation fails to attempt a
total of three times before giving up. This commit adds that
functionality. Each deviceOp is attempted three times with the addition
of the attemptDeviceOp function.
Change-Id: I03874f66465960c672026fb42a8719e6b6aad7ec
RTC:205982
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75109
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Michael Baiocchi <mbaiocch@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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/ucd/ucd_reasoncodes.H | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/usr/ucd/ucd_reasoncodes.H b/src/include/usr/ucd/ucd_reasoncodes.H index 50b959902..a3627df0f 100644 --- a/src/include/usr/ucd/ucd_reasoncodes.H +++ b/src/include/usr/ucd/ucd_reasoncodes.H @@ -36,6 +36,7 @@ namespace UCD_RC MOD_UPDATE_ALL_UCD_FLASH_IMAGES = 0x02, MOD_UPDATE_UCD_FLASH_IMAGE = 0x03, MOD_VERIFY_UPDATE = 0x04, + MOD_PERFORM_DEVICE_OP = 0x05, }; enum UcdReasonCode @@ -51,6 +52,7 @@ namespace UCD_RC UCD_INVALID_COMMANDLINE = UCD_COMP_ID | 0x09, UCD_ERROR_STORING_TO_FLASH = UCD_COMP_ID | 0x0A, UCD_TIMEDOUT_STORING_TO_FLASH = UCD_COMP_ID | 0x0B, + UCD_INVALID_DEVICE_OP = UCD_COMP_ID | 0x0C, }; }; // namespace UCD |