Skip to contentSkip to conversation

Thermal managment broken

PATCH Pavel Machek 3 participants 4 messages Sep 16, 2002 – Sep 18, 2002 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

Thermal managment forgets previous state, so it can never ever get to slower state than T1.

Second patch allows user to set trip points. This is neccessary on XE3 -- BIOS claims passive cooling at 83C and critical at 100C. Yet it powers down at ~85C. This allows user to override.

First is strict bugfix, please take. Second is needed, please take it, too.

Pavel

drivers/acpi/processor.c +3 -0
@@ -1468,6 +1468,9 @@
 	 * performance state.
 	 */
 
+	px = pr->limit.thermal.px;
+	tx = pr->limit.thermal.tx;
+
 	switch (type) {
 
 	case ACPI_PROCESSOR_LIMIT_NONE:
drivers/acpi/thermal.c +44 -2

71 lines not on this page · raw message

Signature · 8 lines
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#2 lore raw
In reply to a message not in the archive

Hi Pavel, Andrew, list;

Quoted 2 lines

First is strict bugfix, please take. Second is needed, please take it, too.

While I'd "vote" for the second patch "in general", there are two aspects which should be mentioned first:

drivers/acpi/thermal.c line 904

Quoted 5 lines
drivers/acpi/thermal.c +5 -0
+	tz->trips.critical.temperature = CELSIUS_TO_KELVIN(critical);
+	tz->trips.hot.temperature = CELSIUS_TO_KELVIN(hot);
+	tz->trips.passive.temperature = CELSIUS_TO_KELVIN(passive);
+	tz->trips.active[0].temperature = CELSIUS_TO_KELVIN(active0);
+	tz->trips.active[1].temperature = CELSIUS_TO_KELVIN(active1);

You explicitely want to support _two_ active trip points here. While this seems to be the amount of active trip points seen on most systems, I'd prefer you'd do a more flexible interface [zero to ACPI_THERMAL_MAX_ACTIVE would be best].

Additionally, it might be better to specify a "starting" and "stopping" trip point - so that you don't have a fan going on-off-on-off-on-off repeatedly. (IIRC someone complained about this a few months ago on this list). But even without this "feature", I'd like to see the user-specified trip points in the acpi patch.

Dominik

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

#4 lore raw
In reply to a message not in the archive

Hi!

Quoted 6 lines
Quoted 2 lines

First is strict bugfix, please take. Second is needed, please take it, too.

While I'd "vote" for the second patch "in general", there are two aspects which should be mentioned first:

Quoted 10 lines

drivers/acpi/thermal.c line 904

Quoted 5 lines
drivers/acpi/thermal.c +5 -0
+	tz->trips.critical.temperature = CELSIUS_TO_KELVIN(critical);
+	tz->trips.hot.temperature = CELSIUS_TO_KELVIN(hot);
+	tz->trips.passive.temperature = CELSIUS_TO_KELVIN(passive);
+	tz->trips.active[0].temperature = CELSIUS_TO_KELVIN(active0);
+	tz->trips.active[1].temperature = CELSIUS_TO_KELVIN(active1);

You explicitely want to support _two_ active trip points here. While this seems to be the amount of active trip points seen on most systems, I'd prefer you'd do a more flexible interface [zero to ACPI_THERMAL_MAX_ACTIVE would be best].

Okay.

[Andrew, do you want to take this one and then followup which adds many active points, or do you want whole new patch?]

Quoted 5 lines

Additionally, it might be better to specify a "starting" and "stopping" trip point - so that you don't have a fan going on-off-on-off-on-off repeatedly. (IIRC someone complained about this a few months ago on this list). But even without this "feature", I'd like to see the user-specified trip points in the acpi patch.

I believe this is orthogonal. You need to do two thresholds even without user help, so it needs to be solved some other way.

Pavel

Signature · 9 lines
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.


-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
#6 lore raw
In reply to a message not in the archive

Hi Pavel,

Quoted 8 lines · Pavel Machek
Quoted 5 lines

Additionally, it might be better to specify a "starting" and "stopping" trip point - so that you don't have a fan going on-off-on-off-on-off repeatedly. (IIRC someone complained about this a few months ago on this list). But even without this "feature", I'd like to see the user-specified trip points in the acpi patch.

I believe this is orthogonal. You need to do two thresholds even without user help, so it needs to be solved some other way.

IIRC, that's something the DSDT has to provide - the trip points should change (right in the DSDT) when the fan is turned on or off, respectively. Many DSDTs don't do this, and this is an annoyance, but except some basic "sanity checking" (for example, having a minimum fan-on period of x seconds), such a policy interface should either provide such a two-threshold policy itself (turn-off==user-value - 5°), or get direct user-input for it.

Dominik

-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab