external USB Storage offlined and not usable - only in ubuntu kernels - not in gentoo / opensuse

Bug #868233 reported by Michael Alzheimer
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

if i attach a external USB-Storage Disk (usb3.0 disk) to my usb port (only 2), the disk get not regognized and be offlined.
Here are the Messages from "dmesg":

[ 315.050075] usb 1-6: new high speed USB device using ehci_hcd and address 6
[ 315.217243] scsi2 : uas
[ 315.220102] usbcore: registered new interface driver uas
[ 315.230608] Initializing USB Mass Storage driver...
[ 315.230682] usbcore: registered new interface driver usb-storage
[ 315.230685] USB Mass Storage support registered.
[ 318.972592] scsi 2:0:0:0: Direct-Access Hitachi Touro Mobile Pro A0D0 PQ: 0 ANSI: 4
[ 325.020050] scsi 2:0:0:0: uas_eh_abort_handler tag 0
[ 325.020060] scsi 2:0:0:0: uas_eh_device_reset_handler tag 0
[ 325.020064] scsi 2:0:0:0: uas_eh_target_reset_handler tag 0
[ 325.020067] scsi 2:0:0:0: uas_eh_bus_reset_handler tag 0
[ 325.140428] usb 1-6: reset high speed USB device using ehci_hcd and address 6
[ 325.311568] scsi 2:0:0:0: Device offlined - not ready after error recovery
[ 325.311668] scsi 2:0:0:0: rejecting I/O to offline device
[ 325.311679] scsi 2:0:0:0: rejecting I/O to offline device
[ 325.313168] scsi 2:0:0:1: Enclosure Hitachi SES A0D0 PQ: 0 ANSI: 4
[ 325.313399] scsi 2:0:0:2: uas_sense_old: urb length 26 disagrees with IU sense data length 510, using 18 bytes of sense data
[ 325.314540] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 325.315007] scsi 2:0:0:1: Attached scsi generic sg3 type 13
[ 356.080133] sd 2:0:0:0: uas_eh_abort_handler tag 0
[ 356.080147] sd 2:0:0:0: uas_eh_device_reset_handler tag 0
[ 356.080153] sd 2:0:0:0: uas_eh_target_reset_handler tag 0
[ 356.080159] sd 2:0:0:0: uas_eh_bus_reset_handler tag 0
[ 356.200057] usb 1-6: reset high speed USB device using ehci_hcd and address 6
[ 356.351683] sd 2:0:0:0: Device offlined - not ready after error recovery
[ 356.351755] sd 2:0:0:0: rejecting I/O to offline device
[ 356.351772] sd 2:0:0:0: rejecting I/O to offline device
[ 356.351781] sd 2:0:0:0: rejecting I/O to offline device
[ 356.351788] sd 2:0:0:0: [sdb] READ CAPACITY failed
[ 356.351793] sd 2:0:0:0: [sdb] Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 356.351801] sd 2:0:0:0: [sdb] Sense not available.
[ 356.351809] sd 2:0:0:0: rejecting I/O to offline device
[ 356.351816] sd 2:0:0:0: [sdb] Write Protect is off
[ 356.351822] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[ 356.351828] sd 2:0:0:0: rejecting I/O to offline device
[ 356.351836] sd 2:0:0:0: [sdb] Asking for cache data failed
[ 356.351840] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 356.352177] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 356.360520] ses 2:0:0:1: Attached Enclosure device

This happens ONLY with ubuntu Kernels (specially here 2.6.38-11-server #50-Ubuntu SMP), but also happens with ubuntu live CD.

Attaching the same disk to the same notebook but booted a self compiled gentoo linux (also 2.6.38) or a installed opensuse 11.4 the disk works perfectly as expected...

Furthermore attaching another usb2.0 disk to the usb 2.0 port on the notebook (with ubuntu-kernel) it gets only as usb 1.1 recognized and is extremly slow, of course.

As I remember I had similar problems under gentoo (a lot kernel versions ago) - fixed it by NOT compiling the {u,o,e}hci_hcd modules into the kernel - but compiling them as modules and loading them in (maybe?) special order.

Revision history for this message
Michael Alzheimer (michael-alzheimer) wrote :
Revision history for this message
Michael Alzheimer (michael-alzheimer) wrote :
Revision history for this message
Michael Alzheimer (michael-alzheimer) wrote :

lsusb.log:
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 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 4971:1012 SimpleTech
Bus 001 Device 005: ID 0b97:7762 O2 Micro, Inc. Oz776 SmartCard Reader
Bus 001 Device 004: ID 0b97:7761 O2 Micro, Inc. Oz776 1.1 Hub
Bus 001 Device 003: ID 413c:0058 Dell Computer Corp. Port Replicator
Bus 001 Device 002: ID 413c:a005 Dell Computer Corp. Internal 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

proc_version_signature.log:
Ubuntu 2.6.38-11.50-server 2.6.38.8

uname-a.log
Linux k 2.6.38-11-server #50-Ubuntu SMP Mon Sep 12 21:34:27 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

affects: linux-ports-meta (Ubuntu) → linux-meta (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
t98907 (t98907) wrote :

I faced the same problem.

Ubuntu 11.10 -> failed.
Ubuntu 11.04 -> failed.
Ubuntu 10.10 -> ok.

Revision history for this message
Michael Alzheimer (michael-alzheimer) wrote :

blacklisting the uas kernel module is for me the workaround. - then it works - i think might be a problem with the uas module?

root@k:~# more /etc/modprobe.d/blacklist.conf
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

blacklist uas

Revision history for this message
t98907 (t98907) wrote :

Aha! It worked!
Thanks.

Brad Figg (brad-figg)
affects: linux-meta (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
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.