summaryrefslogtreecommitdiffstats
path: root/src/include/usr/hwpf/hwp
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2014-01-29 10:10:21 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-02-06 17:32:23 -0600
commit78db12452b19b1ff6416c71c6eefddc49419bfcf (patch)
tree693293b2d8d7385c4ab583e06b40c5a2e035861d /src/include/usr/hwpf/hwp
parent6d500aef5e2d8b9017495f7c9abe23d2feac9516 (diff)
downloadtalos-hostboot-78db12452b19b1ff6416c71c6eefddc49419bfcf.tar.gz
talos-hostboot-78db12452b19b1ff6416c71c6eefddc49419bfcf.zip
Istep error PLID should match EID of the first real error
Change-Id: Ibfe0a2b2b3b27955bcc65dd593ca1a7fc6c2d76a RTC: 94663 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8424 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: WILLIAM G. HOFFA <wghoffa@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/hwpf/hwp')
-rw-r--r--src/include/usr/hwpf/hwp/hwpisteperror.H33
1 files changed, 13 insertions, 20 deletions
diff --git a/src/include/usr/hwpf/hwp/hwpisteperror.H b/src/include/usr/hwpf/hwp/hwpisteperror.H
index b0f47e26c..d5734d4fc 100644
--- a/src/include/usr/hwpf/hwp/hwpisteperror.H
+++ b/src/include/usr/hwpf/hwp/hwpisteperror.H
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* COPYRIGHT International Business Machines Corp. 2012,2014 */
/* */
/* p1 */
/* */
@@ -28,8 +28,7 @@
* Defines the following classes:
*
* IStepError: Handles creation of a top level error to incidate that a
- * particular ISTEP has failed, all hwp error plids are added
- * to the top level error.
+ * particular ISTEP has failed
*/
#include <errl/errlentry.H>
@@ -41,20 +40,18 @@ namespace ISTEP_ERROR
/**
* @class IStepError
*
- * Inteface to the a top level error log returned to the ISTEP dispatcher
- * when an individual step fails due to an error in a hardware procedure.
+ * Contains a top-level IStep failed error log.
*
- * The class may be used to aggregate the errors returned from procedures
- * which may have been run in parallel. The top level error log will
- * indicate the failed step and the module in which the error was created.
- * Callers should note that only the addErrorDetails call should be used
- * within a thread.
- *
- * NOTE: This class returns an allocated error log object which needs to
- * deleted by the reciever.
- * users must call getErrorHandle() to recieve the pointer which can
- * be deleted.
+ * Isteps can perform operations on multiple components regardless of errors
+ * in order to initilize as much hardware as possible. Each IStep creates an
+ * IstepError object and for each sub-error, the addErrorDetails() function
+ * is called before the caller commits the sub-error. At the end of an
+ * IStep, the getErrorHandle() function is called to return the top-level
+ * istep error (if any) to the IStep Dispatcher.
*
+ * The top-level IStep error and all sub-errors have the same PLID (matching
+ * the EID of the first sub-error) so that the IStep error is linked to all
+ * errors that caused the IStep failure.
*/
class IStepError
{
@@ -87,10 +84,6 @@ namespace ISTEP_ERROR
* @brief Adds selected error details from the passed in
* error to the top level istep error log object
*
- * The expected usage for this object is to agrigate
- * errors which may have been generated by hardware
- * procedures which are run in parallel.
- *
* The first call will initialize the internal object
* pointer allocating a new errl object as needed.
* The iStep and subStep is retrieved from the
@@ -113,7 +106,7 @@ namespace ISTEP_ERROR
* log object.
*
* Note: Caller must delete the errlHndl_t after use.
- * This funciton is not thread safe
+ * This function is not thread safe
*
* @return iv_eHandle - error handle of top level ISTEP error to
* be returned to the ISTEP dispatcher.
OpenPOWER on IntegriCloud