2.6.37 rc1 doesn't suspend to ram
Hi,
Some linus tree git commit in last few weeks broke suspend to ram here, s2ram -a3 -f says:
4310 open("/sys/power/state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 16
4310 fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0
4310 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f81c05bc000
4310 write(16, "mem", 3) = -1 EIO (Input/output error)
4310 close(16) = 0
4310 munmap(0x7f81c05bc000, 4096) = 0
4310 dup(2) = 16
4310 fcntl(16, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
4310 fstat(16, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0
4310 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f81c05bc000
4310 lseek(16, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
4310 write(16, "s2ram_do: Input/output error\n", 29) = 29
4310 close(16) = 0It was working fine previously. Any clues before I try to bisect?
thinkpad t400, suspend-utils git snap from 20101027
$ grep SUSPEND .config CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_SUSPEND_NVS=y CONFIG_SUSPEND=y CONFIG_SUSPEND_FREEZER=y CONFIG_USB_SUSPEND=y
Signature · 2 lines
Arkadiusz Miśkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/
Quoted 15 lines · Arkadiusz Miskiewicz
Hi,
Some linus tree git commit in last few weeks broke suspend to ram here, s2ram -a3 -f says:
4310 open("/sys/power/state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 16 4310 fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 4310 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f81c05bc000 4310 write(16, "mem", 3) = -1 EIO (Input/output error) 4310 close(16) = 0 4310 munmap(0x7f81c05bc000, 4096) = 0 4310 dup(2) = 16 4310 fcntl(16, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 4310 fstat(16, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0 4310 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
Quoted 3 lines
0) =
0x7f81c05bc0004310lseek(16, 0, SEEK_CUR)= -1 ESPIPE
(Illegal seek) 4310write(16, "s2ram_do: Input/output error\n", 29)= 29
4310 close(16) = 0
[ 2012.149491] PM: Syncing filesystems ... done. [ 2013.092294] Freezing user space processes ... (elapsed 0.01 seconds) done. [ 2013.108138] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [ 2013.124226] Suspending console(s) (use no_console_suspend to debug) [ 2013.144256] btusb_intr_complete: hci0 urb ffff8800b446dcc0 failed to resubmit (1) [ 2013.145254] btusb_bulk_complete: hci0 urb ffff8800b446d180 failed to resubmit (1) [ 2013.146255] btusb_bulk_complete: hci0 urb ffff8800b446d3c0 failed to resubmit (1) [ 2013.297335] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 2013.297715] sd 0:0:0:0: [sda] Stopping disk [ 2013.364129] tpm_tis 00:0a: tpm_transmit: tpm_send: error -5 [ 2013.364145] legacy_suspend(): pnp_bus_suspend+0x0/0x80 returns -5 [ 2013.364151] PM: Device 00:0a failed to suspend: error -5 [ 2014.245071] PM: Some devices failed to suspend [ 2014.245160] sd 0:0:0:0: [sda] Starting disk [ 2014.932062] PM: resume of devices complete after 686.981 msecs [ 2014.932878] Restarting tasks ... done. [ 2014.941645] video LNXVIDEO:00: Restoring backlight state
Signature · 2 lines
Arkadiusz Miśkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/
Quoted 29 lines · Arkadiusz Miskiewicz
Quoted 15 lines · Arkadiusz Miskiewicz
Hi,
Some linus tree git commit in last few weeks broke suspend to ram here, s2ram -a3 -f says:
4310 open("/sys/power/state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 16 4310 fstat(16, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 4310 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f81c05bc000 4310 write(16, "mem", 3) = -1 EIO (Input/output error) 4310 close(16) = 0 4310 munmap(0x7f81c05bc000, 4096) = 0 4310 dup(2) = 16 4310 fcntl(16, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) 4310 fstat(16, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 1), ...}) = 0 4310 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,Quoted 3 lines
0) =
0x7f81c05bc0004310lseek(16, 0, SEEK_CUR)= -1 ESPIPE
(Illegal seek) 4310write(16, "s2ram_do: Input/output error\n", 29)= 29
4310 close(16) = 0[ 2012.149491] PM: Syncing filesystems ... done. [ 2013.092294] Freezing user space processes ... (elapsed 0.01 seconds) done. [ 2013.108138] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [ 2013.124226] Suspending console(s) (use no_console_suspend to debug) [ 2013.144256] btusb_intr_complete: hci0 urb ffff8800b446dcc0 failed to resubmit (1) [ 2013.145254] btusb_bulk_complete: hci0 urb ffff8800b446d180 failed to resubmit (1) [ 2013.146255] btusb_bulk_complete: hci0 urb ffff8800b446d3c0 failed to resubmit (1) [ 2013.297335] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 2013.297715] sd 0:0:0:0: [sda] Stopping disk
Quoted 8 lines
[ 2013.364129] tpm_tis 00:0a: tpm_transmit: tpm_send: error -5 [ 2013.364145] legacy_suspend(): pnp_bus_suspend+0x0/0x80 returns -5 [ 2013.364151] PM: Device 00:0a failed to suspend: error -5 [ 2014.245071] PM: Some devices failed to suspend [ 2014.245160] sd 0:0:0:0: [sda] Starting disk [ 2014.932062] PM: resume of devices complete after 686.981 msecs [ 2014.932878] Restarting tasks ... done. [ 2014.941645] video LNXVIDEO:00: Restoring backlight state
Can you try the patch at http://lkml.org/lkml/2010/10/21/456, please?
Rafael
Quoted 4 lines · Rafael J. Wysocki
Quoted 3 lines · Arkadiusz Miskiewicz
Quoted 2 lines · Arkadiusz Miskiewicz
Hi,
|
Quoted 11 lines
Quoted 9 lines
[ 2012.149491] PM: Syncing filesystems ... done. [ 2013.092294] Freezing user space processes ... (elapsed 0.01 seconds)done. [ 2013.108138] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done. [ 2013.124226] Suspending console(s) (use
no_console_suspendto debug) [ 2013.144256]btusb_intr_complete: hci0 urbffff8800b446dcc0failed to resubmit (1) [ 2013.145254]btusb_bulk_complete: hci0 urbffff8800b446d180failed to resubmit (1) [ 2013.146255]btusb_bulk_complete: hci0 urbffff8800b446d3c0failed to resubmit (1) [ 2013.297335] sd 0:0:0:0: [sda] Synchronizing SCSI cacheCan you try the patch at http://lkml.org/lkml/2010/10/21/456, please?
This patch fixes things, thanks!
Quoted 1 line
Rafael
Signature · 2 lines
Arkadiusz Miśkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/