Re: [linux-pm] Power Management framework proposal

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: david
Date: Sunday, July 29, 2007 - 2:56 pm

sorry for the delay in responding

On Wed, 25 Jul 2007, Jerome Glisse wrote:

yes I expect that it would be a large list in some conditions. but one 
purpose of this API is to make these options able to be discovered by 
software. right now nothing could be done at all without driver specific 
knowledge. even a lengthy list can be better then that.

presenting the list to the user directly is a last resort, only for 
experimentation or when nothing else wants to deal with devices of that 
type.

with a description field (which I didn't include initially, but seems 
obviously needed now) it should be fairly easy to create descriptions that 
let the software see that there are multiple factors involved.


if the driver supports overclocking then list it in the modes (nothing 
says that % capacity couldn't go over 100% for example)


if they power themselves down with no notice to the system they should 
power themselves back up with no need for the rest of the system to tell 
them either. so this ca either be ignored or presented as a mode between 
off and on that enables this behavior.


ahh, here we see a disconnect. I was not intending for the power field to 
be that exact. there are just too many variables. for example: even for a 
cpu, the power used isn't exactly tied to the clock speed and voltage, the 
mix of commands that the cpu is running will affect the power it eats, 
sometimes by a significant amount. it was intended to be an ordering 
factor and approximate the power used so that things could make a 
peroformance/power tradeoff with a good chance of makeing a reasonable 
choice.

it's not intended for 'make this laptop use 24w of power instead of 25w of 
power'


I'll have to look into what the ohm plugin does.....

ok, after a quick google search and reading the wiki, what I was proposing 
would potentially allow ohm to use it directly instead of having to go 
through HAL (there may still be a place for HAL, but some parts of it 
would get significantly simpler if the abstraction was available directly 
from the driver instead of haivng to teach a second piece of software all 
the nuances of the driver for it to then create an abstraction for the 
system to use)


no you don't want to use the same driver for both, however it would be 
very nice to have an interfact that would let yo load the driver for yout 
specialized DSP card and all the opensouce software would see it and be 
able to manipulate it rather then having to modify the HAL, create ohm 
plugins, etc (for how many programs?) before they can know that the card 
is there.

David Lang

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Power Management framework proposal, david, (Sat Jul 21, 11:49 pm)
Re: [linux-pm] Power Management framework proposal, Igor Stoppa, (Sun Jul 22, 12:57 am)
Re: [linux-pm] Power Management framework proposal, Igor Stoppa, (Sun Jul 22, 5:05 am)
Re: Power Management framework proposal, Arjan van de Ven, (Sun Jul 22, 10:26 am)
Re: Power Management framework proposal, david, (Sun Jul 22, 11:56 am)
Re: Power Management framework proposal, Arjan van de Ven, (Sun Jul 22, 3:27 pm)
Re: [linux-pm] Power Management framework proposal, Arjan van de Ven, (Sun Jul 22, 4:09 pm)
Re: [linux-pm] Power Management framework proposal, Arjan van de Ven, (Sun Jul 22, 8:50 pm)
Re: Power Management framework proposal, david, (Sun Jul 22, 8:51 pm)
Re: Power Management framework proposal, Arjan van de Ven, (Sun Jul 22, 9:00 pm)
Re: Power Management framework proposal, david, (Sun Jul 22, 9:09 pm)
Re: [linux-pm] Power Management framework proposal, Arjan van de Ven, (Sun Jul 22, 9:19 pm)
Re: [linux-pm] Power Management framework proposal, Ondrej Zajicek, (Mon Jul 23, 1:56 am)
Re: [linux-pm] Power Management framework proposal, Igor Stoppa, (Mon Jul 23, 3:48 am)
Re: [linux-pm] Power Management framework proposal, Arjan van de Ven, (Mon Jul 23, 7:12 am)
Re: Power Management framework proposal, Benjamin Herrenschmidt, (Mon Jul 23, 3:23 pm)
Re: [linux-pm] Power Management framework proposal, Jerome Glisse, (Tue Jul 24, 1:43 am)
Re: [linux-pm] Power Management framework proposal, Igor Stoppa, (Tue Jul 24, 7:18 am)
Re: Power Management framework proposal, david, (Tue Jul 24, 1:14 pm)
Re: Power Management framework proposal, Benjamin Herrenschmidt, (Tue Jul 24, 2:38 pm)
Re: Power Management framework proposal, david, (Tue Jul 24, 4:02 pm)
Re: [linux-pm] Power Management framework proposal, Jerome Glisse, (Tue Jul 24, 4:14 pm)
Re: Power Management framework proposal, Benjamin Herrenschmidt, (Tue Jul 24, 4:47 pm)
Re: [linux-pm] Power Management framework proposal, Jerome Glisse, (Wed Jul 25, 5:49 am)
Re: Power Management framework proposal, Pavel Machek, (Fri Jul 27, 4:46 am)
Re: [linux-pm] Power Management framework proposal, Pavel Machek, (Fri Jul 27, 5:04 am)
Re: [linux-pm] Power Management framework proposal, david, (Sun Jul 29, 2:56 pm)
Re: Power Management framework proposal, david, (Sun Jul 29, 3:00 pm)
Re: Power Management framework proposal, Matthew Garrett, (Sun Jul 29, 6:05 pm)