Skip to content

Commit

Permalink
PRD: Enable erepair vpd access procedures
Browse files Browse the repository at this point in the history
Change-Id: I8c9296f889ed9967dceabebe412b47dfb4b7a17e
RTC: 174013
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48397
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: Caleb N. Palmer <cnpalmer@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com>
  • Loading branch information
bweisenb authored and zane131 committed Nov 30, 2017
1 parent 98e5554 commit 34813cc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
3 changes: 3 additions & 0 deletions src/usr/diag/prdf/common/plat/p9/prdfLaneRepair.C
Expand Up @@ -175,6 +175,9 @@ int32_t handleLaneRepairEvent( ExtensibleChip * i_chip,
{
for (uint8_t i=0; i<clkGrps; ++i)
{
if (rx_lanes[i].size() == 0)
continue;

// Call Erepair to update VPD
l_rc = setVpdFailedLanesXbus(rxBusTgt, txBusTgt,
rx_lanes[i], thrExceeded, i);
Expand Down
29 changes: 14 additions & 15 deletions src/usr/diag/prdf/common/plat/prdfPlatServices_common.C
Expand Up @@ -48,7 +48,7 @@
#include <p9_io_xbus_read_erepair.H>
#include <p9_io_xbus_pdwn_lanes.H>
#include <p9_io_xbus_clear_firs.H>
//#include <erepairAccessorHwpFuncs.H> TODO RTC 174013
#include <p9_io_erepairAccessorHwpFuncs.H>
#include <config.h>
#endif

Expand Down Expand Up @@ -191,13 +191,12 @@ int32_t getVpdFailedLanesXbus(TargetHandle_t i_rxBusTgt,

fapi2::Target<fapi2::TARGET_TYPE_XBUS> fapiTrgt (i_rxBusTgt);

// TODO RTC 174013
// FAPI_INVOKE_HWP(err,
// erepairGetFailedLanes,
// fapiTrgt,
// o_txFailLanes,
// o_rxFailLanes,
// i_clkGrp);
FAPI_INVOKE_HWP(err,
erepairGetFailedLanes,
fapiTrgt,
i_clkGrp,
o_txFailLanes,
o_rxFailLanes);

if(nullptr != err)
{
Expand Down Expand Up @@ -233,13 +232,13 @@ int32_t setVpdFailedLanesXbus(TargetHandle_t i_rxBusTgt,
fapi2::Target<fapi2::TARGET_TYPE_XBUS> fapiRxTrgt (i_rxBusTgt);
fapi2::Target<fapi2::TARGET_TYPE_XBUS> fapiTxTrgt (i_rxBusTgt);

// TODO RTC 174013
// FAPI_INVOKE_HWP(err,
// erepairSetFailedLanes,
// fapiTxTrgt,
// fapiRxTrgt,
// i_rxFailLanes,
// o_thrExceeded);
FAPI_INVOKE_HWP(err,
erepairSetFailedLanes,
fapiTxTrgt,
fapiRxTrgt,
i_clkGrp,
i_rxFailLanes,
o_thrExceeded);

if(nullptr != err)
{
Expand Down
3 changes: 3 additions & 0 deletions src/usr/diag/prdf/prdf_hb_only.mk
Expand Up @@ -157,6 +157,9 @@ CLEAN_TARGETS += ${MFG_THRES_PATH}
# Hardware procedure files needed for both IPL and RT
################################################################################
prd_vpath += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/io/
prd_obj_no_sim += p9_io_erepairAccessorHwpFuncs.o
prd_obj_no_sim += p9_io_erepairGetFailedLanesHwp.o
prd_obj_no_sim += p9_io_erepairSetFailedLanesHwp.o
prd_obj_no_sim += p9_io_xbus_read_erepair.o
prd_vpath += ${ROOTPATH}/src/import/chips/p9/procedures/hwp/perv/
prd_obj_no_sim += p9_proc_gettracearray.o
Expand Down

0 comments on commit 34813cc

Please sign in to comment.