linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH/RFC 0/7] SATA ACPI suspend/resume support
@ 2005-12-14  0:10 Randy Dunlap
  2005-12-14 22:29 ` Jeff Garzik
  2005-12-15  3:04 ` Mark Lord
  0 siblings, 2 replies; 10+ messages in thread
From: Randy Dunlap @ 2005-12-14  0:10 UTC (permalink / raw)
  To: ide; +Cc: axboe, jgarzik


This is an update to the SATA suspend/resume patches
to use ACPI methods (specifically _SDD and _GTF).
This patch series applies to 2.6.15-rc5-git3.

It boots but needs lots of testing & review/comments,
as well as adding a call to write taskfiles on
COMRESET event(s) (at least on async. loss of signal) and
freeing ata_device->gtf_address on module unload.

The patchset begins with the libata suspend/resume patch from
Jens Axboe and builds on that.

---
~Randy

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH/RFC 0/7] SATA ACPI suspend/resume support
@ 2005-12-19 15:18 Jae-hyeon Park
  2005-12-20 18:55 ` Randy Dunlap
  0 siblings, 1 reply; 10+ messages in thread
From: Jae-hyeon Park @ 2005-12-19 15:18 UTC (permalink / raw)
  To: linux-ide; +Cc: randy_d_dunlap

This patch set does not work on my ThinkPad X41 Tablet.  I applied the
seven patches to kernel 2.6.15-rc5-git3.  I added "acpi_sleep=s3_bios"
to the kernel command line.

Let me describe how I tested in the following.  I suspend my laptop
with the following commands:

# init 1
# sync
# echo -n mem > /sys/power/state

The screen is cleared and the following is displayed:

Stopping tasks: ==========|
acpi_bus-0201 [57] bus_set_power         : Device is not power manageable
PM: Entering mem sleep

I suspect that the line "acpi_bus ..." indicates an error relevant to
this wakeup problem, although I don't know anything about kernel
hacking.  After a second, the laptop is suspended.  If I press the Fn
key to wake up the machine, it prints messages including:

...
acpi_bus-0201 [60] bus_set_power         : Device is not power manageable
...
ATA: abnormal status 0x80 on port 0x1F7
ATA: abnormal status 0x80 on port 0x1F7
ATA: abnormal status 0x80 on port 0x1F7

After a few tens of seconds, the screen before sleep is restored
showing the commands that I gave.  At this time, the hard disk LED is
off.

After I try to read the hard disk, for example by

# ls /usr/src

the hard disk LED stays on.  After a while the following message is
repeatedly printed:

ata1: command 0xc8 timeout, stat 0xd0 host_stat 0x1
ata1: translated ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata1: status=0xd0 { Busy }
sd 0:0:0:0: SCSI error: return code = 0x8000002
sda: Current: sense key: Aborted Command
    Additional sense: Scsi parity error
Info fld=28f6944
end_request: I/O error, dev sda, sector 29379684
ATA: abnormal status 0xD0 on port 0x1F7
ATA: abnormal status 0xD0 on port 0x1F7
ATA: abnormal status 0xD0 on port 0x1F7

ata1: command 0xca timeout, stat 0xd0 host_stat 0x1
ata1: translated ATA stat/err 0xd0/00 to SCSI SK/ASC/ASCQ 0xb/47/00
ata1: status=0xd0 { Busy }
sd 0:0:0:0: SCSI error: return code = 0x8000002
sda: Current: sense key: Aborted Command
    Additional sense: Scsi parity error
Info fld=28f6944
end_request: I/O error, dev sda, sector 29379692
ATA: abnormal status 0xD0 on port 0x1F7
ATA: abnormal status 0xD0 on port 0x1F7
ATA: abnormal status 0xD0 on port 0x1F7

It is confusing that the symptom after an unsuccessful wakeup
basically appears to be the same as the one described in the posting,
http://marc.theaimsgroup.com/?l=linux-kernel&m=111409309804068&w=2
FYI, software suspend 2 works okay on this machine with SATA resume
patch.

Any ideas?  Thanks in advance.

Jae-hyeon

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-12-26  5:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-14  0:10 [PATCH/RFC 0/7] SATA ACPI suspend/resume support Randy Dunlap
2005-12-14 22:29 ` Jeff Garzik
2005-12-17 22:06   ` Randy.Dunlap
2005-12-15  3:04 ` Mark Lord
2005-12-15  3:31   ` Randy.Dunlap
  -- strict thread matches above, loose matches on Subject: below --
2005-12-19 15:18 Jae-hyeon Park
2005-12-20 18:55 ` Randy Dunlap
2005-12-22 12:52   ` Jae-hyeon Park
2005-12-22 18:31     ` Randy Dunlap
2005-12-26  5:10   ` Jae-hyeon Park

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).