From f9c2d375c343febd0346900f3c8d2d016e2ec09a Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 19 Jul 2012 21:27:15 +0000 Subject: link: update fan policy As per James advice : - increase fan speed at low temperature up to maximum "silent RPM", this will give us more margin for later operations. - lower the maximum fan RPM threshold to 86 C to try to lower CPU temperature impact on skin temp. - do not take into account "object" temp sensors, they are too random at the moment. Signed-off-by: Vincent Palatin BUG=None TEST=adhoc Change-Id: I3b60570e33f82e4015c6588d9e2ae538a33ad14f Reviewed-on: https://gerrit.chromium.org/gerrit/27921 Reviewed-by: Sameer Nanda Tested-by: Vincent Palatin Commit-Ready: Vincent Palatin --- common/thermal.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'common/thermal.c') diff --git a/common/thermal.c b/common/thermal.c index 7d2640a1ad..344279c0b3 100644 --- a/common/thermal.c +++ b/common/thermal.c @@ -29,18 +29,20 @@ extern const struct temp_sensor_t temp_sensors[TEMP_SENSOR_COUNT]; static struct thermal_config_t thermal_config[TEMP_SENSOR_TYPE_COUNT] = { /* TEMP_SENSOR_TYPE_CPU */ {THERMAL_CONFIG_WARNING_ON_FAIL, - {368, 373, 383, 328, 338, 348, 358, 368}}, + {368, 373, 383, 327, 335, 343, 351, 359} } , /* TEMP_SENSOR_TYPE_BOARD */ {THERMAL_CONFIG_NO_FLAG, {THERMAL_THRESHOLD_DISABLE_ALL}}, /* TEMP_SENSOR_TYPE_CASE */ {THERMAL_CONFIG_NO_FLAG, {341, THERMAL_THRESHOLD_DISABLE, 353, - 318, 323, 328, 333, 338}}, + THERMAL_THRESHOLD_DISABLE, THERMAL_THRESHOLD_DISABLE, + THERMAL_THRESHOLD_DISABLE, THERMAL_THRESHOLD_DISABLE, + THERMAL_THRESHOLD_DISABLE} }, }; /* Fan speed settings. */ -/* Max RPM is about 11000. Setting each step to be 20% of the max RPM. */ -static const int fan_speed[THERMAL_FAN_STEPS + 1] = {0, 2200, 4400, 6600, - 8800, -1}; +/* Real max RPM is about 9300. */ +static const int fan_speed[THERMAL_FAN_STEPS + 1] = {0, 3000, 4575, 6150, + 7725, -1}; /* Number of consecutive overheated events for each temperature sensor. */ static int8_t ot_count[TEMP_SENSOR_COUNT][THRESHOLD_COUNT + THERMAL_FAN_STEPS]; -- cgit v1.2.1