summaryrefslogtreecommitdiffstats
path: root/import
diff options
context:
space:
mode:
authorMartin Peschke <mpeschke@de.ibm.com>2016-07-01 12:00:27 +0200
committerMartin Peschke <mpeschke@de.ibm.com>2016-08-02 09:51:25 -0400
commit4a5baabd93e4e70793fcbb5b772631a9e4a65511 (patch)
tree26bf9ac5143204dcf98120994bbe93a5e5d62838 /import
parent4de3ba5db9e886a4b08ac2717483d741412b3922 (diff)
downloadtalos-sbe-4a5baabd93e4e70793fcbb5b772631a9e4a65511.tar.gz
talos-sbe-4a5baabd93e4e70793fcbb5b772631a9e4a65511.zip
p9_scan_compression: RS4v2 compression error return fix
Instead of calling exit() on errors and instead of terminating a calling binary, it's better to return a defined RS4 return code. This allows calling code to handle these errors, e.g. by dumping debug information. Change-Id: I49242b6fe880dc8f5adbc0951a1667b891c8cf22 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26528 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Claus M. Olsen <cmolsen@us.ibm.com> Reviewed-by: Martin Peschke <mpeschke@de.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27755
Diffstat (limited to 'import')
-rw-r--r--import/chips/p9/utils/imageProcs/p9_scan_compression.H8
1 files changed, 8 insertions, 0 deletions
diff --git a/import/chips/p9/utils/imageProcs/p9_scan_compression.H b/import/chips/p9/utils/imageProcs/p9_scan_compression.H
index 9aec8844..c4f1ce1f 100644
--- a/import/chips/p9/utils/imageProcs/p9_scan_compression.H
+++ b/import/chips/p9/utils/imageProcs/p9_scan_compression.H
@@ -362,6 +362,14 @@ rs4_redundant(const CompressedScanData* i_data, int* o_redundant);
/// string.
#define SCAN_COMPRESSION_BUFFER_OVERFLOW (uint8_t)4
+/// Inconsistent input data
+///
+/// 1 in data is masked by 0 in care mask
+#define SCAN_COMPRESSION_INPUT_ERROR 5
+
+/// Invalid transition in state machine
+#define SCAN_COMPRESSION_STATE_ERROR 6
+
/// @}
#endif // __P9_SCAN_COMPRESSION_H__
OpenPOWER on IntegriCloud