Skip to content

Commit

Permalink
p9_pstate_parameter_block: Move to concise slope calculations
Browse files Browse the repository at this point in the history
- Use loops over the set point vs explicit implementation to reduce
  critical code implementations
- Move slopes to float based calculation and then translate to I.F form
- Update dump output a bit; still need to add VDM thresholds to this
- Fix VDM related slope calculations
- rebased
- Data type change from float to double in threshold slope calculation
- rebased

Change-Id: I3ca4dc4889c55afff31fcd814fa193cb66ca1ab4
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41405
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: BRIAN D. VICTOR <brian.d.victor1@ibm.com>
Reviewed-by: CHRISTOPHER M. RIEDL <cmriedl@us.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41406
Reviewed-by: Dean Sanner <dsanner@us.ibm.com>
Tested-by: Dean Sanner <dsanner@us.ibm.com>
  • Loading branch information
stillgs authored and sannerd committed Jul 13, 2017
1 parent ea4060f commit ca09235
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 431 deletions.
6 changes: 3 additions & 3 deletions src/import/chips/p9/procedures/hwp/lib/p9_pstates_cmeqm.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ typedef struct
CompareVIDPoints vid_point_set[NUM_OP_POINTS];

// Biased Threshold operation points
int8_t threshold_set[NUM_OP_POINTS][NUM_THRESHOLD_POINTS];
uint8_t threshold_set[NUM_OP_POINTS][NUM_THRESHOLD_POINTS];

//pstate-volt compare slopes
uint16_t PsVIDCompSlopes[VPD_NUM_SLOPES_REGION];
int16_t PsVIDCompSlopes[VPD_NUM_SLOPES_REGION];

//pstate-volt threshold slopes
uint16_t PsVDMThreshSlopes[VPD_NUM_SLOPES_REGION][NUM_THRESHOLD_POINTS];
int16_t PsVDMThreshSlopes[VPD_NUM_SLOPES_REGION][NUM_THRESHOLD_POINTS];

} LocalPstateParmBlock;

Expand Down

0 comments on commit ca09235

Please sign in to comment.