USB dies when using mass-storage

Bug #154092 reported by Michael B. Trausch
6
Affects Status Importance Assigned to Milestone
linux-meta (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

On a Dell Inspiron 1501, there are problems with the USB chipset and the kernel. This probably needs to be filed upstream with the kernel developers, because I was able to reproduce the issue with several versions of the Linux kernel, including the latest one I could get my hands on.

During the course of normal operations, as long as I do not use any mass storage class device, all is well.

However, when I plug in an external hard drive, or any other mass storage device, and perform large amounts of data transfers, the entire USB subsystem of the kernel renders itself inactive. Any process using USB devices winds up left in a "D" state (as reported by the output of "ps ax", and cannot be killed via any means. After this point, no USB hardware is able to be used, including mice and printers—it's almost as if something is happening to make the entire USB stack hang. However, *no* information is reported in dmesg as to the unavailability of the USB stack, there are no kernel OOPS reports, and no indication that there is a problem other than the fact that hardware on any USB port is unavailable.

The output of lspci -vv will be attached to this bug momentarily, as well as the output of lshal.

This is critical because it means that I can not perform backups of my laptop to my USB storage devices. This problem does not exhibit itself on computers that have different USB hardware. This is an issue with Feisty and Gutsy, both 32- and 64-bit, on this computer, as well as with other systems that use the Linux kernel (in either 32- or 64-bit builds).

I have no diagnostic output to offer, because there is none being generated.

Revision history for this message
Michael B. Trausch (mtrausch) wrote :
Revision history for this message
Michael B. Trausch (mtrausch) wrote :
Revision history for this message
Michael B. Trausch (mtrausch) wrote :

Here is what happens when USB dies. The CPU usage on I/O wait goes way up (to 100% on one core, and sometimes both), the USB processes and the process that was using USB is stuck in a state of uninterruptable sleep, and the only way to fix the issue is to re-boot. This happens on any activity ranging from the creation of a new 40 GB ext2/3 fs, to checking an ext2 filesystem. to lots of data transfer after mkfs. IOW, it seems to be somewhat random, but I can only actually trigger the issue when using some form of USB mass storage.

I am about to try this again after rebooting with a small flash drive to see if I can trigger it there. Larger devices certainly trigger it all the time.

Sometimes, some error messages show up in dmesg *before* the drive fails, about resetting low speed devices. I don't know why, because everything in this system should be USB 2.0, and I know that the drive is a USB 2.0 device.

I don't think that the APIC errors are related, though I suppose anything is possible. I get them all the time, but I do not know why.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Michael,

Sorry for the extremely late response. You mention you had tested the upstream kernels and noticed this issue. Just curious which specific upstream kernel versions you tested? Have you tested the most recent 2.6.25-rc9 upstream kernel? If the issue still exists would you care to also maybe file an upstream bug report at bugzilla.kernel.org. For help with filing an upstream bug report please refer to https://wiki.ubuntu.com/KernelTeamBugPolicies . I'm also curious if this is still an issue with the Hardy Heron 8.04 kernel? You should be able to test using the LiveCD - www.ubuntu.com/testing . Thanks.

Changed in linux-meta:
status: New → Incomplete
Revision history for this message
Michael B. Trausch (mtrausch) wrote :

The next time that I have my hands on it (the laptop) I will test it again and see what happens with Hardy. Hopefully will have more information in the next day or two.

Revision history for this message
bionade (ketchup-tobillo) wrote :

Hi,

after reading a lot of other threads and bug reports I'm sure I encounterd exactely the same bug as Michael.
I'm sorry I can't give any output because all of my USB devices - including keyboard and mouse - fail. Reboot necessary.

Maybe the information can help inspite of this.
Old PC: MSI K9 Neo Platinum, nForce 3 chipset, Athlon 64 CPU
New PC: MSI 3A-H/HDMI, AMD 700 AMD 780G chipset; AthlonX2 e4850 CPU
I use exactly the same peripherals with old and new PC.

OLD PC: problem never occured. (running winXP, gutsy, feisty and hardy, each with 32bit i386.

NEW PC: Problem showed up the first time (and ever since) I plugged in any mass storage USB device (HDD, Flashdisks).
So far I tried the AMD64bit and the regular i386 versions of Hardy. Problem with both of them.

Disabling USB 2.0 support in BIOS "solves" the problem. But of course it's a "little" slow and of no much use.

Because I can't backup my data (unless I decide to buy some NAS storage), this bug is critical for me.

If you think, more information (file output) or more precise hardware info can help, I'll get a ps2 keyboard/mouse and post it.
Or run the test live CD. Whatever.

Tobi

And by the way: Ubuntu rocks. There's no way back to Redmond. TNX.

Revision history for this message
bionade (ketchup-tobillo) wrote :

Sorry, New PC has an ASUS M3A-H/HDMI mobo. Not MSI.

Revision history for this message
Michael B. Trausch (mtrausch) wrote :

bionade: Is your machine on a LAN? If so, you can install openssh-server, and when you lose the keyboard/mouse, you can SSH in from another machine and take a look at things. Just an idea.

I will also be betting my Inspiron 1501 back soon; when that happens, I hope to be able to try to find out something more meaningful about this bug.

Revision history for this message
Michael B. Trausch (mtrausch) wrote :

Unable to duplicate on the Inspiron any longer even under more strenuous conditions, so this is fixed.

Changed in linux-meta:
status: Incomplete → Invalid
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.