public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Ikhwan Lee <dlrghks@gmail.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>,
	Pavel Machek <pavel@ucw.cz>,
	linux-pm@lists.osdl.org
Subject: Re: Alternative Concept
Date: Sun, 18 Mar 2007 23:07:24 -0700	[thread overview]
Message-ID: <200703182307.25177.david-b@pacbell.net> (raw)
In-Reply-To: <484380240703181927l12c80583pa54046e7a9fcdb67@mail.gmail.com>

On Sunday 18 March 2007 7:27 pm, Ikhwan Lee wrote:
> Hi,
> 
> On 3/16/07, David Brownell <david-b@pacbell.net> wrote:
> > On Thursday 15 March 2007 8:56 pm, Ikhwan Lee wrote:
> > > Hi,
> > >
> > > Although I agree that the current clock framework can handle power or
> > > voltage domains in many platforms, having something like (struct clk
> > > powerdomain1, powerdomain2;) does not seem like a good implementation,
> > > a struct for clocks representing a power domain.
> >
> > Good thing that's not what I suggested then, right?  :)
> >
> > The point was that in the examples I've seen, the power domains
> > are associated with clock domains, so that each clock is tied
> > to one power domain.  And since you can't use the power domain
> > without having a clock ... the implementation can tell if it's
> > got to activate a power domain by looking at the clock.
> 
> True, although sometimes it gets dirty because multiple clock sources
> are associated with one power domain

As clearly allowed for in what I wrote.  clock->power_domain.

> at the same time multiple power 
> domains are associated with one clock source.

As also allowed for in what I wrote originally.  clock->power_domains[].

> Simple parent and child 
> relationship provided by the clock framework is not always enough.

Not implied in what I wrote.


> > There may be other models of power domain, but that's the one
> > I've had reason to look at (which isn't synonymous with a straight
> > voltage/current supply).
> >
> >
> > > If a new framework is more straighforward and introduces a negligible
> > > overhead to the current kernel, I think it is worthwhile to have a
> > > look at it. Plus this new framework might be able to take care of
> > > those platforms that are not nicely supported by the current clock
> > > framework.
> >
> > Perhaps when we see one, we could discuss that as somethong other
> > than pure handwaving.  But that still won't address the basic point
> > that it's wrong to assume the clock framework should be written out
> > of the picture.
> 
> I think we can reach an agreement. The clock framework does not need
> to be replaced with a new one since it is serving its purpose well
> enough. If extra functionalities are needed for clocks, we can extend
> the existing clock framework. Such extensions will include functions
> like clk_set_rate_pending() and power_transaction_commit(). However,
> since clocks and voltages (or power domains) have different
> characteristics, it is desirable to have a separate framework for
> power domains and associate that framework with the existing clock
> framework.

If the platform needs power domains to be exposed, yes.  But I gave
examples where it does NOT need to be exposed, since each clock was
in a single power domain.


> I am not sure if this is the direction that the original PowerOp
> people suggested. If we can agree on this, however, I think we can
> proceed to look at the code.

I'm not sure why such agreement should be necessary before showing
interface definitions.

