Re: 2.6.22-rc1-mm1 Implementing fan/thermal control in userspace - Was: [cannot change thermal trip points]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matthew Garrett
Date: Thursday, May 24, 2007 - 7:36 am

On Thu, May 24, 2007 at 04:16:53PM +0200, Thomas Renninger wrote:


Because, as Len has pointed out, you end up with two different ideas 
about what the trip points are - the kernel's and the hardware's. That 
works fine until some event in the firmware either forcibly 
resynchronises the two or makes assumptions about the spec-compliance of 
the interpreter.


You don't know whether the workaround will work or not until you've 
performed a full audit of the platform firmware, which is going to 
potentially change between BIOS versions. It's entirely legal for the 
firmware to behave in this way, and even beneficial under various 
circumstances.


The interface would need to be more complicated than that if you wanted 
to be able to implement hysteresis, and there's the potential for 
hardware damage if paramaters are set inappropriately. Even then, 
there's no easy way of programatically determining whether it would work 
on any given hardware.


It's fairly clearly not impossible, given that there exists at least one 
OS that these machines work with.

-- 
Matthew Garrett | mjg59@srcf.ucam.org
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.22-rc1-mm1, Andrew Morton, (Tue May 15, 8:19 pm)
Re: 2.6.22-rc1-mm1, KAMEZAWA Hiroyuki, (Tue May 15, 11:06 pm)
Re: 2.6.22-rc1-mm1 - s390 vs. md, Cornelia Huck, (Wed May 16, 12:57 am)
Re: 2.6.22-rc1-mm1, Jeff Garzik, (Wed May 16, 12:58 am)
Re: 2.6.22-rc1-mm1, Andrew Morton, (Wed May 16, 1:04 am)
Re: 2.6.22-rc1-mm1, Andy Whitcroft, (Wed May 16, 3:18 am)
Re: (NFS) BUG: at page-writeback.c:829 [Was: 2.6.22-rc1-mm1], Trond Myklebust, (Wed May 16, 5:52 am)
Re: (NFS) BUG: at page-writeback.c:829 [Was: 2.6.22-rc1-mm1], Trond Myklebust, (Wed May 16, 6:00 am)
Re: 2.6.22-rc1-mm1, Michal Piotrowski, (Wed May 16, 7:30 am)
Re: 2.6.22-rc1-mm1, Nick Piggin, (Wed May 16, 7:37 am)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Wed May 16, 8:16 am)
Re: 2.6.22-rc1-mm1, Jeff Garzik, (Wed May 16, 8:33 am)
Re: 2.6.22-rc1-mm1, Gabriel C, (Wed May 16, 8:34 am)
Re: 2.6.22-rc1-mm1, Michal Piotrowski, (Wed May 16, 9:24 am)
Re: 2.6.22-rc1-mm1, Andrew Morton, (Wed May 16, 9:41 am)
Re: 2.6.22-rc1-mm1, Randy Dunlap, (Wed May 16, 9:50 am)
Re: 2.6.22-rc1-mm1, Randy Dunlap, (Wed May 16, 9:54 am)
Re: 2.6.22-rc1-mm1, Richard Purdie, (Wed May 16, 10:00 am)
Re: 2.6.22-rc1-mm1, Andrew Morton, (Wed May 16, 10:06 am)
RE: 2.6.22-rc1-mm1 - s390 vs. md, Williams, Dan J, (Wed May 16, 10:21 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Maciej Rutecki, (Wed May 16, 10:37 am)
Re: 2.6.22-rc1-mm1, Mel Gorman, (Wed May 16, 10:40 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Chuck Ebbert, (Wed May 16, 10:47 am)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Wed May 16, 10:55 am)
Re: 2.6.22-rc1-mm1, Andrew Morton, (Wed May 16, 11:00 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Goulven Guillard, (Wed May 16, 11:10 am)
Re: 2.6.22-rc1-mm1, Andy Whitcroft, (Wed May 16, 11:18 am)
2.6.22-rc1-mm1: IDE compile error, Adrian Bunk, (Wed May 16, 11:55 am)
Re: 2.6.22-rc1-mm1, Richard Purdie, (Wed May 16, 12:55 pm)
Re: 2.6.22-rc1-mm1, Richard Purdie, (Wed May 16, 1:00 pm)
Re: 2.6.22-rc1-mm1, Darrick J. Wong, (Wed May 16, 1:24 pm)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Wed May 16, 4:32 pm)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Wed May 16, 4:36 pm)
Re: 2.6.22-rc1-mm1, David Chinner, (Wed May 16, 7:06 pm)
Re: 2.6.22-rc1-mm1, Bharata B Rao, (Wed May 16, 9:16 pm)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, Christoph Hellwig, (Thu May 17, 1:41 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Thu May 17, 2:23 am)
Re: 2.6.22-rc1-mm1, Mel Gorman, (Thu May 17, 2:35 am)
Re: 2.6.22-rc1-mm1 - Call trace in slub_def.h, Reuben Farrelly, (Thu May 17, 5:38 am)
Re: 2.6.22-rc1-mm1 - Call trace in slub_def.h, Satyam Sharma, (Thu May 17, 5:52 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Maciej Rutecki, (Thu May 17, 6:36 am)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, Michal Piotrowski, (Thu May 17, 1:05 pm)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Maciej Rutecki, (Thu May 17, 1:09 pm)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Maciej Rutecki, (Thu May 17, 1:42 pm)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Thu May 17, 2:52 pm)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Thu May 17, 2:53 pm)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, David Chinner, (Thu May 17, 7:11 pm)
Re: 2.6.22-rc1-mm1, young dave, (Fri May 18, 1:54 am)
Re: 2.6.22-rc1-mm1, young dave, (Fri May 18, 3:07 am)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Fri May 18, 9:54 am)
Re: 2.6.22-rc1-mm1, Mel Gorman, (Fri May 18, 9:59 am)
Re: 2.6.22-rc1-mm1, Edward Shishkin, (Fri May 18, 10:34 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Thomas Renninger, (Sat May 19, 12:56 pm)
Re: 2.6.22-rc1-mm1, Mariusz Kozlowski, (Sun May 20, 3:12 am)
Re: 2.6.22-rc1-mm1, Sam Ravnborg, (Sun May 20, 3:21 am)
Re: 2.6.22-rc1-mm1, Kumar Gala, (Sun May 20, 8:33 am)
Re: 2.6.22-rc1-mm1, young dave, (Sun May 20, 5:53 pm)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Sun May 20, 9:49 pm)
Re: 2.6.22-rc1-mm1, young dave, (Sun May 20, 10:00 pm)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Sun May 20, 10:03 pm)
Re: 2.6.22-rc1-mm1, young dave, (Sun May 20, 10:39 pm)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, David Chinner, (Mon May 21, 3:11 am)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, Christoph Hellwig, (Mon May 21, 3:23 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Thomas Renninger, (Mon May 21, 4:31 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Mon May 21, 5:10 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Mon May 21, 5:11 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Matthew Garrett, (Mon May 21, 6:27 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Mon May 21, 6:29 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Matthew Garrett, (Mon May 21, 6:36 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Mon May 21, 6:40 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Matthew Garrett, (Mon May 21, 6:45 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Mon May 21, 3:42 pm)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Matthew Garrett, (Mon May 21, 5:31 pm)
Re: 2.6.22-rc1-mm1: evm BUG when reading sysfs file, Joseph Fannin, (Tue May 22, 12:25 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Tue May 22, 2:06 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Matthew Garrett, (Tue May 22, 2:16 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Goulven Guillard, (Tue May 22, 2:28 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Maciej Rutecki, (Tue May 22, 3:05 am)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, David Chinner, (Tue May 22, 3:44 am)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, Christoph Hellwig, (Tue May 22, 4:42 am)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, Michal Piotrowski, (Tue May 22, 7:45 am)
Re: 2.6.22-rc1-mm1: evm BUG when reading sysfs file, Andrew Morton, (Tue May 22, 2:23 pm)
Re: [xfs-masters] Re: 2.6.22-rc1-mm1, Nathan Scott, (Tue May 22, 4:23 pm)
Re: 2.6.22-rc1-mm1: IDE compile error, Bartlomiej Zolnierki ..., (Wed May 23, 4:45 pm)
Re: 2.6.22-rc1-mm1: IDE compile error, Alan Cox, (Thu May 24, 3:55 am)
Re: 2.6.22-rc1-mm1 Implementing fan/thermal control in use ..., Matthew Garrett, (Thu May 24, 7:36 am)
Re: 2.6.22-rc1-mm1 Implementing fan/thermal control in use ..., Thomas Renninger, (Thu May 24, 11:18 am)
Re: 2.6.22-rc1-mm1: IDE compile error, H. Peter Anvin, (Thu May 24, 11:53 am)
Re: 2.6.22-rc1-mm1: IDE compile error, H. Peter Anvin, (Thu May 24, 5:05 pm)
Re: 2.6.22-rc1-mm1: IDE compile error, Alan Cox, (Thu May 24, 5:14 pm)
Re: 2.6.22-rc1-mm1: IDE compile error, H. Peter Anvin, (Thu May 24, 5:18 pm)
Re: 2.6.22-rc1-mm1: IDE compile error, Alan Cox, (Thu May 24, 5:38 pm)
Re: 2.6.22-rc1-mm1: IDE compile error, H. Peter Anvin, (Thu May 24, 5:51 pm)
Re: 2.6.22-rc1-mm1: IDE compile error, Alan Cox, (Fri May 25, 7:19 am)
Re: 2.6.22-rc1-mm1: evm BUG when reading sysfs file, Mimi Zohar, (Fri May 25, 2:05 pm)
Re: 2.6.22-rc1-mm1, Andy Whitcroft, (Tue May 29, 3:34 pm)
Re: 2.6.22-rc1-mm1, Andy Whitcroft, (Fri Jun 1, 2:50 am)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Fri Jun 1, 4:12 pm)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Stefan Seyfried, (Mon Jun 4, 2:02 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Stefan Seyfried, (Mon Jun 4, 2:13 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Mon Jun 4, 4:06 am)
Re: 2.6.22-rc1-mm1 [cannot change thermal trip points], Pavel Machek, (Mon Jun 4, 4:16 am)
Re: 2.6.22-rc1-mm1, Andy Whitcroft, (Tue Jun 5, 11:38 am)
Re: 2.6.22-rc1-mm1, H. Peter Anvin, (Tue Jun 5, 3:57 pm)
Re: 2.6.22-rc1-mm1, Andy Whitcroft, (Thu Jun 7, 2:49 am)
Re: 2.6.22-rc1-mm1, Andy Whitcroft, (Mon Jun 11, 6:58 am)