Re: [PATCH] Albook fan driver

2004-01-23 Thread Colin Leroy
Interesting. Is our limit too low or is the fan unable to cool it down ? In the later case, we probably want to switch to low speed (at least) when we go over a first limit... Maybe. Yesterday's patch seems to work (with limit to 60°C), though... It sets the CPU limit to 60°C. Here's another

Re: [PATCH] Albook fan driver

2004-01-23 Thread Colin Leroy
Interesting enough, when I have my endless loops run longer the machine crashes. One time it crashed after about 10 minutes, one time after half an hour of full fan speed. the first time the heating rate was quite fast. The temperature reached 60°C and stayed there till the crash. The second

Re: [PATCH] Albook fan driver

2004-01-23 Thread Wolfram Quester
On Fri, Jan 23, 2004 at 09:06:21AM +0100, Colin Leroy wrote: Interesting. Is our limit too low or is the fan unable to cool it down ? In the later case, we probably want to switch to low speed (at least) when we go over a first limit... Maybe. Yesterday's patch seems to work (with limit

Re: [PATCH] Albook fan driver

2004-01-23 Thread Marco Giordani
On Fri, Jan 23, 2004 at 02:25:14PM +0100, Colin Leroy wrote: Do you mean it did crash with the last patch (or not?) ? No crash for me with latest patch but, as I said, under macosx fan starts around 62 degrees. Maybe 50° is too low: it's the temperature of my cpu under normal usage (765MHz and

Re: [PATCH] Albook fan driver

2004-01-23 Thread Marco Giordani
On Fri, Jan 23, 2004 at 01:21:07PM +1100, Benjamin Herrenschmidt wrote: it down ? In the later case, we probably want to switch to low speed (at least) when we go over a first limit... I think the reducing of the cpu clock have to be done only on emergencies: when the temperature is over an

Re: [PATCH] Albook fan driver

2004-01-23 Thread Wolfram Quester
Do you mean it did crash with the last patch (or not?) ? Yup! If yes, I'll put the limits quite high on the chip (Say 65°C), and start the fan as it is now (Slow at 50, fast at 58). That ist what I'd suggest though I don't understand the underlying mechanism. Wolfi

Re: [PATCH] Albook fan driver

2004-01-23 Thread Benjamin Herrenschmidt
Interesting enough, when I have my endless loops run longer the machine crashes. One time it crashed after about 10 minutes, one time after half an hour of full fan speed. the first time the heating rate was quite fast. The temperature reached 60°C and stayed there till the crash. The

Re: [PATCH] Albook fan driver

2004-01-23 Thread Marco Giordani
On Fri, Jan 23, 2004 at 02:24:02PM +0100, Wolfram Quester wrote: (6700), reaching 59°C switches to 8700. If the cpu cools down again the fan switches to 6700 at 55°C and of at 48°C. My /sys/devices/temperatures/fan_speed never reaches so high values. The upper bound seems to be 2800. What's

Re: [PATCH] Albook fan driver

2004-01-23 Thread Colin Leroy
My /sys/devices/temperatures/fan_speed never reaches so high values. The upper bound seems to be 2800. What's the difference? the powerbook model perhaps. Try to set limit_decrease=10 fan_speed=255 to see the maximum... Anyway i'm not sure this indicates properly RPM speed, I did quickly the

Re: [PATCH] Albook fan driver

2004-01-23 Thread Marco Giordani
On Fri, Jan 23, 2004 at 05:21:43PM +0100, Colin Leroy wrote: the powerbook model perhaps. Try to set limit_decrease=10 fan_speed=255 to see the maximum... Ok. On my Albook 15 1.25GHz: fan_speed=128 returns 2070 fan_speed=255 returns 2800 Bye, Marco -- Marco Giordani [EMAIL PROTECTED] -

Re: [PATCH] Albook fan driver

2004-01-23 Thread Marco Giordani
On Fri, Jan 23, 2004 at 10:12:57PM +0100, Wolfram Quester wrote: BTW, Marco how did you get the cpu temperure underr MacOSX. This sounds like a stupid question, I know, but since I use it that rarely... This is the first software that I have found: (Google helped me ;-)

