All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: Mike Chan <mike@android.com>
Cc: linux-omap@vger.kernel.org, Paul Walmsley <paul@pwsan.com>
Subject: Re: Future of resource framework?
Date: Thu, 03 Jun 2010 16:52:22 -0700	[thread overview]
Message-ID: <87hbljisi1.fsf@deeprootsystems.com> (raw)
In-Reply-To: <AANLkTinSB0bIorWTwLuNhWC9g4oQArAhx-WdY-K-aadS@mail.gmail.com> (Mike Chan's message of "Thu\, 3 Jun 2010 16\:31\:23 -0700")

Mike Chan <mike@android.com> writes:

> On Fri, May 21, 2010 at 9:47 AM, Kevin Hilman
> <khilman@deeprootsystems.com> wrote:
>> Mike Chan <mike@android.com> writes:
>>
>>> I'm not sure if this has been discussed, yet but since it seems that
>>> the resource framework will not be making it upstream, I am curious
>>> what are the replacements under consideration. I am starting to see
>>> similar issues on other platforms (msm / tegra) so more generic
>>> (non-omap) solution might be something to consider.
>>
>> Hi Mike,
>>
>> Which parts of the SRF do you currently use and find useful?  It would
>> be helpful for us to to understand the parts you see as useful and
>> potentially helpful to generalize.
>>
>
> Off the top of my head, for Droid specifically, OPP values are useful,
> although in theory if you changed OPP requests to cpu throughput that
> might give the equivalent functionality.
>
> Memory bus speeds / bandwidth, although its tied to CPU, which
> ultimately ends up in a cpu speed bump.
>
> Although most of the usage I've seen are just hacks, ie: the driver
> knows it needs 550mhz from the cpu so it will request some bogus
> value.
>
>
>> As you know, the current implementation has a several layers
>> and attempts to manage several things: OPPs, latencies etc.
>>
>> Our current plans are essentially to break up the "one framework to
>> rule them all" philosophy and design of SRF and manage the various
>> pieces by exending other layers such as the new OPP layer and voltage
>> layers.  Latencies are being managed by the omap_device layer and we
>> will hopefully have some discussions with the broader linux-pm
>> community about generalizing that more into the generic driver model
>> over this year.
>>
>
> Bus speed is a common resource I see for omap / msm / tegra. Clocks
> for devices also.
>
> ie: If I'm doing heavy mem operation and need max memory bus, I might
> need to request higher performance. (which might mean 600mhz on
> omap34030, on msm it might mean AXI clock running at 128mhz, and
> something else on tegra).
>
> Or if I'm doing graphics, I may need to up the gfx clock rate, or
> swich which pll its sourcing etc.. etc..
>
> It doesn't look like pm qos has bus support, or even clock support,
> and this gets tricky if you want something semi-general.

What we're hoping to work towards (and has come up in the suspend
blocker related discussions) is moving towards a way to track
per-device (or per-subsystem) constraints like latency and throughput
in real world terms (usecs, bytes/sec, etc.) that would be general
way.

These constraints would then be visible to the bus- or
platform-specific code that could make intelligent decisions with them
(i.e whether or not to raise/lower OPP or bus speed, or whether or not
to power down a powerdomain etc.)

That's the pie-in-the-sky future I'm hoping for, and I hope to get
some broader discussions around this going at some conferences this
later year (LinuxCon in Aug, Plumbers in Nov, etc.)  We had some early
discussions in this direction at ELC already, but it needs some more
thought and discussion.

Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2010-06-03 23:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 22:37 Future of resource framework? Mike Chan
2010-05-20 23:23 ` Nishanth Menon
2010-05-21 16:47 ` Kevin Hilman
2010-06-03 23:31   ` Mike Chan
2010-06-03 23:52     ` Kevin Hilman [this message]
2010-06-04  0:10       ` Mike Chan
2010-06-04  3:01       ` Gadiyar, Anand
2010-06-04 10:50         ` Gopinath, Thara
2010-06-04 10:52           ` Gadiyar, Anand
2010-06-07 19:29         ` Mike Chan
2010-06-08  5:24           ` Gopinath, Thara
2010-06-07 19:31         ` Felipe Balbi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbljisi1.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=mike@android.com \
    --cc=paul@pwsan.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.