public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: HU TAO-TGHK48 <taohu@motorola.com>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: PM interface to suspend/resume individual/specific device
Date: Mon, 6 Jul 2009 22:32:42 +0200	[thread overview]
Message-ID: <200907062232.42682.rjw@sisk.pl> (raw)
In-Reply-To: <F12CE1A68F023D498A2691C7B539311503655C1B@ZMY16EXM66.ds.mot.com>

On Monday 06 July 2009, HU TAO-TGHK48 wrote:
> 
> Hi, Rafael
> 
> Thank for the answer.
> 
> 2 more things
> A) The suspend/resume API assumes that  all user space process/kthread
> access to driver will be frozen first
>     This avoids race condition that processes/threads  are accessing
> driver while suspend()/resume() of the driver is called at the same
> time.
>     
>     Is my understanding correct?

Generally, it is, but while all user space processes are frozen before every
attempt to put the system into a sleep state, only some of the kernel threads
are frozen.

> B) I noticed your "Run-time PM framework" patch was submitted recently
>     Do you think it is fair to allow user space to trigger run-time
> suspend/resume for specific device?
>
>     Sine the run-time suspend/resume would be system independent per my
> understanding.

There's a problem that the user space can potentially trigger a run-time
suspend of a device at a wrong time.  It's probably better to let the driver
decide.

Best,
Rafael

      reply	other threads:[~2009-07-06 20:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-05 11:33 PM interface to suspend/resume individual/specific device HU TAO-TGHK48
2009-07-05 21:30 ` Rafael J. Wysocki
2009-07-06 11:01   ` HU TAO-TGHK48
2009-07-06 20:32     ` Rafael J. Wysocki [this message]

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=200907062232.42682.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=taohu@motorola.com \
    /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