Skip to contentSkip to conversation

sata driver fails to work after resume from S3

DISCUSSION Zhang Rui 2 participants 2 messages Jan 26, 2007 – Jan 30, 2007

Subsystems (2)
lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

Hi,
I met a problem that sata driver fails to work after resume from S3. The kernel version is 2.6.16.33.

After resume from S3,
I got the following messages:
First, "ATA: abnormal status 0x80 on port 0x1F7" for 3 times. Then, "sd 0:0:0(sometimes is 1):0: SCSI error: return code=0x40000
end_request: I/O error, dev sdb, sector ....
Buffer I/O error on device dm-0, logical block...
lost page write due to I/O error on device dm-0"
keeps on popping up.
Finally I got a message saying that "Remounting filesystem read-only" and can't access the disk any more.

The problem is exactly like bug6262 in bugzilla, except for this happens when I set SATA mode to "compatibility"(not "AHCI"). I can confirm that it is fixed in the 2.6.18.

But how to make SATA drive S3 work properly in 2.6.16.33?
I found several similar bugs, but the final conclusion I got is "This is fixed in linux-2.6.18..." and I can not find the original patches against this problem.
I think the patch set "ACPI support for SATA/PATA" from Forrest and updated by Kristen may be helpful. But I can't apply them to 2.6.16.33 due to too much changes in sata driver.

Do I need to open a bug report in bugzilla? Does the patch set really make sense to my problem? If so, any patch I should apply first?
If not, which patches I should test?

Is there anyone who could show me what I should do please? Any comment is appreciated. Thanks in advance.

Thanks,
Rui

#1 lore raw
Quoted 1 line · Zhang Rui

But how to make SATA drive S3 work properly in 2.6.16.33?

There is no simple patch which can fix S3 support in 2.6.16. You need to backport whole libata EH including PM support. If you absolutely have to keep using 2.6.16.33, consider backporting libata as a whole from 2.6.19 (it wouldn't be easy unless you're familiar with libata and SCSI). Otherwise, just use kernel >= 2.6.18.

Signature · 1 line
tejun