USB storage device slow with reset and I/O error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: linux-source-2.6.38
USB storage devices will start at a 20MB/s transfer and after a few seconds (250MB ~ 300MB), it will slow down to under 1MB/s.
Steps to reproduce:
Insert any USB Hard Drive or Stick to a computer running Ubuntu Natty Narwhal and start to copy a file, bigger than 500MB, from computer to USB storage device. After a few seconds at USB 2.0 speed, it will slow down to USB 1.0/1.1 speed.
Dmesg output will report several ehci_hcd resets, followed by several I/O errors. After a couple of minutes, a loop with ehci_hcd resets and I/O error messages returns to dmesg output and the remaining data will be writen at less then 500KB/s, eventually aborting the process with a fatal error.
Tested it a dozen times, with 2 500GB Hard Drives on 5 different USB cables and with 2 8GB USB Sticks.
All cables are working flawlessly and all storage devices were formatted with no error or bad blocks.
lsb_release -rd output:
Description: Ubuntu Natty (development branch)
Release: 11.04
uname -r output:
2.6.38-7-generic
lspci output:
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 02)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 2 (rev 01)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
02:00.0 Ethernet controller: Atheros Communications L1 Gigabit Ethernet (rev b0)
04:00.0 VGA compatible controller: nVidia Corporation G96 [GeForce 9500 GT] (rev a1)
lsusb output:
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 05e3:1205 Genesys Logic, Inc. Afilias Optical Mouse H3003
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. transcend storejet 25P
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
I don't think it is a duplicated one with bug #500069.
From the log, some failure happened during writing sector to usb HDD. and caused " flush" task hang, then
lowered speed, but seems no such kind of errors in bug #500069.
In fact, long ago, there were a patch[1](just a quirk) to make the device[152d:2329] work well, so
it is a regression?
Considered it is easily reproduced for you, could you provide some usbmon data to
help fix the problem?
About how to trace usbmon, see Documentation/ usb/usbmon. txt.
[1] 2dd850a14d20e9f ca5937ffb5
commit 3030ca4cf4abbdd
Author: Phil Dibowitz <email address hidden>
Date: Sun Oct 19 08:17:54 2008 +0200
USB: storage: Avoid I/O errors when issuing SCSI ioctls to JMicron USB/ATA bridge
Here's the patch that implements the fix you suggested to avoid the bugzilla. kernel. org/show_ bug.cgi? id=9638# c85
I/O errors that I was running into with my new USB enclosure with a
JMicron USB/ATA bridge, while issuing scsi-io USN or other such
queries used by Fedora's mkinitrd.
http://