From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Magnus Damm <magnus.damm@gmail.com>,
Linux-pm mailing list <linux-pm@lists.linux-foundation.org>,
Greg KH <gregkh@suse.de>, LKML <linux-kernel@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>,
Arjan van de Ven <arjan@infradead.org>
Subject: Re: [RFC][PATCH] PM: Introduce core framework for run-time PM of I/O devices (rev. 8)
Date: Wed, 8 Jul 2009 23:29:50 +0200 [thread overview]
Message-ID: <200907082329.51795.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0907081707090.22618-100000@iolanthe.rowland.org>
On Wednesday 08 July 2009, Alan Stern wrote:
> On Wed, 8 Jul 2009, Rafael J. Wysocki wrote:
>
> > > I thought you wanted to avoid this sort of complication.
> >
> > I did, but there might be some benefits. For example, the timer and the work
> > structure provided by dev.power can be used for scheduling such operations
> > if they are defined at the core level.
> >
> > Suppose your device has 3 low power states D1 - D3 (like PCI) and you want it
> > to go into D1 first, then, after a delay, to D2 and finally, again after a
> > delay, to D3. Of course, if there's a resume in the meantime, it should cancel
> > whichever transition is in progress.
> >
> > pm_runtime_suspend() can be used for the first transition, but the bus type or
> > driver will have to provide its own mechanics for going down to D2 and D3,
> > which must be synchronized with its ->runtime_resume(). That might be tricky
> > and the core already has what's necessary (well, almost).
>
> Maybe we can provide a way for drivers to set up their own timer
> callback or work routine for use while the status is RPM_SUSPENDED.
Agreed.
Anyway, I don't think it's really necessary in the Magnus' usage case, as
you pointed out earlier in this thread, so I think we can consider it as
something to add in future.
The current patch is already more that 1200 lines and there's some
documentation to add, so I wouldn't like to make it any bigger. :-)
Best,
Rafael
next prev parent reply other threads:[~2009-07-08 21:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 0:52 [RFC][PATCH] PM: Introduce core framework for run-time PM of I/O devices (rev. 8) Rafael J. Wysocki
2009-07-07 15:12 ` Magnus Damm
2009-07-07 22:07 ` Rafael J. Wysocki
2009-07-08 2:54 ` Alan Stern
2009-07-08 4:40 ` Magnus Damm
2009-07-08 14:26 ` Alan Stern
2009-07-08 17:50 ` [update][RFC][PATCH] PM: Introduce core framework for run-time PM of I/O devices (rev. 9) Rafael J. Wysocki
2009-07-08 5:45 ` [RFC][PATCH] PM: Introduce core framework for run-time PM of I/O devices (rev. 8) Magnus Damm
2009-07-08 19:01 ` Rafael J. Wysocki
2009-07-08 19:42 ` Alan Stern
2009-07-08 19:55 ` Rafael J. Wysocki
2009-07-08 21:09 ` Alan Stern
2009-07-08 21:29 ` Rafael J. Wysocki [this message]
2009-07-09 2:52 ` Magnus Damm
2009-07-09 13:48 ` Alan Stern
2009-07-09 15:31 ` Magnus Damm
2009-07-09 21:56 ` [linux-pm] " Mahalingam, Nithish
2009-07-11 11:08 ` Rafael J. Wysocki
2009-07-12 2:05 ` Mahalingam, Nithish
2009-07-13 1:42 ` Magnus Damm
2009-07-09 23:22 ` Pavel Machek
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=200907082329.51795.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=arjan@infradead.org \
--cc=gregkh@suse.de \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=magnus.damm@gmail.com \
--cc=mingo@elte.hu \
--cc=stern@rowland.harvard.edu \
/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