Re: [PATCH] Albook fan driver

2004-01-23 Thread Wolfram Quester
Hi, On Sat, Jan 24, 2004 at 02:07:25AM +1100, Benjamin Herrenschmidt wrote: Interesting enough, when I have my endless loops run longer the machine crashes. One time it crashed after about 10 minutes, one time after half an hour of full fan speed. the first time the heating rate was

Re: [PATCH] Albook fan driver

2004-01-23 Thread Wolfram Quester
Hi, On Fri, Jan 23, 2004 at 05:45:09PM +0100, Marco Giordani wrote: On Fri, Jan 23, 2004 at 05:21:43PM +0100, Colin Leroy wrote: the powerbook model perhaps. Try to set limit_decrease=10 fan_speed=255 to see the maximum... Ok. On my Albook 15 1.25GHz: fan_speed=128 returns 2070

Re: [PATCH] Albook fan driver

2004-01-22 Thread Colin Leroy
Hi, Unfortunately I still have the same problem: with fan powered on continuously for about 4 minutes the computer powers off Can you send the contents of /sys/devices/temperatures/cpu_temperature /sys/devices/temperatures/cpu_limit /sys/devices/temperatures/gpu_temperature

Re: [PATCH] Albook fan driver

2004-01-22 Thread Colin Leroy
Hi, After cooling under 47 centigrade, the fan switches off again. But if I try to create higher cpu-load using something like while (true); do for i in cpu_limit cpu_temperature fan_speed; do cat $i; echo; done; done the machine switches off when cpu_temperature reaches 56 centigrades.

Re: [PATCH] Albook fan driver

2004-01-22 Thread Colin Leroy
while (true); do for i in cpu_limit cpu_temperature fan_speed; \ do cat $i; echo; done; done By the way. This hammers on the chip, you should add a sleep 1 to your inner loop. -- Colin Ne disez pas disez, mais disez dites

Re: [PATCH] Albook fan driver

2004-01-22 Thread Marco Giordani
Hi, On Thu, Jan 22, 2004 at 08:47:43AM +0100, Colin Leroy wrote: Can you send the contents of /sys/devices/temperatures/cpu_temperature /sys/devices/temperatures/cpu_limit /sys/devices/temperatures/gpu_temperature /sys/devices/temperatures/gpu_limit Now:

Re: [PATCH] Albook fan driver

2004-01-22 Thread Colin Leroy
These are the 2 last saved states when it powers off cpu: temperature: 55°C limit: 50°C gpu: temperature: 54°C limit: 70°C ok, thanks. Does it happen when you specify fan_speed=XXX ? (try 128) Specifying fan speed puts the fan control under manual mode, maybe it could prevent the chip from

Re: [PATCH] Albook fan driver

2004-01-22 Thread Wolfram Quester
Hi, On Thu, Jan 22, 2004 at 09:24:56AM +0100, Colin Leroy wrote: Hi, After cooling under 47 centigrade, the fan switches off again. But if I try to create higher cpu-load using something like while (true); do for i in cpu_limit cpu_temperature fan_speed; do cat $i; echo; done; done

Re: [PATCH] Albook fan driver

2004-01-22 Thread Marco Giordani
On Thu, Jan 22, 2004 at 09:24:56AM +0100, Colin Leroy wrote: If you have MacOSX installed and if it is possible to read temperatures values in this OS, you can also check at which temperature the fan starts. Under MacOSX the fan seems to start slowly arount 62 degrees. Maybe MacOSX changes the

Re: [latest PATCH] Albook fan driver

2004-01-22 Thread Wolfram Quester
On Thu, Jan 22, 2004 at 01:55:19PM +0100, Colin Leroy wrote: I did that and it worked. The stress test this time was the above loop with your chip-friendly extension and a while (true); do echo; done in another terminal. The fan startet at 60 centigrades: And the parameter you gave changes

Re: [PATCH] Albook fan driver

2004-01-22 Thread Benjamin Herrenschmidt
yes, unfortunately, it powers off the powerbook anyway. Last state: gpu: temperature: 57°C limit: 70°C cpu: temperature: 57°C limit: 50°C Interesting. Is our limit too low or is the fan unable to cool it

