From: Igor Stoppa <igor.stoppa@nokia.com>
To: ext Paul Walmsley <paul@pwsan.com>
Cc: David Brownell <david-b@pacbell.net>,
Hiroshi DOYU <Hiroshi.DOYU@nokia.com>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/2] ARM: OMAP: CLKFW: Initial debugfs support for omap clock framework
Date: Fri, 18 Apr 2008 10:08:03 +0300 [thread overview]
Message-ID: <1208502483.9933.15.camel@mort> (raw)
In-Reply-To: <alpine.DEB.1.00.0804171422160.8530@utopia.booyaka.com>
Hi Paul,
On Thu, 2008-04-17 at 14:47 -0600, ext Paul Walmsley wrote:
> Hello Igor,
>
> On Thu, 17 Apr 2008, Igor Stoppa wrote:
>
> > On Thu, 2008-04-17 at 13:44 -0600, ext Paul Walmsley wrote:
> >
> > > True, but if we can do a debugfs implementation first, then that seems
> > > like a good way to start, no? Userspace PM implementations are probably
> > > some months in the future, and we can mandate that debugfs be mounted for
> > > those.
> >
> > I can hardly see the benefit of a userspace implementation, considering
> > the extra context switch required and the fact the in many cases clocks
> > get enabled in response to irqs.
>
> I agree that we shouldn't try to move the clock framework to userspace.
>
> But, determining what OPP to switch to next, based on system load or other
> requirements published by drivers or userspace processes; or determining
> what power state to put powerdomains to -- it would be nice to experiment
> with a userspace governor for those tasks. It would certainly make
> development and testing easier.
yes, it can be used to play with it in its infancy state, when one is
still not looking for performance/stability stress testing.
Afterward it simply doesn't fit the bill of leveraging the HW response
time. Notice also that with QoS information coming from different
sources, mostly low level ones, this will generate lots of cache
trashing.
> > > In terms of the clock tree, it would be good to allow userspace-driven OPP
> > > changes, analogous to CPUFreq's userspace governor. [ In general, I agree
> > > that userspace should not be changing driver clocks directly, just like
> > > userspace should not be mucking around in /dev/mem directly :-) ]
> >
> > That also sounds akward at best: cpufreq (or similar) is much better
> > suited for this sort of activity; userspace governor would be the
> > userspace controller you refer to, but it is far from being optimal.
> >
> > Userspace should limit itself to changing policies.
>
> CPUFreq is good, but it does not manage non-CPU-frequency knobs very well,
> and there are plenty of those on OMAP3.
But CPUFreq can be expanded. Call it systemfreq or whatever can be more
appealing from an advertising point of view.
For omap HW anything different from ondemand doesn't make much sense.
Maybe performance, would be another viable option, in certain cases.
> Is there any reason why we should not allow the option of userspace OPP
> selection/powerdomain control for OMAP? If people don't want to use it,
> they don't have to :-)
No, of course freedom is good. But it shouldn't be freedom of knowingly
adopt suboptimal solutions just for the sake of diversity.
An approach that doesn't involve requiring userspace components can be
used also for more "embedded" systems where there might be no
traditional userspace.
A similar case would be in replacing CPUIdle with user space based
decision, which is likely far from being optimal.
--
Cheers, Igor
---
Igor Stoppa
Next Generation Software
Nokia Devices R&D - Helsinki
next prev parent reply other threads:[~2008-04-18 10:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-16 8:44 [PATCH 1/1] ARM: OMAP: CLKFW: Initial sysfs support for omap clock framework Hiroshi DOYU
2008-04-16 8:57 ` Hiroshi DOYU
2008-04-16 13:20 ` Hiroshi DOYU
2008-04-16 16:58 ` David Brownell
2008-04-16 20:51 ` Tony Lindgren
2008-04-17 14:09 ` [PATCH 1/2] ARM: OMAP: CLKFW: Initial debugfs " Hiroshi DOYU
2008-04-17 14:09 ` [PATCH 2/2] ARM: OMAP: CLKFW: Remove procfs entry for debugging " Hiroshi DOYU
2008-04-17 16:23 ` [PATCH 1/2] ARM: OMAP: CLKFW: Initial debugfs support for omap " Paul Walmsley
2008-04-17 18:40 ` David Brownell
2008-04-17 18:45 ` Paul Walmsley
2008-04-17 18:54 ` David Brownell
2008-04-17 19:17 ` Paul Walmsley
2008-04-17 18:57 ` Hiroshi DOYU
2008-04-17 19:14 ` David Brownell
2008-04-17 19:44 ` Paul Walmsley
2008-04-17 19:49 ` Igor Stoppa
2008-04-17 20:47 ` Paul Walmsley
2008-04-17 21:22 ` David Brownell
2008-04-18 7:08 ` Igor Stoppa [this message]
2008-04-17 19:58 ` Hiroshi DOYU
2008-04-21 18:40 ` Tony Lindgren
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=1208502483.9933.15.camel@mort \
--to=igor.stoppa@nokia.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=david-b@pacbell.net \
--cc=linux-omap@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox