* RE: thermal zone causing insta-reboot on bootup of 2.6.3
@ 2004-03-11 7:10 Yu, Luming
[not found] ` <3ACA40606221794F80A5670F0AF15F8401CBB747-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Yu, Luming @ 2004-03-11 7:10 UTC (permalink / raw)
To: Brown, Len, Oisín Mac Fhearaí; +Cc: ACPI Developers
The following patch is from Pavel, and maybe it is suitable for this case. --Luming
--- clean/drivers/acpi/thermal.c 2004-02-05 01:54:00.000000000 +0100
+++ linux/drivers/acpi/thermal.c 2004-02-05 02:24:15.000000000 +0100
@@ -223,8 +223,11 @@
tz->last_temperature = tz->temperature;
status = acpi_evaluate_integer(tz->handle, "_TMP", NULL, &tz->temperature);
- if (ACPI_FAILURE(status))
+ if (ACPI_FAILURE(status)) {
+ if (tz->temperature != tz->last_temperature)
+ printk(KERN_ERR "temperature damaged while processing\n");
return -ENODEV;
+ }
ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Temperature is %lu dK\n", tz->temperature));
@@ -457,7 +460,17 @@
return_VALUE(-EINVAL);
if (tz->temperature >= tz->trips.critical.temperature) {
+ long old_temperature = tz->temperature;
ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Critical trip point\n"));
+
+ result = acpi_thermal_get_temperature(tz);
+ if (!result) {
+ if (tz->temperature < (tz->trips.critical.temperature - 100)) {
+ printk(KERN_ALERT "ACPI changed its mind about temperature, was %ld C, now %ld C",
+ KELVIN_TO_CELSIUS(old_temperature), KELVIN_TO_CELSIUS(tz->temperature));
+ return_VALUE(0);
+ }
+ }
tz->trips.critical.flags.enabled = 1;
}
else if (tz->trips.critical.flags.enabled)
> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
> Brown, Len
> Sent: Thursday, March 11, 2004 3:02 PM
> To: Oisín Mac Fhearaí
> Cc: ACPI Developers
> Subject: Re: [ACPI] thermal zone causing insta-reboot on
> bootup of 2.6.3
>
>
> if you delete the thermal module, this failure will go away
> (and so will our ability to debug it;-)
>
> perhaps you can file a bug at bugzilla.kernel.org
> category: ACPI
> component: Power-Thermal
>
> and attach the output from dmesg -s40000 with thermal installed.
>
> clearly we're getting a bogus temperature reading.
>
> thanks,
> -Len
>
> On Wed, 2004-03-10 at 19:37, Oisín Mac Fhearaí wrote:
> > After installing the 2.6.3 kernel on Mandrake 9.2 on an Acer Aspire
> > 1705SMi laptop, my machine repeatedly prints "Critical temperature
> > reached (255 C), shutting down." and reboots.
> > Installing the 20040220 patch to it seems to have made no difference
> > (and added no options that I could see to "make menuconfig"
> - in fact
> > it removed the options for relaxed something under the ACPI options
> > page, which wasn't doing anything anyway)...
> >
> > Can anyone advise? I'm quite inexperienced with linux, so I might be
> > doing something stupid (also, I'm having trouble finding which boot
> > messages are kept in which logfiles...).
> > I'm too scared by the "might damage your CPU" message to remove
> > thermal zone from the kernel ACPI settings.
> >
> > Oisín
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=ick
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
^ permalink raw reply [flat|nested] 5+ messages in thread* thermal zone causing insta-reboot on bootup of 2.6.3
@ 2004-03-11 0:37 Oisín Mac Fhearaí
[not found] ` <002c01c40701$11116190$7ce9fea9-UdiLdEXzXlE@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Oisín Mac Fhearaí @ 2004-03-11 0:37 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
[-- Attachment #1: Type: text/plain, Size: 732 bytes --]
After installing the 2.6.3 kernel on Mandrake 9.2 on an Acer Aspire 1705SMi laptop, my machine repeatedly prints "Critical temperature reached (255 C), shutting down." and reboots.
Installing the 20040220 patch to it seems to have made no difference (and added no options that I could see to "make menuconfig" - in fact it removed the options for relaxed something under the ACPI options page, which wasn't doing anything anyway)...
Can anyone advise? I'm quite inexperienced with linux, so I might be doing something stupid (also, I'm having trouble finding which boot messages are kept in which logfiles...).
I'm too scared by the "might damage your CPU" message to remove thermal zone from the kernel ACPI settings.
Oisín
[-- Attachment #2: Type: text/html, Size: 1358 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-17 22:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-11 7:10 thermal zone causing insta-reboot on bootup of 2.6.3 Yu, Luming
[not found] ` <3ACA40606221794F80A5670F0AF15F8401CBB747-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-03-17 22:53 ` Pavel Machek
-- strict thread matches above, loose matches on Subject: below --
2004-03-11 0:37 Oisín Mac Fhearaí
[not found] ` <002c01c40701$11116190$7ce9fea9-UdiLdEXzXlE@public.gmane.org>
2004-03-11 7:01 ` Len Brown
2004-03-17 22:54 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox