sdhci driver kills Suspend/Resume on Dell X1

Bug #44959 reported by Andreas Schildbach
20
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Won't Fix
High
Unassigned
linux-source-2.6.17 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kernel-image-2.6.15-22-386-di

This is a regression from Breezy.

On the Dell Latitude X1, when I press Fn-ESC (Standby) and then resume from standby by pressing the power button, I get the following error:

Got command interrupt even though no command operation was in progress.
Please report this to <email address hidden>
Unexpected card interrupt
Unexpected power interrupt
Unexpected auto CMD12 error
NETDEV_TX_BUSY returned: ...
mmc0: Timeout waiting for hardware interrupt
(last message repeated endlessly, about 1 msg per 10 seconds)

It looks like as if the new driver for SD cards broke the ability to (resume from) standby.

Tags: dapper
Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

This might be a dup of Bug #32593

Revision history for this message
Paul Sladen (sladen) wrote :

Andreas: Can you test if doing a:

  sudo modprobe -r mmc_core sdhci

and then attempting to Suspend results in a successful trip.

If that works, can you try doing:

  sudo modprobe sdhci

and checking the output from:

  /var/log/messages

Changed in linux-source-2.6.15:
status: Unconfirmed → Needs Info
Revision history for this message
Andreas Schildbach (schildbach) wrote :

I tried that on a freshly booted system, but

$ sudo modprobe -r mmc_core sdhci
FATAL: Module mmc_core is in use.

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote :

Setting back to Unconfirmed after Andreas' reply.

Changed in linux-source-2.6.15:
status: Needs Info → Unconfirmed
Revision history for this message
Andreas Schildbach (schildbach) wrote :

This bug is still present on the release candidate.

Revision history for this message
Andreas Schildbach (schildbach) wrote :

Upping the priority because this bug can cause data loss. If a user uses Standby on unsaved work, it will be lost.

Either this bug should be fixed or the Dell X1 (possibly all systems with SD-card-slot) should be excluded from the list of system allowed to standby.

Revision history for this message
Christian Zeller (chrizel) wrote :

I'm getting this problem on my Latitude X1 too.

$ sudo modprobe -r mmc_core sdhci

displays "FATAL: Module mmc_core is in use." due to module dependencies. But this works:

$ sudo modprobe -r sdhci mmc_core

Now the modules are unloaded. After that, resume from standby goes fast and doesn't take 20 seconds.

After

$ sudo modprobe sdhci

That's the /var/log/messages output:

May 30 19:46:02 localhost kernel: [4295881.645000] sdhci: Secure Digital Host Controller Interface driver, 0.10
May 30 19:46:02 localhost kernel: [4295881.646000] sdhci: Copyright(c) Pierre Ossman
May 30 19:46:02 localhost kernel: [4295881.647000] ACPI: PCI Interrupt 0000:02:01.2[C] -> GSI 17 (level, low) -> IRQ 201
May 30 19:46:02 localhost kernel: [4295881.756000] mmc0: SDHCI at 0xdfcfe700 irq 201 DMA

***

This has been already reportet in the sdhci-devel list: http://list.drzeus.cx/pipermail/sdhci-devel/2006-May/000852.html -- That's the answer: http://list.drzeus.cx/pipermail/sdhci-devel/2006-May/000855.html

So Pierre Ossman suggests to upgrade to a newer sdhci version: "This is a bit old driver. Bug your distro to upgrade to something newer
or compile one of the 2.6.17-rc:s for yourself."

And what now?

Revision history for this message
Morten Siebuhr (msiebuhr) wrote :

I get exactly the same results as Christian Zeller on my X1.

Revision history for this message
Christian Zeller (chrizel) wrote :

One simple solution to fix the problem with the long timeout after resume would be to prevent the mentioned modules from getting loaded by the kernel. I added the following two lines to my /etc/modprobe.d/blacklist:

blacklist sdhci
blacklist mmc_core

The downside is that the SD card slot certainly wouldn't run anymore, but that's no problem for me personally because I don't use it.

Revision history for this message
Ben Collins (ben-collins) wrote :

This bug may be fixed in the current edgy developement system. In an effort to track this bug to our latest distribution, it is being targeted for edgy.

Please confirm whether this bug exists in edgy. If not, then please re-attach all related output (e.g. dmesg, oops output) while under edgy.

Latest Edgy CD's can be downloaded from:

http://cdimage.ubuntu.com/releases/edgy/knot-1/

If this image does not boot fom you, you can also download a current daily build from:

http://cdimage.ubuntu.com/daily-live/current/

Note that it may only be necessary to boot the LiveCD to see if your bug is fixed. In this case, you do not need to upgrade your installed system at all to confirm it. Certain bugs may require that you do an actual installation.

Changed in linux-source-2.6.17:
status: Unconfirmed → Needs Info
Revision history for this message
Stein Magnus Jodal (jodal) wrote :

I experienced this very bug in Dapper, but cannot confirm if it is still present in Edgy (fresh install of Knot-2, regularly upgraded since) because the Dell X1 never succeeds in resuming from suspend when running Edgy. I've tried every day between Knot-2 and today after the daily upgrade.

When opening the lid, the power and network lights are turned on, but the monitor remains black (no backlight) and there is no disk activity.

This should probably be reported as a new bug, but I do not yet know what part of the system is causing this error. If anyone is interested in trying to fix this, I'm available for testing on my X1.

Revision history for this message
Ben Collins (ben-collins) wrote :

Please try latest Edgy kernel 2.6.17-8.22.

Revision history for this message
Stein Magnus Jodal (jodal) wrote :

Using kernel 2.6.17-8.22 (and with the sdhci module loaded), suspend now works perfectly on the Dell Latitude X1. I regard this bug as solved for Edgy.

Thanks :-)

Changed in linux-source-2.6.17:
status: Needs Info → Fix Released
Revision history for this message
Paul Dufresne (paulduf) wrote :

Setting to confirmed, since there seems to be enough info to decide if it will be fixed in 2.6.15 too.

Changed in linux-source-2.6.15:
status: Unconfirmed → Confirmed
Revision history for this message
Christian Zeller (chrizel) wrote :

Installed Edgy on my Dell Latitude X1. The problem is solved in Edgy.

Revision history for this message
flostre (prof-flostre) wrote :

Au contraire: I am using Edgy on my Asus Laptop with kernel 2.6.17-11, but still had the same problem. The workaround described in this thread worked though.

Revision history for this message
Bernhard Valenti (bernhard-valenti) wrote :

bug still present in feisty. 2.6.20-15-generic kernel. Dell Inspiron E1505

Revision history for this message
Stein Magnus Jodal (jodal) wrote :

Bernhard: You should file a new bug, as you do not have the same computer and the problem discussed here actually was fixed in Edgy.

Changed in linux-source-2.6.15:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.