linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* regression in 2.6.27.45 with usb and suspend-to-disk
@ 2010-02-03  9:24 Corey Wright
  2010-02-03 15:05 ` Alan Stern
  0 siblings, 1 reply; 9+ messages in thread
From: Corey Wright @ 2010-02-03  9:24 UTC (permalink / raw)
  To: Greg KH, Alan Stern, stable, linux-kernel

2.6.27.45 will only suspend-to-disk once without rebooting.  every attempt
to suspend-to-disk after the first attempt results in "pm_op():
usb_dev_freeze +0x0/0xa returns -16" and "PM: Device usb1 failed to freeze:
error -16".  reverting commit 4fbebe26d7a5eed6c1900bf2142b68af7df38462
(http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=commit;h=4fbebe26d7a5eed6c1900bf2142b68af7df38462)
fixes the problem.

this problem exhibits itself on both a x86-64 desktop and i386 netbook
(though the reverted commit was only tested on the x86-64 desktop).  the
affected computers are different architectures, different distributions
(debian lenny vs ubuntu hardy), and different kernel configs (but unchanged
since 2.6.27.23), so i am fairly certain this is a regression in 2.6.27.45
and not the result of an environment change.

i normally use the pm-hibernate command to suspend to disk, but to isolate
the problem i used the kernel interfaces directly (as demonstrated in the
transcript below).

i can provide any other information necessary (eg .config, dmesg, lsusb)
and i am willing to test patches.

transcript of problem:

root@computer:~# uname -a
Linux computer 2.6.27.45+1-k8 #1 SMP Wed Feb 3 07:06:38 UTC 2010 x86_64
GNU/Linux
root@computer:~# cat /sys/power/disk
[platform] test testproc shutdown reboot
root@computer:~# cat /sys/power/state
standby mem disk
root@computer:~# echo disk >/sys/power/state
<suspends to disk, powers off, and is manually powered back on>
root@computer:~# echo disk >/sys/power/state
bash: echo: write error: Device or resource busy
root@computer:~# tail /var/log/kern.log | grep -i pm
Feb  3 01:45:25 computer kernel: [  263.666343] PM: Syncing filesystems ...
done.
Feb  3 01:45:25 computer kernel: [  263.887504] PM: Shrinking memory...
done (4347 pages freed)
Feb  3 01:45:25 computer kernel: [  268.023515] PM: Freed 17388 kbytes in
4.11 seconds (4.23 MB/s)
Feb  3 01:45:25 computer kernel: [  268.061753] pm_op(): usb_dev_freeze
+0x0/0xa returns -16
Feb  3 01:45:25 computer kernel: [  268.061769] PM: Device usb1 failed to
freeze: error -16
<revert commit 4fbebe26d7a5eed6c1900bf2142b68af7df38462, rebuild kernel,
install, and reboot>
root@computer:~# uname -a
Linux computer 2.6.27.45+2-k8-revert-as1321 #1 SMP Wed Feb 3 07:56:46 UTC
2010 x86_64 GNU/Linux
root@computer:~# cat /sys/power/disk
[platform] test testproc shutdown reboot 
root@computer:~# cat /sys/power/state
standby mem disk
root@computer:~# echo disk >/sys/power/state
<suspends to disk, powers off, and is manually powered back on>
root@computer:~# echo disk >/sys/power/state
<suspends to disk, powers off, and is manually powered back on>

thanks for maintaining and contributing to the 2.6.27 stable kernel series!

corey
-- 
undefined@pobox.com

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

end of thread, other threads:[~2010-02-05  2:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-03  9:24 regression in 2.6.27.45 with usb and suspend-to-disk Corey Wright
2010-02-03 15:05 ` Alan Stern
2010-02-03 17:59   ` Corey Wright
2010-02-03 18:09     ` Alan Stern
2010-02-03 19:47       ` Corey Wright
2010-02-03 20:31         ` Alan Stern
2010-02-04  7:46           ` Corey Wright
2010-02-04 19:15             ` Alan Stern
2010-02-05  2:52               ` Corey Wright

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