From: Mayuresh Kulkarni <mkulkarni@nvidia.com>
To: Peter De Schrijver <pdeschrijver@nvidia.com>
Cc: Kevin Hilman <khilman@linaro.org>,
Greg KH <gregkh@linuxfoundation.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"len.brown@intel.com" <len.brown@intel.com>,
"pavel@ucw.cz" <pavel@ucw.cz>, "rjw@sisk.pl" <rjw@sisk.pl>,
Mayuresh Kulkarni <mkulkarni@nvidia.com>
Subject: Re: [PATCH] PM/domains: add delayed power off capability
Date: Thu, 14 Mar 2013 19:42:15 +0530 [thread overview]
Message-ID: <5141DABF.9050002@nvidia.com> (raw)
In-Reply-To: <20130314085916.GC18519@tbergstrom-lnx.Nvidia.com>
On Thursday 14 March 2013 02:29 PM, Peter De Schrijver wrote:
> On Wed, Mar 13, 2013 at 08:27:02PM +0100, Kevin Hilman wrote:
>> Mayuresh Kulkarni <mkulkarni@nvidia.com> writes:
>>
>>> On Tuesday 12 March 2013 07:19 PM, Greg KH wrote:
>>>> On Tue, Mar 12, 2013 at 02:19:19PM +0530, Mayuresh Kulkarni wrote:
>>>>> - this commit adds a capability to delay the powering off
>>>>> of the domain
>>>>
>>>> Why?
>>>>
>>>
>>> - As I mentioned below (sorry for mentioning below rather than at
>>> start), powering off a domain means the context save needs to be done
>>> && it needs to be restored during power on.
>>> - It often observed that saving and restoring of context is expensive
>>> in terms of power consumed as well as overall system response.
>>
>> Are you talking about per-device context save/restore?
>>
>> Your drivers should be using runtime PM, which has an autosuspend
>> timeout feature. Using autosuspend on any device in the power domain
>> will have the same effect as this proposed patch.
>>
>> Using runtime PM to target specific devices that have expensive
>> save/restore paths is also more understandable and maintainable IMO,
>> because the "fix" is targetted.
>>
>
> No. The goal of this patch is to introduce something similar to autosuspend
> for turning off domains. Even if all peripherals in a domain are idle, you
> might not want to turn off the domain immediately, but wait a little in case
> a new request comes in. We are using this scheme today in our GPU driver and
> it works quite well, but that's done entirely without PM domains.
>
> Cheers,
>
> Peter.
>
- As Peter mentioned above, the idea is to wait for some time before
turning off a domain with the anticipation that it will be needed soon
for a particular use case.
- My previous comments would sound valid if you imagine a domain that
has a single device attached to it. In such case, there are 2 things
that happen during power-on/off: context save/restore of the device and
powering on/off of a domain. Both of them needs energy and possibly time
to settle down (stabilize the domain power).
- If such a domain is going to be needed very soon in future, it makes
sense to avoid its power down for at-least that much amount of time
(which is what the proposed patch does).
next prev parent reply other threads:[~2013-03-14 14:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-12 8:49 [PATCH] PM/domains: add delayed power off capability Mayuresh Kulkarni
2013-03-12 13:49 ` Greg KH
2013-03-12 14:56 ` Mayuresh Kulkarni
2013-03-12 15:19 ` Greg KH
2013-03-12 15:24 ` Peter De Schrijver
2013-03-12 15:44 ` Greg KH
2013-03-13 19:27 ` Kevin Hilman
2013-03-14 8:59 ` Peter De Schrijver
2013-03-14 14:12 ` Mayuresh Kulkarni [this message]
2013-03-15 18:04 ` Kevin Hilman
2013-03-18 10:07 ` Peter De Schrijver
2013-03-22 16:58 ` Kevin Hilman
2013-03-14 14:59 ` Alan Stern
-- strict thread matches above, loose matches on Subject: below --
2013-03-11 15:50 Mayuresh Kulkarni
[not found] ` <1363017028-16164-1-git-send-email-mkulkarni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2013-03-11 17:47 ` Stephen Warren
2013-03-12 14:29 ` Peter De Schrijver
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=5141DABF.9050002@nvidia.com \
--to=mkulkarni@nvidia.com \
--cc=gregkh@linuxfoundation.org \
--cc=khilman@linaro.org \
--cc=len.brown@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=pdeschrijver@nvidia.com \
--cc=rjw@sisk.pl \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.