diff options
| author | Dzuy Nguyen <dzuy@us.ibm.com> | 2017-05-12 11:06:40 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-06-06 09:37:19 -0400 |
| commit | 5033ee305e23c423d9f589c4e5265646d85ec964 (patch) | |
| tree | 5e626a67f56842451ed167ffc59af359726358f7 /src/include | |
| parent | 728c7744334fe34ecd7c4a8c51835527aa032ec5 (diff) | |
| download | blackbird-hostboot-5033ee305e23c423d9f589c4e5265646d85ec964.tar.gz blackbird-hostboot-5033ee305e23c423d9f589c4e5265646d85ec964.zip | |
Finalize SBE PSU FFDC collection - Set FFDC address in PSU
Change-Id: Ia2b1012cf2938f34cc6acdbb888b5a489aac98f6
RTC: 164405
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/40453
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Reviewed-by: Shakeeb A. Pasha B K <shakeebbk@in.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/usr/sbeio/sbe_psudd.H | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/include/usr/sbeio/sbe_psudd.H b/src/include/usr/sbeio/sbe_psudd.H index 96ff5ece3..13af7ab2f 100644 --- a/src/include/usr/sbeio/sbe_psudd.H +++ b/src/include/usr/sbeio/sbe_psudd.H @@ -36,6 +36,7 @@ #include <errl/errlentry.H> #include <util/singleton.H> +#include <map> namespace SBEIO { @@ -513,24 +514,16 @@ class SbePsu ~SbePsu(); - /** - * @brief populate the iv_ffdcPackageBuffer - * @param[in] i_data FFDC error data - * @param[in] i_len data buffer len to copy - */ - - void writeFFDCBuffer(void * i_data, uint8_t i_len); - private: //--------------------------------------------------------------------- // Local definitions for the device driver //--------------------------------------------------------------------- /** - * @brief Write FFDC package buffer - holds information exchanged - * between SBE and HB + * @brief Write FFDC package buffer - map of memory allocated + * for each target's FFDC package. Indexed by TARGETING */ - void * iv_ffdcPackageBuffer; + std::map<TARGETING::Target *, void *> iv_ffdcPackageBuffer; /** * @brief FFDC package needs to be 2 pages @@ -538,9 +531,16 @@ class SbePsu const uint8_t ffdcPackageSize = 2; /** - * @brief zero out the FFDC package buffer + * @brief allocate an ffdc buffer for the proc target + * @param[in] i_target proc to have ffdc buffer allocated + */ + errlHndl_t allocateFFDCBuffer(TARGETING::Target * i_target); + + /** + * @brief utility to find an allocated FFDC buffer + * @param[in] i_target proc to that had ffdc buffer allocated */ - void initFFDCPackageBuffer(); + void * findFFDCBufferByTarget(TARGETING::Target * i_target); /** * @brief Write request to PSU |

