Skip to content

Commit

Permalink
PGPE: Fixes and Cleanup for Mfg/Char team
Browse files Browse the repository at this point in the history
    -Gen. correct number of entries in OCC Pstate table
    -Correctly correct aux thread period
    -Fill VDM fields in Pstate table

    Key_Cronus_Test=PM_REGRESS

Change-Id: Ib9cbb945f225037c204c6bae9d339927d57c2a6b
Original-Change-Id: I0f11b35ec5d6b3667e253f683325b559a93801af
CQ: SW436423
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/62773
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
  • Loading branch information
rbatraAustinIBM authored and op-jenkins committed Jul 25, 2018
1 parent 76bab2b commit 663f776
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
/* COPYRIGHT 2016,2017 */
/* COPYRIGHT 2016,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -37,4 +37,22 @@ uint32_t p9_pgpe_gppb_intp_vdd_from_ps(Pstate ps, uint8_t vpd_pt_set);
//Interpolate Pstate from Voltage(only for biased and system parameters VPD point)
uint8_t p9_pgpe_gppb_intp_ps_from_ext_vdd(uint16_t ext_vdd);

// Interpolate vdm vid compare from pstate.
//
// Note: This function is hardcoded to use biased with system parameters applied
// VPD points because currently interpolating pstate from vdd is only needed
// for biased with system parameter applied VPD point
//
// ps - Pstate from which to interpolate voltage
//
// retval - VDM VID Compare value
uint32_t p9_pgpe_gppb_vdm_vid_cmp_from_ps(Pstate ps);

// Calculate vdm thresholds for a pstate.
//
// Pstate - Pstate for which to calculate VDM thresholds
//
// retval - VDM Threshold(VDM_OVERVOLT:VDM_DROOP_SMALL:VDM_DROOP_LARGE:VDM_DROOP_XTREME]
uint16_t p9_pgpe_gppb_vdm_threshold_from_ps(uint32_t pstate);

#endif //_P9_PGPE_GPPB_H_
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ PSTATE_COMMONFLAGS+= -DPK_TRACE_SUPPORT=1
PSTATE_COMMONFLAGS+= -DUSE_PK_APP_CFG_H=1
PSTATE_COMMONFLAGS+= -D__PPE_PLAT
PSTATE_COMMONFLAGS+= -D__PK__=1
PSTATE_COMMONFLAGS+= -DPK_TRACE_SZ=1024
PSTATE_COMMONFLAGS+= -DPK_TRACE_SZ=512
PSTATE_COMMONFLAGS+= -DPSTATE_GPE


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $(IMAGE)_COMMONFLAGS+= -DUSE_PK_APP_CFG_H=1
$(IMAGE)_COMMONFLAGS+= -D__PPE_PLAT
$(IMAGE)_COMMONFLAGS+= -D__PK__=1
#$(IMAGE)_COMMONFLAGS+= -fstack-usage
$(IMAGE)_COMMONFLAGS+= -DPK_TRACE_SZ=1024
$(IMAGE)_COMMONFLAGS+= -DPK_TRACE_SZ=512

# add include paths
$(call ADD_PPEIMAGE_INCDIR,$(IMAGE),\
Expand Down

0 comments on commit 663f776

Please sign in to comment.