Skip to content

Commit

Permalink
Enable DMI Erepair
Browse files Browse the repository at this point in the history
   - Call DMI Erepair HWP as part of IPL Flow

Change-Id: I606bffd3cf837aa9b4dd6dc704e34e131a7d0c0c
RTC: 179584
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/60595
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>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
wghoffa authored and dcrowell77 committed Jun 19, 2018
1 parent 0189e34 commit 112e8c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions src/usr/isteps/istep12/call_dmi_erepair.C
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 @@ -46,8 +46,7 @@
//HWP
#include <p9_io_dmi_restore_erepair.H>
#include <p9_io_cen_restore_erepair.H>

//#include <erepairAccessorHwpFuncs.H> TODO RTC 179584
#include <p9_io_erepairAccessorHwpFuncs.H>

using namespace ISTEP;
using namespace ISTEP_ERROR;
Expand All @@ -68,7 +67,7 @@ void* call_dmi_erepair (void *io_pArgs)
std::vector<uint8_t> l_endp1_rxFaillanes;
std::vector<uint8_t> l_endp2_txFaillanes;
std::vector<uint8_t> l_endp2_rxFaillanes;
uint32_t l_count = 0;
uint32_t l_count = 0;

TargetHandleList l_dmiTargetList;
TargetHandleList l_memTargetList;
Expand Down Expand Up @@ -116,12 +115,11 @@ void* call_dmi_erepair (void *io_pArgs)
l_endp2_txFaillanes.clear();
l_endp2_rxFaillanes.clear();

//TODO-RTC:179584 - Enable this section
#if 0
l_rc = erepairGetRestoreLanes(l_fapi_endp1_target,
l_fapi_endp2_target,
3, //DMI Is associated with clock group 3
l_endp1_txFaillanes,
l_endp1_rxFaillanes,
l_fapi_endp2_target,
l_endp2_txFaillanes,
l_endp2_rxFaillanes);

Expand All @@ -133,22 +131,20 @@ void* call_dmi_erepair (void *io_pArgs)
"target HUID %.8X", TARGETING::get_huid(l_mem_target));

// Convert fapi returnCode to Error handle
l_errPtr = fapiRcToErrl(l_rc);
l_errPtr = rcToErrl(l_rc);

// capture the target data in the elog
ErrlUserDetailsTarget(l_dmi_target).addToLog(l_errPtr);
ErrlUserDetailsTarget(l_mem_target).addToLog(l_errPtr);

// Create IStep error log and cross reference error that occurred
// Create IStep error log and cross reference error that occurred
l_StepError.addErrorDetails( l_errPtr);

// Commit Error
errlCommit(l_errPtr, HWPF_COMP_ID);
break;
}

#endif

if(l_endp1_txFaillanes.size() || l_endp1_rxFaillanes.size())
{
// call the p9_io_dmi_restore_erepair HWP to restore eRepair
Expand Down
2 changes: 1 addition & 1 deletion src/usr/isteps/istep12/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ include $(P9_IO_HWP_PATH)/p9_io_dmi_pdwn_lanes.mk
include $(CENT_IO_HWP_PATH)/p9_io_cen_pdwn_lanes.mk
include $(P9_IO_HWP_PATH)/p9_io_dmi_clear_firs.mk
include $(CENT_INITFILE_PATH)/centaur_dmi_scom.mk

include $(P9_IO_HWP_PATH)/p9_io_erepairAccessorHwpFuncs.mk

include ${ROOTPATH}/config.mk

0 comments on commit 112e8c9

Please sign in to comment.