From ea1d403817ee193648f2c119fd45894e32e57e97 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Sat, 21 Jun 2014 14:57:48 +0800 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/205161 Reviewed-by: Aaron Durbin --- src/soc/intel/broadwell/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/broadwell/cpu.c b/src/soc/intel/broadwell/cpu.c index 9d5afeca79..58f81fc79d 100644 --- a/src/soc/intel/broadwell/cpu.c +++ b/src/soc/intel/broadwell/cpu.c @@ -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