From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Zhang Rui <rui.zhang@intel.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-pm <linux-pm@lists.linux-foundation.org>,
linux-acpi <linux-acpi@vger.kernel.org>,
Pavel Machek <pavel@ucw.cz>, Len Brown <lenb@kernel.org>,
Alan Stern <stern@rowland.harvard.edu>,
Arjan van de Ven <arjan@linux.intel.com>,
dtor@mail.ru
Subject: Re: [PATCH V2 0/4] introduce device async actions mechanism
Date: Mon, 3 Aug 2009 23:18:33 +0200 [thread overview]
Message-ID: <200908032318.35070.rjw@sisk.pl> (raw)
In-Reply-To: <1248404514.2670.107.camel@rzhang-dt>
On Friday 24 July 2009, Zhang Rui wrote:
> Hi,
Hi,
> this is the patch set I made to speed up the device
> suspend/resume/shutdown process.
>
> A new mechanism called Device Async Actions is introduced
> in this patch set.
Well, I'm not sure we'll need that.
> The basic idea is that,
> if the suspend/resume/shutdown process of a device group, including
> a root device and its child devices, are independent of other devices,
> we create an async domain for this device group,
> and make them suspend/resume/shutdown asynchronously.
I don't really think this is the right approach. IMO, we should rather try to
identify groups of devices for which the PM callbacks (forget about .shutdown()
for now) can be executed in parallel. One such group is leaf devices, ie.
devices that have no children. Of course, some of them will depend of the
other indirectly, so we should make it possible to declare (in the driver)
whether the device can be suspended/resumed asynchronously and use the
following logic (at the core level), in pseudo code:
if (has_no_children(dev) && asynchronous_suspend_resume_allowed(dev))
async_resume(dev);
else
resume(dev);
and analogously for suspend. Then, we can easily use one async domain for all
of these devices.
Later, we can add async domains for devices that have children, but can be
suspended and woken up in parallel with each other. IOW, I think the async
domains should span the levels rather than branches of the device tree.
Thanks,
Rafael
next prev parent reply other threads:[~2009-08-03 21:18 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-24 3:01 [PATCH V2 0/4] introduce device async actions mechanism Zhang Rui
2009-08-03 21:18 ` Rafael J. Wysocki [this message]
2009-08-04 3:35 ` Zhang Rui
2009-08-04 16:21 ` Rafael J. Wysocki
2009-08-04 17:33 ` Alan Stern
2009-08-04 18:44 ` Rafael J. Wysocki
2009-08-05 1:47 ` Zhang Rui
2009-08-07 23:42 ` Rafael J. Wysocki
2009-08-05 2:24 ` Zhang Rui
2009-08-08 0:22 ` Rafael J. Wysocki
2009-08-08 0:29 ` Dmitry Torokhov
2009-08-08 12:53 ` Rafael J. Wysocki
2009-08-11 6:22 ` Zhang Rui
2009-08-11 15:34 ` Rafael J. Wysocki
2009-08-11 15:53 ` Alan Stern
2009-08-11 18:12 ` Rafael J. Wysocki
2009-08-11 18:59 ` Alan Stern
2009-08-11 23:17 ` Rafael J. Wysocki
2009-08-12 14:03 ` Alan Stern
2009-08-12 20:10 ` Rafael J. Wysocki
2009-08-12 20:34 ` Alan Stern
2009-08-12 21:18 ` Rafael J. Wysocki
2009-08-13 14:30 ` Alan Stern
2009-08-13 17:53 ` Rafael J. Wysocki
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=200908032318.35070.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=arjan@linux.intel.com \
--cc=dtor@mail.ru \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@ucw.cz \
--cc=rui.zhang@intel.com \
--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