public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
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: Thu, 17 Apr 2008 22:49:32 +0300	[thread overview]
Message-ID: <1208461772.32060.14.camel@mort> (raw)
In-Reply-To: <alpine.DEB.1.00.0804171319020.8530@utopia.booyaka.com>

Hi all,
On Thu, 2008-04-17 at 13:44 -0600, ext Paul Walmsley wrote:
> Hello Hiroshi, David,
> 
> On Thu, 17 Apr 2008, David Brownell wrote:
> 
> > On Thursday 17 April 2008, Hiroshi DOYU wrote:
> > 
> > > And if there will be a little possibility that sysfs attribute can be
> > > used by userland in the future, keeping sysfs instead of debugfs
> > > doesn't seem not so illegal, does it?
> 
> 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 happen to think that the clock tree is sensitive enough
> > that it should not be managed from userspace in production
> > systems.  (Except possibly through driver-specific APIs which
> > ensure the right rules are followed.)  Too easy to break things
> > otherwise.
> 
> 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.

-- 
Cheers, Igor

---

Igor Stoppa
Next Generation Software
Nokia Devices R&D - Helsinki

  reply	other threads:[~2008-04-17 19:53 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 [this message]
2008-04-17 20:47                     ` Paul Walmsley
2008-04-17 21:22                       ` David Brownell
2008-04-18  7:08                       ` Igor Stoppa
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=1208461772.32060.14.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