Re: Disk wakeup on resume

2013-11-06 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/6/2013 12:49 AM, Aaron Lu wrote: > Todd has been optimising system resume for SATA drives without > touching runtime PM: > http://www.spinics.net/lists/linux-scsi/msg69532.html You may want > to take a look. Thanks for the pointer, but is there

Re: Disk wakeup on resume

2013-11-05 Thread Aaron Lu
On 11/06/2013 05:32 AM, Phillip Susi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11/5/2013 4:05 AM, Aaron Lu wrote: >> Are you using an ATA drive? Last time I checked, the spin up >> actually happened while the ata port is resumed(when it will be >> reset): https://lkml.org/lkm

Re: Disk wakeup on resume

2013-11-05 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I found the culprit. It seems that ata_port_reset identifies the device, and if it has power up in standby enabled, and requires the SET FEATURES command to spin up, issues the command right away. I wonder: 1) If the spinup command can't be delay

Re: Disk wakeup on resume

2013-11-05 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/5/2013 4:05 AM, Aaron Lu wrote: > Are you using an ATA drive? Last time I checked, the spin up > actually happened while the ata port is resumed(when it will be > reset): https://lkml.org/lkml/2013/2/4/361 Is there a reason these patches weren't

Re: Disk wakeup on resume

2013-11-05 Thread Douglas Gilbert
On 13-11-05 11:23 AM, Phillip Susi wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/5/2013 10:56 AM, Douglas Gilbert wrote: I think that you might find that almost any SCSI command (translated to its ATA equivalent command) will wake up a SATA disk. Perhaps just this sequence: fd = op

Re: Disk wakeup on resume

2013-11-05 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/5/2013 10:56 AM, Douglas Gilbert wrote: > I think that you might find that almost any SCSI command > (translated to its ATA equivalent command) will wake up a SATA > disk. Perhaps just this sequence: fd = open() ; > close(fd) ; is sufficient. No

Re: Disk wakeup on resume

2013-11-05 Thread Douglas Gilbert
On 13-11-04 09:37 PM, Phillip Susi wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I can not figure out what is waking up disks on resume from suspend. I thought it was sd.c, and setting manage_start_stop = 0 should stop that. It does stop the message printed saying it is being started,

Re: Disk wakeup on resume

2013-11-05 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/5/2013 4:05 AM, Aaron Lu wrote: >> Are you using an ATA drive? Last time I checked, the spin up >> actually happened while the ata port is resumed(when it will be >> reset): https://lkml.org/lkml/2013/2/4/361 Why does resetting the port spin up

Re: Disk wakeup on resume

2013-11-05 Thread Aaron Lu
On 11/05/2013 10:37 AM, Phillip Susi wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > I can not figure out what is waking up disks on resume from suspend. > I thought it was sd.c, and setting manage_start_stop = 0 should stop > that. It does stop the message printed saying it is bei

Disk wakeup on resume

2013-11-04 Thread Phillip Susi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I can not figure out what is waking up disks on resume from suspend. I thought it was sd.c, and setting manage_start_stop = 0 should stop that. It does stop the message printed saying it is being started, yet the disk is still started, and this make