- Dave

  reply	other threads:[~2007-03-19  6:07 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-24  1:23 [RFC] CPUFreq PowerOP integration, Intro 0/3 Eugeny S. Mints
2006-10-07  2:36 ` Alternative Concept [Was: Re: [RFC] CPUFreq PowerOP integration, Intro 0/3] Dominik Brodowski
2006-10-07  3:15   ` Dominik Brodowski
2006-10-08  7:16   ` Pavel Machek
2006-10-12 15:38     ` Mark Gross
2006-10-12 16:02       ` Dominik Brodowski
2006-10-16 21:56         ` Mark Gross
2006-10-17 21:40           ` Matthew Locke
2006-10-12 16:48       ` Pavel Machek
2006-10-12 17:12         ` Vitaly Wool
2006-10-12 17:23           ` Pavel Machek
2006-10-09 18:21   ` Mark Gross
2006-10-26  3:06     ` Dominik Brodowski
2006-10-12 22:43   ` Eugeny S. Mints
2006-10-13 10:55     ` Pavel Machek
2006-10-16 21:44       ` Mark Gross
2006-10-17  8:26         ` Pavel Machek
2006-10-26  3:05     ` Dominik Brodowski
2007-03-13  0:57   ` Alternative Concept Matthew Locke
2007-03-13 11:08     ` Pavel Machek
2007-03-13 20:34       ` Mark Gross
2007-03-14  2:30         ` Ikhwan Lee
2007-03-14 10:43           ` Eugeny S. Mints
2007-03-14 17:19             ` David Brownell
2007-03-14 18:12               ` Igor Stoppa
2007-03-14 18:45                 ` David Brownell
2007-03-15  9:53               ` Eugeny S. Mints
2007-03-15 13:04                 ` Igor Stoppa
2007-03-16  2:21                   ` David Brownell
2007-03-16  3:56                     ` Ikhwan Lee
2007-03-16  6:17                       ` David Brownell
2007-03-19  2:27                         ` Ikhwan Lee
2007-03-19  6:07                           ` David Brownell [this message]
2007-03-16 13:06                     ` Dmitry Krivoschekov
2007-03-16 18:03                       ` David Brownell
2007-03-18 20:25                         ` Dmitry Krivoschekov
2007-03-19  4:04                           ` David Brownell
2007-03-20  0:03                             ` Dmitry Krivoschekov
2007-03-20  8:07                               ` David Brownell
2007-03-20  9:45                                 ` Dmitry Krivoschekov
2007-03-20 10:30                                   ` Igor Stoppa
2007-03-20 12:13                                     ` Eugeny S. Mints
2007-03-20 12:39                                       ` Igor Stoppa
2007-03-20 13:44                                         ` Dmitry Krivoschekov
2007-03-20 21:03                                         ` David Brownell
2007-03-20 13:07                                     ` Dmitry Krivoschekov
2007-03-20 13:52                                       ` Igor Stoppa
2007-03-20 14:58                                         ` Dmitry Krivoschekov
2007-03-20 15:36                                           ` Pavel Machek
2007-03-20 19:16                                             ` Dmitry Krivoschekov
2007-03-20 20:45                                               ` Pavel Machek
2007-03-20 22:04                                                 ` David Brownell
2007-03-20 22:06                                                   ` Pavel Machek
2007-03-20 23:29                                                     ` David Brownell
2007-03-20 15:36                                           ` Igor Stoppa
2007-03-20 19:17                                             ` Dmitry Krivoschekov
2007-03-20 20:17                                             ` David Brownell
2007-03-20 20:21                                       ` David Brownell
2007-03-20 19:58                                   ` David Brownell
2007-03-24  0:47                                     ` charging batteries from USB [was: Re: Alternative Concept] Dmitry Krivoschekov
2007-03-24  1:17                                       ` David Brownell
2007-03-24  1:48                                         ` Dmitry Krivoschekov
2007-03-24  2:35                                           ` David Brownell
2007-03-24 10:20                                             ` Oliver Neukum
2007-03-24  8:36                                       ` Oliver Neukum
2007-03-14  3:19       ` Alternative Concept Dominik Brodowski
  -- strict thread matches above, loose matches on Subject: below --
2007-03-14 22:08 Scott E. Preece
2007-03-14 23:23 ` David Brownell
2007-03-15  7:25   ` Ikhwan Lee
2007-03-15  8:14     ` Amit Kucheria
2007-03-15 10:55       ` Eugeny S. Mints
2007-03-15 10:46     ` Eugeny S. Mints
2007-03-15 10:33   ` Eugeny S. Mints
2007-03-15 13:21 Scott E. Preece
2007-03-15 13:29 Scott E. Preece
2007-03-15 23:07 ` David Brownell
2007-03-15 14:00 Scott E. Preece
2007-03-15 14:38 ` Eugeny S. Mints
2007-03-15 17:33 ` Woodruff, Richard
2007-03-19 14:12 Scott E. Preece
2007-03-20  7:56 ` David Brownell
2007-03-20 14:26   ` Amit Kucheria
2007-03-20 15:08     ` Dmitry Krivoschekov
2007-03-20 17:04       ` David Brownell

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=200703182307.25177.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=dlrghks@gmail.com \
    --cc=linux-pm@lists.osdl.org \
    --cc=linux@dominikbrodowski.net \
    --cc=pavel@ucw.cz \
    /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