All of lore.kernel.org
 help / color / mirror / Atom feed
* Using out of band messages to change min/max frequencies
@ 2012-03-14 17:36 Mark Langsdorf
  2012-03-16 18:26 ` Antti P Miettinen
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Langsdorf @ 2012-03-14 17:36 UTC (permalink / raw)
  To: cpufreq@vger.kernel.org

Does cpufreq currently support having an out-of-band agent
change the available minimum/maximum frequency and then
have the current frequency conform to the new values?

I experimented with a notifier routine (from an IPC
context) that used cpufreq_get_policy() and
cpufreq_update_policy(). I ran into two problems:
1) cpufreq_update_policy() would overwrite the
changes I made to the minimum/maximum settings
2) the driver->target call would be called within
the notifier context, and would explode when it
called its own notifiers.

driver->bios_limit doesn't seem like the right answer,
since it wouldn't be called if the current governor
has a static policy (ie performance, powersave).

Is there some better way to approach this? Ideally,
I'd like something like the ACPI _PPC concept, but
looking over that code I'm not sure it actually
limits the frequency correctly.

--Mark Langsdorf
Calxeda, Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using out of band messages to change min/max frequencies
  2012-03-14 17:36 Using out of band messages to change min/max frequencies Mark Langsdorf
@ 2012-03-16 18:26 ` Antti P Miettinen
  2012-03-16 20:56   ` Mark Langsdorf
  0 siblings, 1 reply; 5+ messages in thread
From: Antti P Miettinen @ 2012-03-16 18:26 UTC (permalink / raw)
  To: Mark Langsdorf; +Cc: cpufreq@vger.kernel.org

Mark Langsdorf <mark.langsdorf@calxeda.com> writes:
> Is there some better way to approach this?

PM QoS :-)

http://thread.gmane.org/gmane.linux.kernel.cpufreq/7794
http://thread.gmane.org/gmane.linux.kernel.cpufreq/7797

	--Antti

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using out of band messages to change min/max frequencies
  2012-03-16 18:26 ` Antti P Miettinen
@ 2012-03-16 20:56   ` Mark Langsdorf
  2012-03-18 14:34     ` Antti P Miettinen
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Langsdorf @ 2012-03-16 20:56 UTC (permalink / raw)
  To: Antti P Miettinen; +Cc: cpufreq@vger.kernel.org

On 03/16/2012 01:26 PM, Antti P Miettinen wrote:
> Mark Langsdorf <mark.langsdorf@calxeda.com> writes:
>> Is there some better way to approach this?
> 
> PM QoS :-)
> 
> http://thread.gmane.org/gmane.linux.kernel.cpufreq/7794
> http://thread.gmane.org/gmane.linux.kernel.cpufreq/7797

Thanks, that looks like it could be useful.

Is there a sample implementation of this in the context of
a cpufreq device driver?

--Mark Langsdorf
Calxeda, Inc.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using out of band messages to change min/max frequencies
  2012-03-16 20:56   ` Mark Langsdorf
@ 2012-03-18 14:34     ` Antti P Miettinen
  2012-03-20 14:32       ` Mark Langsdorf
  0 siblings, 1 reply; 5+ messages in thread
From: Antti P Miettinen @ 2012-03-18 14:34 UTC (permalink / raw)
  To: Mark Langsdorf; +Cc: cpufreq@vger.kernel.org

Mark Langsdorf <mark.langsdorf@calxeda.com> writes:
> On 03/16/2012 01:26 PM, Antti P Miettinen wrote:
>> Mark Langsdorf <mark.langsdorf@calxeda.com> writes:
>>> Is there some better way to approach this?
>> 
>> PM QoS :-)
>> 
>> http://thread.gmane.org/gmane.linux.kernel.cpufreq/7794
>> http://thread.gmane.org/gmane.linux.kernel.cpufreq/7797
>
> Thanks, that looks like it could be useful.
>
> Is there a sample implementation of this in the context of
> a cpufreq device driver?

Hmm.. controlling cpufreq core from cpufreq driver? Nope, this input
event booster is the only example I have:

http://thread.gmane.org/gmane.linux.kernel.cpufreq/7801

	--Antti

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Using out of band messages to change min/max frequencies
  2012-03-18 14:34     ` Antti P Miettinen
@ 2012-03-20 14:32       ` Mark Langsdorf
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Langsdorf @ 2012-03-20 14:32 UTC (permalink / raw)
  To: Antti P Miettinen; +Cc: cpufreq@vger.kernel.org

On 03/18/2012 09:34 AM, Antti P Miettinen wrote:
> Mark Langsdorf <mark.langsdorf@calxeda.com> writes:
>> On 03/16/2012 01:26 PM, Antti P Miettinen wrote:
>>> Mark Langsdorf <mark.langsdorf@calxeda.com> writes:
>>>> Is there some better way to approach this?
>>>
>>> PM QoS :-)
>>>
>>> http://thread.gmane.org/gmane.linux.kernel.cpufreq/7794
>>> http://thread.gmane.org/gmane.linux.kernel.cpufreq/7797
>>
>> Thanks, that looks like it could be useful.
>>
>> Is there a sample implementation of this in the context of
>> a cpufreq device driver?
> 
> Hmm.. controlling cpufreq core from cpufreq driver? Nope, this input
> event booster is the only example I have:
> 
> http://thread.gmane.org/gmane.linux.kernel.cpufreq/7801

Thanks. It wasn't exactly applicable, but it gave enough
hints that I got the QoS parts working for my driver.

--Mark Langsdorf
Calxeda, Inc.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-20 14:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 17:36 Using out of band messages to change min/max frequencies Mark Langsdorf
2012-03-16 18:26 ` Antti P Miettinen
2012-03-16 20:56   ` Mark Langsdorf
2012-03-18 14:34     ` Antti P Miettinen
2012-03-20 14:32       ` Mark Langsdorf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.