From: Raj Kumar <rajkumar278@hotmail.com>
To: stern@rowland.harvard.edu, linux-pm@lists.linux-foundation.org
Subject: Re: Runtime power management during system resume
Date: Tue, 24 Aug 2010 20:47:58 +0530 [thread overview]
Message-ID: <BLU102-W5B0F0352A72D47CBA27CFEB830@phx.gbl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1008241029000.1652-100000@iolanthe.rowland.org>
Hi,
My question is:
1) When the system suspends, it invokes pm_runtime_put_sync when complete
callback is called which will again trigger to put device idle
means in runtime power management core, the device status is set to RPM_SUSPENDED.
right?
2) As you also said that during system resume, it does not increment the power_usage
counter,
that is ok, driver will increase the power_usage counter...
But will driver also set the state to RPM_ACTIVE means pm_runtime_set_active
right?
3) During hibernation, if the driver is registered using platform_driver_register...
When the system hibernates, will power management core call suspend, resume?
right?
Regards,
Raj
----------------------------------------
> Date: Tue, 24 Aug 2010 10:30:25 -0400
> From: stern@rowland.harvard.edu
> To: rajkumar278@hotmail.com
> CC: linux-kernel@vger.kernel.org
> Subject: Re: Runtime power management during system resume
>
> On Tue, 24 Aug 2010, Raj Kumar wrote:
>
>> Hi Alan,
>>
>> I have implemented the run time power management in my drivers. I have one
>> issue regarding System resume.
>>
>> When the system sleep is triggered as it is mentioned that Power management
>> core will increment the power_usage counter during prepare and decrements when complete
>> is called.
>>
>> Now I have few questions:
>>
>> 1) When the system resume is done, it does not increase the power_usage counter.
>> right?
>
> That's right.
>
>> So Does then the driver need to update the power_usage counter with run time power management
>> core and again set it to active means RPM_ACTIVE?
>
> Read section 6 of Documentation/power/runtime_pm.h. It explains this.
>
>> 2) Suppose device is active, means its power_usage counter is already one, Now during system
>> sleep, does the driver first suspend it with run time power management core and then continue
>> System suspend?
>
> No.
>
>> 3) Because I have seen the code of power management core and I did not see the that during
>> system suspend, run time power management status is updated means RPM_SUSPENDED.
>> right?
>
> I don't understand your question.
>
> Alan Stern
>
next prev parent reply other threads:[~2010-08-24 15:17 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-23 19:17 Runtime PM and the block layer Alan Stern
2010-08-23 19:53 ` Jens Axboe
2010-08-23 21:51 ` Alan Stern
2010-08-24 13:15 ` Runtime power management during system resume Raj Kumar
2010-08-24 14:30 ` Alan Stern
2010-08-24 15:17 ` Raj Kumar [this message]
2010-08-24 17:50 ` Alan Stern
2010-08-25 13:27 ` Raj Kumar
2010-08-25 14:51 ` Alan Stern
2010-08-26 13:40 ` Raj Kumar
2010-08-26 14:33 ` Alan Stern
2010-09-18 11:49 ` (no subject) Raj Kumar
2010-09-18 15:36 ` your mail Alan Stern
2010-09-18 15:56 ` Dominik Brodowski
2010-10-05 21:40 ` Question about hibernation Raj Kumar
2010-10-05 22:43 ` Rafael J. Wysocki
2010-08-24 13:38 ` Runtime PM and the block layer Jens Axboe
2010-08-24 14:42 ` Alan Stern
2010-08-24 17:09 ` Jens Axboe
2010-08-24 20:06 ` Alan Stern
2010-08-24 20:10 ` Jens Axboe
2010-08-24 21:09 ` Alan Stern
2010-09-27 15:22 ` Alan Stern
2010-08-30 16:32 ` Alan Stern
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=BLU102-W5B0F0352A72D47CBA27CFEB830@phx.gbl \
--to=rajkumar278@hotmail.com \
--cc=linux-pm@lists.linux-foundation.org \
--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 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.