broadwell: misc updates for CPU driver
- Set PSI4 to 20A (value from ref code) - enable timed MWAIT BUG=chrome-os-partner:28234 BRANCH=None TEST=build and boot on samus Change-Id: Id40b08d9abd93a57d9a5445adfd661d72265029e Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/205161 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
802e9d3714
commit
ea1d403817
1 changed files with 2 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ static void initialize_vr_config(void)
|
|||
msr.hi &= 0xc0000000;
|
||||
msr.hi |= (0x01 << (52 - 32)); /* PSI3 threshold - 1A. */
|
||||
msr.hi |= (0x05 << (42 - 32)); /* PSI2 threshold - 5A. */
|
||||
msr.hi |= (0x0f << (32 - 32)); /* PSI1 threshold - 15A. */
|
||||
msr.hi |= (0x14 << (32 - 32)); /* PSI1 threshold - 20A. */
|
||||
msr.hi |= (1 << (62 - 32)); /* Enable PSI4 */
|
||||
/* Leave the max instantaneous current limit (12:0) to default. */
|
||||
wrmsr(MSR_VR_CURRENT_CONFIG, msr);
|
||||
|
|
@ -387,6 +387,7 @@ static void configure_c_states(void)
|
|||
msr_t msr;
|
||||
|
||||
msr = rdmsr(MSR_PMG_CST_CONFIG_CONTROL);
|
||||
msr.lo |= (1 << 31); // Timed MWAIT Enable
|
||||
msr.lo |= (1 << 30); // Package c-state Undemotion Enable
|
||||
msr.lo |= (1 << 29); // Package c-state Demotion Enable
|
||||
msr.lo |= (1 << 28); // C1 Auto Undemotion Enable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue