Begin forwarded message:

Date: Tue, 11 Jul 2006 06:09:34 -0700
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Bugme-new] [Bug 6817] New: USB errors and "reset high speed USB 
device"


http://bugzilla.kernel.org/show_bug.cgi?id=6817

           Summary: USB errors and "reset high speed USB device"
    Kernel Version: 2.6.17.1
            Status: NEW
          Severity: high
             Owner: [EMAIL PROTECTED]
         Submitter: [EMAIL PROTECTED]


Most recent kernel where this bug did not occur: none
Distribution: Suse 10.1 (but with kernel 2.6.17.1 from www.kernel.org)

Hardware Environment: 
  IBM ThinkPad X41 with 
  LaCie slimline DVD+-RW Dual Layer DVD writer (USB 2.0, purchased July 2005) 
  and some 1GB memory sticks (USB 2.0)

Problem Description:
  Write errors when large files are transferred; 
  sometimes no useful error message;
  in some cases "reset high speed USB device"; details see below

  I think this is a software problem because:
  * the same LaCie DVD writer works under Windows
  * the same 1GB USB sticks work under Windows
  * various USB 2.0 memory sticks with 128 MB or less work fine

  I have google'd for the error message "Reset high speed USB device",
  and it seems that everyone is confused. So I compiled and installed
  the most recent kernel (2.6.17.1), and I can reproduce the errors.

Steps to reproduce:

(A) with the DVD writer:
------------------------

Boot the computer. Connect the DVD writer. /var/log/messages says:

Jun 26 00:29:03 myhost kernel: usb 1-3: new high speed USB device using ehci_hcd
and address 3
Jun 26 00:29:03 myhost kernel: usb 1-3: configuration #1 chosen from 1 choice
Jun 26 00:29:03 myhost kernel: Initializing USB Mass Storage driver...
Jun 26 00:29:03 myhost kernel: scsi2 : SCSI emulation for USB Mass Storage 
devices
Jun 26 00:29:03 myhost kernel: usb-storage: device found at 3
Jun 26 00:29:03 myhost kernel: usb-storage: waiting for device to settle before
scanning
Jun 26 00:29:03 myhost kernel: usbcore: registered new driver usb-storage
Jun 26 00:29:03 myhost kernel: USB Mass Storage support registered.
Jun 26 00:29:08 myhost kernel:   Vendor: _NEC      Model: DVD+-RW ND-6650A  Rev:
1.23
Jun 26 00:29:08 myhost kernel:   Type:   CD-ROM                             ANSI
SCSI revision: 00
Jun 26 00:29:08 myhost kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw
xa/form2 cdda tray
Jun 26 00:29:08 myhost kernel: Uniform CD-ROM driver Revision: 3.20
Jun 26 00:29:08 myhost kernel: sr 2:0:0:0: Attached scsi CD-ROM sr0
Jun 26 00:29:08 myhost kernel: sr 2:0:0:0: Attached scsi generic sg1 type 5
Jun 26 00:29:08 myhost kernel: usb-storage: device scan complete

When I do a "growisofs -Z /dev/sr0 -R -J <some_file>", the step motor of the
DVD drive clicks like it is going to a park position. This happens a few
times, the drive speeds up and slows down a few times, all this sounds a
little unhealthy, and then I get an error before the DVD burning starts:

