diff options
author | Sumeet Pawnikar <sumeet.r.pawnikar@intel.com> | 2016-11-11 17:11:28 +0530 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-11-14 17:20:38 +0100 |
commit | 8b3004e2fc7af1aaef3645e30c7447af5f6846bd (patch) | |
tree | 557569c8cb317cd99a0465628e8b4e0bcbae30d8 /src/soc/intel/skylake | |
parent | 5b8c4a7bca87d8f015f9b500652a967e8257b19c (diff) | |
download | coreboot-8b3004e2fc7af1aaef3645e30c7447af5f6846bd.tar.xz |
skylake: Update the thermal time window for throttling action
This patch reduces the thermal time window to 100 milliseconds
for fast throttling action at prochot.
BUG=chrome-os-partner:59397
BRANCH=None.
TEST=Built for skylake platform and verified the thermal time
window value.
Change-Id: If79d213cb8e19277ffdb882267d2f8672df93446
Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar@intel.com>
Reviewed-on: https://review.coreboot.org/17384
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/skylake')
-rw-r--r-- | src/soc/intel/skylake/cpu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/cpu.c b/src/soc/intel/skylake/cpu.c index 83ec61d31c..3ec8d2c702 100644 --- a/src/soc/intel/skylake/cpu.c +++ b/src/soc/intel/skylake/cpu.c @@ -205,6 +205,10 @@ static void configure_thermal_target(void) msr.lo |= (conf->tcc_offset & 0xf) << 24; wrmsr(MSR_TEMPERATURE_TARGET, msr); } + msr = rdmsr(MSR_TEMPERATURE_TARGET); + msr.lo &= ~0x7f; /* Bits 6:0 */ + msr.lo |= 0xe6; /* setting 100ms thermal time window */ + wrmsr(MSR_TEMPERATURE_TARGET, msr); } static void configure_isst(void) |