Bug 614989 - suspend to RAM fails when SD card mounted
Summary: suspend to RAM fails when SD card mounted
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 11.3
Classification: openSUSE
Component: Kernel (show other bugs)
Version: Milestone 7
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Rafael Wysocki
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 05:46 UTC by Will Stephenson
Modified: 2012-03-05 22:07 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Stephenson 2010-06-17 05:46:49 UTC
RC1, not M7. 

When a SD card is mounted in my X60's internal card reader, suspend to ram fails - the suspend light never stops flashing, the screen and fan stay on.

This udev trace shows the suspend process.  The mmc device is 0000:00:1e.0 and is not present, so I guess it is not umounted/driver unloaded and the driver cannot handle suspend, so suspend fails:

gorse:/home/wstephenson # udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1276753148.005949] add      /module/fat (module)
UDEV  [1276753148.006183] add      /module/fat (module)
KERNEL[1276753148.010433] add      /module/vfat (module)
UDEV  [1276753148.010801] add      /module/vfat (module)
KERNEL[1276753148.022298] add      /module/nls_cp437 (module)
UDEV  [1276753148.022652] add      /module/nls_cp437 (module)
KERNEL[1276753148.029567] add      /module/nls_iso8859_1 (module)
UDEV  [1276753148.029955] add      /module/nls_iso8859_1 (module)
KERNEL[1276753157.267940] change   /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill)
UDEV  [1276753157.267987] change   /devices/platform/thinkpad_acpi/rfkill/rfkill0 (rfkill)
KERNEL[1276753157.716845] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0/rfkill3 (rfkill)
KERNEL[1276753157.716883] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0 (bluetooth)
KERNEL[1276753157.716914] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
KERNEL[1276753157.716943] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1 (usb)
KERNEL[1276753157.716971] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2 (usb)
KERNEL[1276753157.717038] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.3 (usb)
KERNEL[1276753157.717074] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
UDEV  [1276753157.717935] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0/rfkill3 (rfkill)
UDEV  [1276753157.717978] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.1 (usb)
UDEV  [1276753157.718476] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0/bluetooth/hci0 (bluetooth)
UDEV  [1276753157.718758] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.0 (usb)
UDEV  [1276753157.727133] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.3 (usb)
UDEV  [1276753157.727213] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1/5-1:1.2 (usb)
UDEV  [1276753157.727783] remove   /devices/pci0000:00/0000:00:1d.3/usb5/5-1 (usb)
Comment 1 Jiri Slaby 2010-07-28 08:21:08 UTC
There is probably a deadlock in device suspending. Could you grab sysrq-t output?
Comment 2 Rafael Wysocki 2010-08-22 22:15:44 UTC
This issue might have been fixed by the following upstream commit:

commit 4c2ef25fe0b847d2ae818f74758ddb0be1c27d8e
Author: Maxim Levitsky <maximlevitsky@gmail.com>
Date:   Tue Aug 10 18:01:41 2010 -0700

    mmc: fix all hangs related to mmc/sd card insert/removal during suspend/resume

Would it be possible to test the kernel from:

http://ftp.suse.com/pub/projects/kernel/kotd/master/

matching your system configuration?
Comment 3 Andras Mantia 2010-09-18 07:57:06 UTC
I had a similar issue, from time to time suspend to disk failed at "snapshotting system". I started to suspect that it happens when an USB stick is plugged in. It happened both when the stick was plugged in, but also the next time after hard power off/power-on, suspend. It needed a second reboot to make it work again.
 Today I tried the kotd/master and it seems the problem is fixed, I could suspend with an USB stick plugged into the PC. Is there a chance to get the new kernel (once it is released) as an update? 
BTW, the nvidia binary driver doesn't compile ATM with the 2.6.36 series, but there is a - probably not perfect - patch making it work: http://www.nvnews.net/vbulletin/showthread.php?t=154378 .
Comment 4 Andras Mantia 2010-09-24 06:42:47 UTC
I have to withdraw my comment, I had the same issue later with 2.6.36 RC and without any USB disk mounted. So that is a similar, but probably different bug.
Comment 5 Forgotten User zSppWjup9E 2010-09-28 20:01:54 UTC
I have the same bug with the internal SD cards on my Acer Aspire One 110. When a SD card is mounted, if I suspends, it stays on the tty terminal with the login prompt but the cursor doesn't blink and the computer freezes.

Unmounting it makes the suspend to ram working.
Comment 6 Jeff Mahoney 2012-03-05 22:07:57 UTC
11.3 is out of maintenance. If you can reproduce this issue with 11.4 or 12.1, please re-open and adjust the Product field to reflect the latest version affected.