/dev/sr0: "Current Write Speed" is 4.1x1385KBps.
:-( unable to [EMAIL PROTECTED]: Input/output error
:-( write failed: Input/output error

/var/log/messages says nothing else but

Jun 26 00:30:53 myhost kernel: usb 1-3: reset high speed USB device using
ehci_hcd and address 3

I know that very similar errors can be caused by the "hald"
deamon. Apparently, this program regularly probes the USB bus for new
devices and somehow interfers with the DVD writing. In my case, the
"hald" was switched off all the time !

I can get the LaCie USB device to work only with kernel 2.6.16.11 (from
www.kernel.org) and only when I follow a strange recipe. It is weird, but
reproducible.

* boot the computer
* connect the DVD writer
* do a "growisofs", get the same error as above
* disconnect the DVD writer and connect it again
* do another "growisofs"
* this one works! I get a DVD burned without any errors.
* further attempts to "growisofs" all fail unless I reboot and follow the
procedure from the beginning

(B) problems with the 1GB memory sticks
---------------------------------------

When I copy a single large file to the USB memory stick with 

  cp <some_file> /media/usb/<filename>

I get (after about 600 MB of copying) the following error:

  cp: failed to preserve ownership of '/media/usb/<filename>': Operation not
permitted.

But there is nothing in /var/log/messages.

I'd be most grateful if someone could help. I am happy to provide any
additional data you require or more verbose error messages (if you
tell me how to activate that feature). 

Finally, some additional info that might help:

The following is a similar LaCie slimline DVD+-RW (purchased 09/2004) which
works fine:

Aug 13 21:42:54 myhost kernel: usb 1-3: new high speed USB device using ehci_hcd
and address 5
Aug 13 21:42:54 myhost kernel: scsi4 : SCSI emulation for USB Mass Storage 
devices
Aug 13 21:42:54 myhost kernel: usb-storage: device found at 5
Aug 13 21:42:54 myhost kernel: usb-storage: waiting for device to settle before
scanning
Aug 13 21:42:59 myhost kernel:   Vendor: _NEC      Model: DVD+-RW ND-6500A  Rev:
2.22
Aug 13 21:42:59 myhost kernel:   Type:   CD-ROM                             ANSI
SCSI revision: 00
Aug 13 21:42:59 myhost kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw
xa/form2 cdda tray
Aug 13 21:42:59 myhost kernel: Attached scsi CD-ROM sr0 at scsi4, channel 0, id
0, lun 0
Aug 13 21:42:59 myhost kernel: Attached scsi generic sg1 at scsi4, channel 0, id
0, lun 0,  type 5
Aug 13 21:42:59 myhost kernel: usb-storage: device scan complete

The following is a 128 MB USB stick that always works:

Jun 28 00:19:05 myhost kernel: usb 2-3: new high speed USB device using ehci_hcd
and address 3
Jun 28 00:19:05 myhost kernel: usb 2-3: configuration #1 chosen from 1 choice
Jun 28 00:19:06 myhost kernel: Initializing USB Mass Storage driver...
Jun 28 00:19:06 myhost kernel: scsi2 : SCSI emulation for USB Mass Storage 
devices
Jun 28 00:19:06 myhost kernel: usb-storage: device found at 3
Jun 28 00:19:06 myhost kernel: usb-storage: waiting for device to settle before
scanning
Jun 28 00:19:06 myhost kernel: usbcore: registered new driver usb-storage
Jun 28 00:19:06 myhost kernel: USB Mass Storage support registered.
Jun 28 00:19:11 myhost kernel:   Vendor: LEXAR     Model: GEYSER JUMPDRIVE  Rev:
1.00
Jun 28 00:19:11 myhost kernel:   Type:   Direct-Access                      ANSI
SCSI revision: 01 CCS
Jun 28 00:19:11 myhost kernel: SCSI device sdb: 251904 512-byte hdwr sectors
(129 MB)
Jun 28 00:19:11 myhost kernel: sdb: Write Protect is off
Jun 28 00:19:11 myhost kernel: sdb: Mode Sense: 23 00 00 00
Jun 28 00:19:11 myhost kernel: sdb: assuming drive cache: write through
Jun 28 00:19:11 myhost kernel: SCSI device sdb: 251904 512-byte hdwr sectors
(129 MB)
Jun 28 00:19:11 myhost kernel: sdb: Write Protect is off
Jun 28 00:19:11 myhost kernel: sdb: Mode Sense: 23 00 00 00
Jun 28 00:19:11 myhost kernel: sdb: assuming drive cache: write through
Jun 28 00:19:11 myhost kernel:  sdb: sdb1
Jun 28 00:19:11 myhost kernel: sd 2:0:0:0: Attached scsi removable disk sdb
Jun 28 00:19:11 myhost kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
Jun 28 00:19:11 myhost kernel: usb-storage: device scan complete

And here is one of the 1GB USB memory sticks that doesn't work:

Jun 28 00:19:29 myhost kernel: usb 2-3: new high speed USB device using ehci_hcd
and address 4
Jun 28 00:19:29 myhost kernel: usb 2-3: configuration #1 chosen from 1 choice
Jun 28 00:19:29 myhost kernel: scsi3 : SCSI emulation for USB Mass Storage 
devices
Jun 28 00:19:29 myhost kernel: usb-storage: device found at 4
Jun 28 00:19:29 myhost kernel: usb-storage: waiting for device to settle before
scanning
Jun 28 00:19:34 myhost kernel:   Vendor: USB 2.0   Model: Flash Disk        Rev:
2.00
Jun 28 00:19:34 myhost kernel:   Type:   Direct-Access                      ANSI
SCSI revision: 02
Jun 28 00:19:34 myhost kernel: SCSI device sdb: 2031616 512-byte hdwr sectors
(1040 MB)
Jun 28 00:19:34 myhost kernel: sdb: Write Protect is off
Jun 28 00:19:34 myhost kernel: sdb: Mode Sense: 0b 00 00 08
Jun 28 00:19:34 myhost kernel: sdb: assuming drive cache: write through
Jun 28 00:19:34 myhost kernel: SCSI device sdb: 2031616 512-byte hdwr sectors
(1040 MB)
Jun 28 00:19:34 myhost kernel: sdb: Write Protect is off
Jun 28 00:19:34 myhost kernel: sdb: Mode Sense: 0b 00 00 08
Jun 28 00:19:34 myhost kernel: sdb: assuming drive cache: write through
Jun 28 00:19:34 myhost kernel:  sdb: sdb1
Jun 28 00:19:34 myhost kernel: sd 3:0:0:0: Attached scsi removable disk sdb
Jun 28 00:19:34 myhost kernel: sd 3:0:0:0: Attached scsi generic sg1 type 0
Jun 28 00:19:34 myhost kernel: usb-storage: device scan complete

For the computer and the LaCie drive that doesn't work, I also include
the following output:

lspci -vv

[...]

00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family)
USB UHCI #1 (rev 03) (prog-if 00 [UHCI])
        Subsystem: IBM Unknown device 0565
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin A routed to IRQ 177
        Region 4: I/O ports at 1820 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family)
