linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@ubuntu.com>
To: Aaron Lu <aaron.lu@intel.com>,
	Sujit Reddy Thumma <sthumma@codeaurora.org>
Cc: todd.e.brandt@linux.intel.com, tj@kernel.org,
	JBottomley@parallels.com, linux-ide@vger.kernel.org,
	linux-scsi@vger.kernel.org,
	Alan Stern <stern@rowland.harvard.edu>,
	Linux-pm mailing list <linux-pm@vger.kernel.org>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>
Subject: Re: REQ_PM vs REQ_TYPE_PM_RESUME
Date: Tue, 07 Jan 2014 20:53:16 -0500	[thread overview]
Message-ID: <52CCAF8C.7040407@ubuntu.com> (raw)
In-Reply-To: <52CCAAA7.4070104@intel.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 01/07/2014 08:32 PM, Aaron Lu wrote:
> The ATA and SCSI devices are all resumed in my patches, notice
> there is a single pm_request_resume call in both ATA and SCSI's
> system resume callback, so the runtime status and the disk's state
> is synced. The pm_request_resume call is asynchronous to the system
> resume, so it doesn't block system resume.
> 
> But I see your point, my patch will not achieve that, it can only
> speed up S3 for a typical PC with a traditional disk. I can omit
> the pm_request_resume call in the system resume callback, but then
> if the disk is spun up by itself, then the runtime status indeed
> doesn't reflect the actual state. I suppose for SATA controllers
> that support Staggered Spin-up wouldn't do this?

Ahh, yes, the point of my patches was to avoid waking a disk at all if
possible, and avoid blocking on it otherwise.  Todd Brandt's patches
just backgrounded the resume.

As far as I can tell, the AHCI staggered spinup feature is only a hint
to the libata driver that it should not probe all disks in parallel.
The way to get an ATA disk to not spin itself up is by enabling the
Power on in Standby feature, either through hdparm, or via a jumper,
and it seems WD drives only support the jumper method.  Once enabled,
a drive may chose to automatically spin up when given a command that
requires it to be spinning, or it can opt to require an explicit SET
FEATURES command to spin up.  libata issues an IDENTIFY DEVICE on
resume to find out of the drive requires this command, and issues it
if so.  One of the other patches in my set fixes libata to avoid doing
this in the suspend path, and defer it to the first time a command is
issued.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJSzK+MAAoJEI5FoCIzSKrwE5gH/3zpkOR1u+W1/kw3GFLO1YHH
kA2g9VlBMoisiUGLltAuvZYN8zALhWvH3QrTIAvAxq/DjlRQ5ZyBSi3g56swsrHg
ILdx3XW9wuPLSxpWLaiZ/sowTvmrWKSYbyUpxdkDJizCXkg5R3J4LuQ3OpLSSLRh
a6IYMas6l74+xq3wp/eHTE7ofAeoN/jJmT4slUFbzgILMKKEZJQ3wLdjM2uy1d2l
ip3anDOKXHqjrTW4QSkj8piMpR4LBsEpWpMPW9fjYhQe54Hpqv4hwn6vuXEg9SKu
TrwjiH2qb4Ro9twQMUrfF2/r4Ov9swPI1r4EL/bvJ7lJSJ+9c5fRIvObg5Hdaa8=
=woDI
-----END PGP SIGNATURE-----

  reply	other threads:[~2014-01-08  1:53 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1384030893.git.psusi@ubuntu.com>
     [not found] ` <1387236657-4852-1-git-send-email-psusi@ubuntu.com>
     [not found]   ` <52CA1191.8060804@ubuntu.com>
     [not found]     ` <52CA5CF4.2080708@codeaurora.org>
     [not found]       ` <52CA744F.2080609@intel.com>
     [not found]         ` <52CAC067.20601@ubuntu.com>
2014-01-07  7:49           ` REQ_PM vs REQ_TYPE_PM_RESUME Aaron Lu
2014-01-07 14:50             ` Phillip Susi
2014-01-08  1:03               ` Aaron Lu
2014-01-08  1:16                 ` Phillip Susi
2014-01-08  1:32                   ` Aaron Lu
2014-01-08  1:53                     ` Phillip Susi [this message]
2014-01-08  2:11                       ` Aaron Lu
2014-01-08  2:19                         ` Phillip Susi
2014-01-08  2:36                           ` Aaron Lu
2014-01-08  5:24                             ` Phillip Susi
2014-01-08  7:00                               ` Aaron Lu
2014-01-08 19:30                                 ` Phillip Susi
2014-01-07 15:25             ` Alan Stern
2014-01-07 15:43               ` Phillip Susi
2014-01-07 16:08                 ` Alan Stern
2014-01-07 16:37                   ` Phillip Susi
2014-01-07 18:05                     ` Alan Stern
2014-01-07 18:43                       ` Phillip Susi
2014-01-07 19:18                         ` Alan Stern
2014-01-07 23:47                           ` Phillip Susi
2014-01-08 17:46                             ` Alan Stern
2014-01-08 18:31                               ` Alan Stern
2014-01-08 20:44                                 ` Allow runtime suspend during system resume Alan Stern
2014-01-08 21:17                                   ` Phillip Susi
2014-01-08 21:34                                     ` Alan Stern
2014-01-09 10:14                                       ` Ulf Hansson
2014-01-09 15:41                                         ` Alan Stern
2014-01-08 22:55                                   ` Rafael J. Wysocki
2014-01-08 23:24                                     ` Alan Stern
2014-01-09  0:05                                       ` Rafael J. Wysocki
2014-01-09 15:32                                         ` Alan Stern
2014-01-09 15:50                                           ` Phillip Susi
2014-01-09 16:08                                             ` Alan Stern
2014-01-09 16:30                                               ` Phillip Susi
2014-01-09 17:04                                                 ` Alan Stern
2014-01-10  1:25                                           ` Rafael J. Wysocki
2014-01-10  1:55                                             ` Phillip Susi
2014-01-10 13:35                                               ` Rafael J. Wysocki
2014-01-10 14:46                                                 ` Phillip Susi
2014-01-10 15:25                                             ` Alan Stern
2014-01-10 23:02                                               ` Rafael J. Wysocki
2014-01-11  2:08                                                 ` Phillip Susi
2014-01-11 22:50                                                   ` Alan Stern
2014-01-12  1:50                                                     ` Phillip Susi
2014-01-11 22:34                                                 ` Alan Stern
2014-01-08 20:20                               ` REQ_PM vs REQ_TYPE_PM_RESUME Phillip Susi
2014-01-08 21:21                                 ` Alan Stern
2014-01-08 21:50                                   ` Phillip Susi
2014-01-09  1:29                                   ` Aaron Lu
2014-01-09 12:17                                     ` Rafael J. Wysocki
2014-01-09 13:18                                       ` Rafael J. Wysocki
2014-01-09 15:40                                     ` Alan Stern
2014-01-09 15:53                                       ` Phillip Susi
2014-01-09 16:14                                         ` Alan Stern
2014-01-09 16:34                                           ` Phillip Susi
2014-01-09 17:06                                             ` 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=52CCAF8C.7040407@ubuntu.com \
    --to=psusi@ubuntu.com \
    --cc=JBottomley@parallels.com \
    --cc=aaron.lu@intel.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=stern@rowland.harvard.edu \
    --cc=sthumma@codeaurora.org \
    --cc=tj@kernel.org \
    --cc=todd.e.brandt@linux.intel.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;
as well as URLs for NNTP newsgroup(s).