[PATCH] Albook fan driver

2004-01-21 Thread Colin Leroy
Hi people, could the ones here with Albooks and an ADT7460 chip for the fans try this patch and tell whether it works fine or not ? to test: . apply the patch against latest BenH's tree . define CONFIG_THERM_IBOOKG4 to m (select module in Drivers/Macintosh/Support for thermal management on iBook

Re: [PATCH] Albook fan driver

2004-01-21 Thread Guido Guenther
On Wed, Jan 21, 2004 at 02:29:50PM +0100, Colin Leroy wrote: could the ones here with Albooks and an ADT7460 chip for the fans try this patch and tell whether it works fine or not ? These are the newer USB 2.0 albooks, right? My 12 has: /proc/device-tree/[EMAIL PROTECTED]/[EMAIL

Re: [PATCH] Albook fan driver

2004-01-21 Thread Colin Leroy
[EMAIL PROTECTED] To: Colin Leroy [EMAIL PROTECTED] Cc: debian-powerpc@lists.debian.org Sent: Wednesday, January 21, 2004 3:48 PM Subject: Re: [PATCH] Albook fan driver

Re: [PATCH] Albook fan driver

2004-01-21 Thread Marco Giordani
On Wed, Jan 21, 2004 at 02:29:50PM +0100, Colin Leroy wrote: could the ones here with Albooks and an ADT7460 chip for the fans try this patch and tell whether it works fine or not ? It seems that it doesn't apply to latest (rsynced 1 minute ago) BenH's kernel tree. Do you have any suggestion?

Re: [PATCH] Albook fan driver

2004-01-21 Thread Guido Guenther
On Wed, Jan 21, 2004 at 04:13:56PM +0100, Colin Leroy wrote: If you want, you can take a look at http://www.analog.com/UploadedFiles/Data_Sheets/878926113ADM1030_a.pdf Got this already, that's why I'm asking. I'd like to make sure I don't work on something somebody else already works on.

Re: [PATCH] Albook fan driver

2004-01-21 Thread Colin Leroy
could the ones here with Albooks and an ADT7460 chip for the fans try this patch and tell whether it works fine or not ? updated patch (i messed up two registers) here. -- Colin Ne disez pas disez, mais disez dites pbook_fan.patch Description: Binary data

Re: [PATCH] Albook fan driver

2004-01-21 Thread Colin Leroy
Ok, now it seems to work but after 2 or 3 minutes with the fan powered on (limit_decrease=10) my powerbook power off without any reason. I don't think this could be a driver problem but it happened to me twice in my tests. Maybe this is due to an error from me - I swapped two registers

Re: [PATCH] Albook fan driver

2004-01-21 Thread Wolfram Quester
Hi, On Wed, Jan 21, 2004 at 05:41:41PM +0100, Colin Leroy wrote: could the ones here with Albooks and an ADT7460 chip for the fans try this patch and tell whether it works fine or not ? updated patch (i messed up two registers) here. I tried to apply your patch, but it fails with

Re: [PATCH] Albook fan driver

2004-01-21 Thread Marco Giordani
On Wed, Jan 21, 2004 at 05:51:57PM +0100, Colin Leroy wrote: Can you try the second one I sent ? Thanks. Unfortunately I still have the same problem: with fan powered on continuously for about 4 minutes the computer powers off Any other hint? TIA, Marco -- Marco Giordani [EMAIL PROTECTED]

Re: [PATCH] Albook fan driver

2004-01-21 Thread Marco Giordani
On Wed, Jan 21, 2004 at 07:39:47PM +0100, Wolfram Quester wrote: glancing through your patch and the file I couldn't see the reason. Can you give me a hint? It seems that the rsync mirror isn't up-to-date. As suggested to me by Colin you can apply these changes:

Re: [PATCH] Albook fan driver

2004-01-21 Thread Wolfram Quester
Hi Colin! On Wed, Jan 21, 2004 at 05:41:41PM +0100, Colin Leroy wrote: could the ones here with Albooks and an ADT7460 chip for the fans try this patch and tell whether it works fine or not ? updated patch (i messed up two registers) here. -- As I told you in my last email, your