USB UHCI #2 (rev 03) (prog-if 00 [UHCI])
        Subsystem: IBM Unknown device 0565
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin B routed to IRQ 217
        Region 4: I/O ports at 1840 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family)
USB UHCI #3 (rev 03) (prog-if 00 [UHCI])
        Subsystem: IBM Unknown device 0565
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin C routed to IRQ 225
        Region 4: I/O ports at 1860 [size=32]

00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family)
USB UHCI #4 (rev 03) (prog-if 00 [UHCI])
        Subsystem: IBM Unknown device 0565
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
        Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin D routed to IRQ 201
        Region 4: I/O ports at 1880 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family)
USB2 EHCI Controller (rev 03) (prog-if 20 [EHCI])
        Subsystem: IBM Unknown device 0566
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 0
        Interrupt: pin D routed to IRQ 201
        Region 0: Memory at a0040000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA
PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [58] Debug port

[...]

lsusb -v

[...]

Bus 001 Device 003: ID 059f:0643 LaCie, Ltd
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x059f LaCie, Ltd
  idProduct          0x0643
  bcdDevice            0.00
  iManufacturer           1 LaCie
  iProduct                2 LaCie DVDRW USB
  iSerial                 3 10000F100A571126
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      5 SFF-8070i
      bInterfaceProtocol     80
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

[...]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to