summaryrefslogtreecommitdiffstats
path: root/src/usr/sbeio/sbe_fifodd.H
diff options
context:
space:
mode:
authorDonald Washburn <dwashbur@us.ibm.com>2017-07-17 10:42:31 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-08-04 09:53:29 -0400
commit69b38d2b257691fb31347ef0ab1ffab9f74d8ab7 (patch)
tree8eccdf31f23fbde982483a95ded019fdc4971e4a /src/usr/sbeio/sbe_fifodd.H
parent45b70ed84ad53ad79f2e7929523665d20d94509b (diff)
downloadtalos-hostboot-69b38d2b257691fb31347ef0ab1ffab9f74d8ab7.tar.gz
talos-hostboot-69b38d2b257691fb31347ef0ab1ffab9f74d8ab7.zip
Added parser for scom FFDC data and a SBE messaging buffer class.
The FFDC data from an SBE Scom read/write needed to be parsed and used to invoke PIB::addFruCallouts during both FIFO and PSU operations. During task research it was discovered that the error code path for reading FIFO request responses had several errors. These errors related to manipulating a duel buffer system. Fixed these errors and encapsulated the duel buffer handling in order to facilitate unit testing. * Created FFDC parsing classes FfdcParsedPackage and FfdcScomPibErrorPackage in order to validate and process FFDC data based upon the return code contained within the FFDC. * Created the SbeFifoRespBuffer class for encapsulating the handling for the duel buffers used in the fifo readResponse method. * Modified the SbeFifo::readResponse method to use the SbeFifoRespBuffer class for messaging and the new FFDC parsing classes for handling PIB addFruCallouts. * Modified the SbePsu::readResponse method to use the FFDC parser classes to invoke PIB::addFruCallouts. * Added Unit Tests for SbeFifoRespBuffer, FfdcParsedPackage and FfdcScomPibErrorPackage. Change-Id: I195fa036dfa6a0d66d9a3dc15aeb8b0f01cf798c RTC: 175891 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43212 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Dzuy Nguyen <dzuy@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbeio/sbe_fifodd.H')
-rw-r--r--src/usr/sbeio/sbe_fifodd.H2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/sbeio/sbe_fifodd.H b/src/usr/sbeio/sbe_fifodd.H
index dd23e3c54..121d68c63 100644
--- a/src/usr/sbeio/sbe_fifodd.H
+++ b/src/usr/sbeio/sbe_fifodd.H
@@ -282,7 +282,7 @@ class SbeFifo
* @param[in] i_len data buffer len to copy
*/
- void writeFFDCBuffer(void * i_data, uint32_t i_len);
+ void writeFFDCBuffer(const void * i_data, uint32_t i_len);
private:
OpenPOWER on IntegriCloud