[coreboot-gerrit] New patch to review for coreboot: skylake: Add target offset for throttling action
Sumeet R Pawnikar (sumeet.r.pawnikar@intel.com)
gerrit at coreboot.org
Thu Dec 15 16:18:06 CET 2016
Sumeet R Pawnikar (sumeet.r.pawnikar at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17889
-gerrit
commit bcd3adf980285f9e3a3ff0af73d631691cf8f7bc
Author: Sumeet Pawnikar <sumeet.r.pawnikar at intel.com>
Date: Thu Dec 15 19:29:51 2016 +0530
skylake: Add target offset for throttling action
This patch adds the target offset to 10 degree C
to adjust the thermal throttling action at prochot
activation temperature from the default temperature
target.
BUG=chrome-os-partner:59397
BRANCH=None.
TEST=Built for skylake platform and verified the target
offset value before and after S3.
Change-Id: Iacf64cbc40871bbec3bede65f196bf292e0149a6
Signed-off-by: Sumeet Pawnikar <sumeet.r.pawnikar at intel.com>
---
src/soc/intel/skylake/cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/soc/intel/skylake/cpu.c b/src/soc/intel/skylake/cpu.c
index 3ec8d2c..0458a93 100644
--- a/src/soc/intel/skylake/cpu.c
+++ b/src/soc/intel/skylake/cpu.c
@@ -206,6 +206,8 @@ static void configure_thermal_target(void)
wrmsr(MSR_TEMPERATURE_TARGET, msr);
}
msr = rdmsr(MSR_TEMPERATURE_TARGET);
+ msr.lo &= ~(0xf << 24); /* Bits 27:24 */
+ msr.lo |= 0xa << 24; /* set target offset as 10 degree C */
msr.lo &= ~0x7f; /* Bits 6:0 */
msr.lo |= 0xe6; /* setting 100ms thermal time window */
wrmsr(MSR_TEMPERATURE_TARGET, msr);
More information about the coreboot-gerrit
mailing list