Skip to content

Commit

Permalink
Erepair HWP - Include target type DMI
Browse files Browse the repository at this point in the history
- Centaur/DMI codes made fapi2 compliant
- Refactored templated functions framework
- Removed 'using namespace' from header files

Change-Id: I690b24e5fdf9ff7413b128efb6f2fc4043bf739a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58065
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58067
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: William G. Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
sumitk56 authored and wghoffa committed May 16, 2018
1 parent b0a9477 commit 6855bca
Show file tree
Hide file tree
Showing 11 changed files with 4,248 additions and 3,131 deletions.
1,177 changes: 34 additions & 1,143 deletions src/import/chips/p9/procedures/hwp/io/p9_io_erepairAccessorHwpFuncs.C

Large diffs are not rendered by default.

1,126 changes: 1,056 additions & 70 deletions src/import/chips/p9/procedures/hwp/io/p9_io_erepairAccessorHwpFuncs.H

Large diffs are not rendered by default.

44 changes: 43 additions & 1 deletion src/import/chips/p9/procedures/hwp/io/p9_io_erepairConsts.H
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2017 */
/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -174,4 +174,46 @@ struct eRepairMemBus
uint32_t failBit : 24; // Bit stream value: Bit 0:Lane 0; Bit 1:Lane 1 ...
};

/**
* @brief This function combines the eRepair lane numbers read from
* Manufacturing VPD and Field VPD
*
* @param [in] i_mnfgFaillanes The eRepair lane numbers read from the
* Manufacturing VPD
* @param [in] i_fieldFaillanes The eRepair lane numbers read from the
* Field VPD
* @param [out] o_allFaillanes The eRepair lane numbers which is the union
* of the Field and Manufacturing eRepair lanes
* passed as first iand second params
*
* @return void
*/
void combineFieldandMnfgLanes(std::vector<uint8_t>& i_mnfgFaillanes,
std::vector<uint8_t>& i_fieldFaillanes,
std::vector<uint8_t>& o_allFailLanes);


/**
* @brief This function checks to see if the passed vectors have matching
* fail lane numbers. If no matching lane number is found, such lane
* value will be invalidated in the vector
*
* @param [in] io_endp1_txFaillanes Reference to vector which has fail
* lane numbers of Tx side
* @param [in] io_endp2_rxFaillanes Reference to vector which has fail
* lane numbers of Rx side
* @param [out] o_invalidFails_inTx_Ofendp1 If TRUE, indicates that Tx has fail
* lane numbers for which there is no
* matching entry on Rx side
* @param [out] o_invalidFails_inRx_Ofendp2 If TRUE, indicates that Tx has fail
* lane numbers for which there is no
* matching entry on Tx side
*
* @return void
*/
void invalidateNonMatchingFailLanes(std::vector<uint8_t>& io_endp1_txFaillanes,
std::vector<uint8_t>& io_endp2_rxFaillanes,
bool& o_invalidFails_inTx_Ofendp1,
bool& o_invalidFails_inRx_Ofendp2);

#endif

0 comments on commit 6855bca

Please sign in to comment.