2006-11-02 21:23:23

by Maciej Rutecki

[permalink] [raw]
Subject: [2.6.18] Suspend to ram and SATA

I have problem with suspend to ram, and my SATA drive. When I try:

echo mem > /sys/power/state

system goes standby, but when doing the resume it
would come back and have I/O errors similar like this ((copied from
paper notes, the disk is no longer writable when the error happens)

kernel: journal commit I/O error
end_request: I/O error, dev sda, sector xxxxxxxx
sd 0:0:0:0: SCSI error return code: 0xxxxxx

Problem is similar like this:
http://marc.theaimsgroup.com/?l=linux-kernel&m=111409309804068&w=2
http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux
http://lkml.org/lkml/2005/9/23/97

I test it in 2.6.18.1 (with initrd) and 2.6.18 (with and without initrd).

Hardware: HP/Compaq nx6310

--
Maciej Rutecki <[email protected]>
http://www.unixy.pl
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)


Attachments:
acpi_info.txt.gz (711.00 B)
config-2.6.18.1.gz (14.46 kB)
config-2.6.18.gz (14.46 kB)
dmesg-2.6.18.1.gz (6.55 kB)
dmidecode.txt.gz (2.42 kB)
lspci.txt.gz (2.52 kB)
ver_linux.txt.gz (703.00 B)
smime.p7s (3.19 kB)
S/MIME Cryptographic Signature
Download all attachments

2006-11-02 21:44:32

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [2.6.18] Suspend to ram and SATA

On Thursday, 2 November 2006 22:22, Maciej Rutecki wrote:
> I have problem with suspend to ram, and my SATA drive. When I try:
>
> echo mem > /sys/power/state
>
> system goes standby, but when doing the resume it
> would come back and have I/O errors similar like this ((copied from
> paper notes, the disk is no longer writable when the error happens)
>
> kernel: journal commit I/O error
> end_request: I/O error, dev sda, sector xxxxxxxx
> sd 0:0:0:0: SCSI error return code: 0xxxxxx
>
> Problem is similar like this:
> http://marc.theaimsgroup.com/?l=linux-kernel&m=111409309804068&w=2
> http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux
> http://lkml.org/lkml/2005/9/23/97
>
> I test it in 2.6.18.1 (with initrd) and 2.6.18 (with and without initrd).
>
> Hardware: HP/Compaq nx6310

Can you please test 2.6.19-rc4 with CONFIG_DISABLE_CONSOLE_SUSPEND
unset?

Rafael


--
You never change things by fighting the existing reality.
R. Buckminster Fuller

2006-11-03 07:45:10

by Martin Lorenz

[permalink] [raw]
Subject: Re: [2.6.18] Suspend to ram and SATA

On Thu, Nov 02, 2006 at 10:22:56PM +0100, Maciej Rutecki wrote:
> I have problem with suspend to ram, and my SATA drive. When I try:
>
> echo mem > /sys/power/state
>
> system goes standby, but when doing the resume it
> would come back and have I/O errors similar like this ((copied from
> paper notes, the disk is no longer writable when the error happens)
>
> kernel: journal commit I/O error
> end_request: I/O error, dev sda, sector xxxxxxxx
> sd 0:0:0:0: SCSI error return code: 0xxxxxx
>
> Problem is similar like this:
> http://marc.theaimsgroup.com/?l=linux-kernel&m=111409309804068&w=2
> http://www.thinkwiki.org/wiki/Problems_with_SATA_and_Linux
> http://lkml.org/lkml/2005/9/23/97
>
> I test it in 2.6.18.1 (with initrd) and 2.6.18 (with and without initrd).

for 2.6.18 there is a patch which makes AHCI sata behave correctly on
suspend/resume. it was originally written by Forrest Zhao and is now
included in the 2.6.19-rcX tree

you can apply the libata patch that went into 2.6.18-mm1. it is to be found
in the broken-out dir of 2.6.18-mm1 and named
git-libata-all-2.6.18-mm1.patch

when applying it to 2.6.18.1 you will get three rejects because the patches
are already in 2.6.18.1. simply say 'n' -> 'n' on those three.


>
> Hardware: HP/Compaq nx6310
>
> --
> Maciej Rutecki <[email protected]>
> http://www.unixy.pl
> LTG - Linux Testers Group
> (http://www.stardust.webpages.pl/ltg/wiki/)











gruss
mlo
--
Dipl.-Ing. Martin Lorenz

They that can give up essential liberty
to obtain a little temporary safety
deserve neither liberty nor safety.
Benjamin Franklin

please encrypt your mail to me
GnuPG key-ID: F1AAD37D
get it here:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0xF1AAD37D

ICQ UIN: 33588107


Attachments:
(No filename) (1.78 kB)
signature.asc (189.00 B)
Digital signature
Download all attachments

2006-11-03 19:34:33

by Maciej Rutecki

[permalink] [raw]
Subject: Re: [2.6.18] Suspend to ram and SATA

Rafael J. Wysocki napisaƂ(a):

>
> Can you please test 2.6.19-rc4 with CONFIG_DISABLE_CONSOLE_SUSPEND
> unset?
>
> Rafael
>
>
I don't have this option:

rutek:/usr/src/linux-2.6.19-rc4# cat .config | grep SUSPEND
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_SUSPEND_SMP=y
CONFIG_USB_SUSPEND=y

but suspend to ram seems to work (I did't see any problem). Thanks for
help :-)


--
Maciej Rutecki <[email protected]>
http://www.unixy.pl
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)


Attachments:
smime.p7s (3.19 kB)
S/MIME Cryptographic Signature

2006-11-03 20:14:12

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [2.6.18] Suspend to ram and SATA

On Friday, 3 November 2006 20:34, Maciej Rutecki wrote:
> Rafael J. Wysocki napisa?(a):
>
> >
> > Can you please test 2.6.19-rc4 with CONFIG_DISABLE_CONSOLE_SUSPEND
> > unset?
> >
> > Rafael
> >
> >
> I don't have this option:
>
> rutek:/usr/src/linux-2.6.19-rc4# cat .config | grep SUSPEND
> CONFIG_SOFTWARE_SUSPEND=y
> CONFIG_SUSPEND_SMP=y
> CONFIG_USB_SUSPEND=y

So it is not set which is OK.

> but suspend to ram seems to work (I did't see any problem). Thanks for
> help :-)

You're welcome. :-)


--
You never change things by fighting the existing reality.
R. Buckminster Fuller

2006-11-03 20:47:56

by Maciej Rutecki

[permalink] [raw]
Subject: Re: [2.6.18] Suspend to ram and SATA

Martin Lorenz napisa?(a):
>
> for 2.6.18 there is a patch which makes AHCI sata behave correctly on
> suspend/resume. it was originally written by Forrest Zhao and is now
> included in the 2.6.19-rcX tree
>
> you can apply the libata patch that went into 2.6.18-mm1. it is to be found
> in the broken-out dir of 2.6.18-mm1 and named
> git-libata-all-2.6.18-mm1.patch
>
> when applying it to 2.6.18.1 you will get three rejects because the patches
> are already in 2.6.18.1. simply say 'n' -> 'n' on those three.
>
A test this patch witch 2.6.18 and works great, thanks :-)

--
Maciej Rutecki <[email protected]>
http://www.unixy.pl
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)


Attachments:
smime.p7s (3.19 kB)
S/MIME Cryptographic Signature