[Bugme-new] [Bug 10852] New: reset high speed USB device using ehci_hcd

bugme-daemon at bugzilla.kernel.org bugme-daemon at bugzilla.kernel.org
Wed Jun 4 09:24:06 PDT 2008


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

           Summary: reset high speed USB device using ehci_hcd
           Product: Drivers
           Version: 2.5
     KernelVersion: 2.6.25.4
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: USB
        AssignedTo: greg at kroah.com
        ReportedBy: julien at kirya.net


Latest working kernel version: ?
Earliest failing kernel version: ?
Distribution: Debian GNU/Linux sid
Hardware Environment:

$ lsusb 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 003: ID 046d:c505 Logitech, Inc. Cordless Mouse+Keyboard
Receiver
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 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card
Reader/Writer (Internal/External)
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


tail /var/log/messages:
Jun  4 18:19:51 athyr kernel: [  585.689363] usb 7-3: new high speed USB device
using ehci_hcd and address 5
Jun  4 18:19:52 athyr kernel: [  585.723547] usb 7-3: configuration #1 chosen
from 1 choice
Jun  4 18:19:52 athyr kernel: [  585.723895] scsi8 : SCSI emulation for USB
Mass Storage devices
Jun  4 18:19:52 athyr kernel: [  585.724055] usb 7-3: New USB device found,
idVendor=058f, idProduct=6362
Jun  4 18:19:52 athyr kernel: [  585.724058] usb 7-3: New USB device strings:
Mfr=1, Product=2, SerialNumber=3
Jun  4 18:19:52 athyr kernel: [  585.724062] usb 7-3: Product: Mass Storage
Device
Jun  4 18:19:52 athyr kernel: [  585.724064] usb 7-3: Manufacturer: Generic
Jun  4 18:19:52 athyr kernel: [  585.724066] usb 7-3: SerialNumber: 058F312D81B
Jun  4 18:19:57 athyr kernel: [  586.729415] scsi 8:0:0:0: Direct-Access    
Generic  USB SD Reader    1.00 PQ: 0 ANSI: 0
Jun  4 18:19:57 athyr kernel: [  586.729415] scsi 8:0:0:1: Direct-Access    
Generic  USB CF Reader    1.01 PQ: 0 ANSI: 0
Jun  4 18:19:57 athyr kernel: [  586.729415] scsi 8:0:0:2: Direct-Access    
Generic  USB SM Reader    1.02 PQ: 0 ANSI: 0
Jun  4 18:19:57 athyr kernel: [  586.729415] scsi 8:0:0:3: Direct-Access    
Generic  USB MS Reader    1.03 PQ: 0 ANSI: 0
Jun  4 18:19:57 athyr kernel: [  586.730267] sd 8:0:0:0: [sdb] Attached SCSI
removable disk
Jun  4 18:19:57 athyr kernel: [  586.732122] sd 8:0:0:1: [sdc] Attached SCSI
removable disk
Jun  4 18:19:57 athyr kernel: [  586.744093] sd 8:0:0:2: [sdd] Attached SCSI
removable disk
Jun  4 18:19:57 athyr kernel: [  586.746113] sd 8:0:0:3: [sde] Attached SCSI
removable disk


Problem Description:

Several Debian users have recently complained about frequent errors in their
log related to the ehci_hcd module.
I will only talk about my own experience, others have detailed theirs on the
original bug report on Debian BTS:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=473800

When I plug my USB card reader, I notice several entries in my log files as
follows:

Jun  1 08:22:08 athyr kernel: [ 1412.134045] usb 6-2: reset high speed USB
device using ehci_hcd and address 3

After a while (I haven't counted exactly, but it is at least several minutes),
I see:
[ 2478.872720] usb 2-3: reset high speed USB device using ehci_hcd and address
2
[ 2478.901695] usb 2-3: can’t restore configuration #1 (error=-71)
[ 2478.901716] usb 2-3: USB disconnect, address 2
[ 2478.901880] sd 0:0:0:3: [sde] READ CAPACITY failed
[ 2478.901881] sd 0:0:0:3: [sde] Result: hostbyte=DID_ERROR
driverbyte=DRIVER_OK,SUGGEST_OK
[ 2478.901885] sd 0:0:0:3: [sde] Sense not available.
[ 2478.901923] sd 0:0:0:3: [sde] Write Protect is off
[ 2478.901926] sd 0:0:0:3: [sde] Mode Sense: 00 00 00 00
[ 2478.901928] sd 0:0:0:3: [sde] Assuming drive cache: write through
[ 2478.902078] sd 0:0:0:3: [sde] READ CAPACITY failed
[ 2478.902079] sd 0:0:0:3: [sde] Result: hostbyte=DID_ERROR
driverbyte=DRIVER_OK,SUGGEST_OK
[ 2478.902082] sd 0:0:0:3: [sde] Sense not available.
[ 2478.902119] sd 0:0:0:3: [sde] Write Protect is off
[ 2478.902121] sd 0:0:0:3: [sde] Mode Sense: 00 00 00 00
[ 2478.902123] sd 0:0:0:3: [sde] Assuming drive cache: write through
[ 2478.992731] usb 2-3: new high speed USB device using ehci_hcd and address 4

After this, no other log entries.

If I unplug the card reader and connect it again, the errors do not appear
anymore.

The card reader seems however to work OK (only tested with CF, ie. sdc, there
is no other card elsewhere).
This is however not the case for other users who report system crash following
to these errors.

I have tried to disable USB auto-suspend, and changing the idle-delay time
(default is 2 seconds), but it doesn’t help at all.

Unloading ehci_hcd is a workaround, as uhci_hcd is automatically loaded.

Note that the Debian kernel maintainers do not have any Debian specific usb
ehci patches.

Cheers,
Julien


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


More information about the Bugme-new mailing list