* [PATCH] powermac: thermal control turns system off in normal temperature conditions
@ 2009-08-30 18:54 Bartlomiej Zolnierkiewicz
2009-08-30 21:22 ` Benjamin Herrenschmidt
2009-08-31 9:25 ` Linux User #330250
0 siblings, 2 replies; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-08-30 18:54 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, linux-kernel, Lyonel Vincent
=46rom: Lyonel Vincent <lyonel@ezix.org>
Subject: [PATCH] powermac: thermal control turns system off in normal tempe=
rature conditions
On certain PowerMacs, a module (therm_windtunnel) controls various
thermal settings (it can report CPU/case temperature, change speed
of internal fans, etc.)
By default, the hardware thermal control has a temperature limit to
protect the computer from damages (the default limit seems to be 80=B0C)
but therm_windtunnel.c reduces it to an anormaly low value (65=B0C),
which means that he computer will shut down randomly when hit by direct
sun light or during summer (summer in France can be quite hot), actually
possibly losing data instead of protecting it.
The overheat limit in therm_windtunnel.c:253-254 should be set to 75=B0C
and 70=B0C instead of 65=B0C and 60=B0C respectively.
=46rom: Lyonel Vincent <lyonel@ezix.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
=2D--
Resurrected from Fedora's bugzilla (aka The Big Black Hole):
https://bugzilla.redhat.com/show_bug.cgi?id=3D171937
The patch itself seems perfectly valid to me
(especially given comments in therm_windtunnel.c).
drivers/macintosh/therm_windtunnel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: b/drivers/macintosh/therm_windtunnel.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=2D-- a/drivers/macintosh/therm_windtunnel.c
+++ b/drivers/macintosh/therm_windtunnel.c
@@ -239,8 +239,8 @@ setup_hardware( void )
* to be on the safe side (OSX doesn't)...
*/
if( x.overheat_temp =3D=3D (80 << 8) ) {
=2D x.overheat_temp =3D 65 << 8;
=2D x.overheat_hyst =3D 60 << 8;
+ x.overheat_temp =3D 75 << 8;
+ x.overheat_hyst =3D 70 << 8;
write_reg( x.thermostat, 2, x.overheat_hyst, 2 );
write_reg( x.thermostat, 3, x.overheat_temp, 2 );
=20
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] powermac: thermal control turns system off in normal temperature conditions
2009-08-30 18:54 [PATCH] powermac: thermal control turns system off in normal temperature conditions Bartlomiej Zolnierkiewicz
@ 2009-08-30 21:22 ` Benjamin Herrenschmidt
2009-08-31 9:25 ` Linux User #330250
1 sibling, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2009-08-30 21:22 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linuxppc-dev, linux-kernel, Lyonel Vincent
On Sun, 2009-08-30 at 20:54 +0200, Bartlomiej Zolnierkiewicz wrote:
> From: Lyonel Vincent <lyonel@ezix.org>
> Subject: [PATCH] powermac: thermal control turns system off in normal temperature conditions
>
> On certain PowerMacs, a module (therm_windtunnel) controls various
> thermal settings (it can report CPU/case temperature, change speed
> of internal fans, etc.)
>
> By default, the hardware thermal control has a temperature limit to
> protect the computer from damages (the default limit seems to be 80°C)
> but therm_windtunnel.c reduces it to an anormaly low value (65°C),
> which means that he computer will shut down randomly when hit by direct
> sun light or during summer (summer in France can be quite hot), actually
> possibly losing data instead of protecting it.
>
> The overheat limit in therm_windtunnel.c:253-254 should be set to 75°C
> and 70°C instead of 65°C and 60°C respectively.
Looks reasonable, thanks.
Ben.
> From: Lyonel Vincent <lyonel@ezix.org>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> ---
> Resurrected from Fedora's bugzilla (aka The Big Black Hole):
> https://bugzilla.redhat.com/show_bug.cgi?id=171937
>
> The patch itself seems perfectly valid to me
> (especially given comments in therm_windtunnel.c).
>
> drivers/macintosh/therm_windtunnel.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: b/drivers/macintosh/therm_windtunnel.c
> ===================================================================
> --- a/drivers/macintosh/therm_windtunnel.c
> +++ b/drivers/macintosh/therm_windtunnel.c
> @@ -239,8 +239,8 @@ setup_hardware( void )
> * to be on the safe side (OSX doesn't)...
> */
> if( x.overheat_temp == (80 << 8) ) {
> - x.overheat_temp = 65 << 8;
> - x.overheat_hyst = 60 << 8;
> + x.overheat_temp = 75 << 8;
> + x.overheat_hyst = 70 << 8;
> write_reg( x.thermostat, 2, x.overheat_hyst, 2 );
> write_reg( x.thermostat, 3, x.overheat_temp, 2 );
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] powermac: thermal control turns system off in normal temperature conditions
2009-08-30 18:54 [PATCH] powermac: thermal control turns system off in normal temperature conditions Bartlomiej Zolnierkiewicz
2009-08-30 21:22 ` Benjamin Herrenschmidt
@ 2009-08-31 9:25 ` Linux User #330250
2009-08-31 9:32 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 4+ messages in thread
From: Linux User #330250 @ 2009-08-31 9:25 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Bartlomiej Zolnierkiewicz
Hello!
=46irst: I'm just a user. And I hope I don't cause disturbance.
I've read about this when I was setting up Linux on my Power Mac G4 MDD abo=
ut=20
two years ago and I remember reading that the temperature might be reported=
=20
falsely. The original author reduced the limits to be on the safe side.
While Mac OS X seems to push the allowed temperature more to the limits, it=
=20
could still be fatal to trust the reported temperatures.
My machine had the same shut-downs due to temperature at first. Since my MD=
D=20
was quite a few years old when I got it I cleaned the CPUs and used new=20
thermal compound with the original heatsink. This fixed the "overheat" issu=
e=20
for me.
Sorry to interrupt,
Andreas aka Linux User #330250
=2D--------- Original message ----------
Subject: [PATCH] powermac: thermal control turns system off in normal=20
temperature conditions
Date: Sonntag, 30. August 2009N
=46rom: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> From: Lyonel Vincent <lyonel@ezix.org>
> Subject: [PATCH] powermac: thermal control turns system off in normal
> temperature conditions
>
> On certain PowerMacs, a module (therm_windtunnel) controls various
> thermal settings (it can report CPU/case temperature, change speed
> of internal fans, etc.)
>
> By default, the hardware thermal control has a temperature limit to
> protect the computer from damages (the default limit seems to be 80=B0C)
> but therm_windtunnel.c reduces it to an anormaly low value (65=B0C),
> which means that he computer will shut down randomly when hit by direct
> sun light or during summer (summer in France can be quite hot), actually
> possibly losing data instead of protecting it.
>
> The overheat limit in therm_windtunnel.c:253-254 should be set to 75=B0C
> and 70=B0C instead of 65=B0C and 60=B0C respectively.
>
> From: Lyonel Vincent <lyonel@ezix.org>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> ---
> Resurrected from Fedora's bugzilla (aka The Big Black Hole):
> https://bugzilla.redhat.com/show_bug.cgi?id=3D171937
>
> The patch itself seems perfectly valid to me
> (especially given comments in therm_windtunnel.c).
>
> drivers/macintosh/therm_windtunnel.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: b/drivers/macintosh/therm_windtunnel.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- a/drivers/macintosh/therm_windtunnel.c
> +++ b/drivers/macintosh/therm_windtunnel.c
> @@ -239,8 +239,8 @@ setup_hardware( void )
> * to be on the safe side (OSX doesn't)...
> */
> if( x.overheat_temp =3D=3D (80 << 8) ) {
> - x.overheat_temp =3D 65 << 8;
> - x.overheat_hyst =3D 60 << 8;
> + x.overheat_temp =3D 75 << 8;
> + x.overheat_hyst =3D 70 << 8;
> write_reg( x.thermostat, 2, x.overheat_hyst, 2 );
> write_reg( x.thermostat, 3, x.overheat_temp, 2 );
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] powermac: thermal control turns system off in normal temperature conditions
2009-08-31 9:25 ` Linux User #330250
@ 2009-08-31 9:32 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2009-08-31 9:32 UTC (permalink / raw)
To: Linux User #330250; +Cc: linuxppc-dev, Bartlomiej Zolnierkiewicz
On Mon, 2009-08-31 at 11:25 +0200, Linux User #330250 wrote:
> Hello!
>
> First: I'm just a user. And I hope I don't cause disturbance.
>
> I've read about this when I was setting up Linux on my Power Mac G4 MDD about
> two years ago and I remember reading that the temperature might be reported
> falsely. The original author reduced the limits to be on the safe side.
>
> While Mac OS X seems to push the allowed temperature more to the limits, it
> could still be fatal to trust the reported temperatures.
>
>
> My machine had the same shut-downs due to temperature at first. Since my MDD
> was quite a few years old when I got it I cleaned the CPUs and used new
> thermal compound with the original heatsink. This fixed the "overheat" issue
> for me.
Thanks. I think pushing them a bit like this patch does still remains
within reasonably safe limits though. The CPU should cope with more
hopefully :-)
But yeah, cleaning up the dust is definitely a good idea :-)
Cheers,
Ben.
>
> Sorry to interrupt,
> Andreas aka Linux User #330250
>
>
>
> ---------- Original message ----------
> Subject: [PATCH] powermac: thermal control turns system off in normal
> temperature conditions
> Date: Sonntag, 30. August 2009N
> From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>
> > From: Lyonel Vincent <lyonel@ezix.org>
> > Subject: [PATCH] powermac: thermal control turns system off in normal
> > temperature conditions
> >
> > On certain PowerMacs, a module (therm_windtunnel) controls various
> > thermal settings (it can report CPU/case temperature, change speed
> > of internal fans, etc.)
> >
> > By default, the hardware thermal control has a temperature limit to
> > protect the computer from damages (the default limit seems to be 80°C)
> > but therm_windtunnel.c reduces it to an anormaly low value (65°C),
> > which means that he computer will shut down randomly when hit by direct
> > sun light or during summer (summer in France can be quite hot), actually
> > possibly losing data instead of protecting it.
> >
> > The overheat limit in therm_windtunnel.c:253-254 should be set to 75°C
> > and 70°C instead of 65°C and 60°C respectively.
> >
> > From: Lyonel Vincent <lyonel@ezix.org>
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> > ---
> > Resurrected from Fedora's bugzilla (aka The Big Black Hole):
> > https://bugzilla.redhat.com/show_bug.cgi?id=171937
> >
> > The patch itself seems perfectly valid to me
> > (especially given comments in therm_windtunnel.c).
> >
> > drivers/macintosh/therm_windtunnel.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > Index: b/drivers/macintosh/therm_windtunnel.c
> > ===================================================================
> > --- a/drivers/macintosh/therm_windtunnel.c
> > +++ b/drivers/macintosh/therm_windtunnel.c
> > @@ -239,8 +239,8 @@ setup_hardware( void )
> > * to be on the safe side (OSX doesn't)...
> > */
> > if( x.overheat_temp == (80 << 8) ) {
> > - x.overheat_temp = 65 << 8;
> > - x.overheat_hyst = 60 << 8;
> > + x.overheat_temp = 75 << 8;
> > + x.overheat_hyst = 70 << 8;
> > write_reg( x.thermostat, 2, x.overheat_hyst, 2 );
> > write_reg( x.thermostat, 3, x.overheat_temp, 2 );
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-31 9:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-30 18:54 [PATCH] powermac: thermal control turns system off in normal temperature conditions Bartlomiej Zolnierkiewicz
2009-08-30 21:22 ` Benjamin Herrenschmidt
2009-08-31 9:25 ` Linux User #330250
2009-08-31 9:32 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).