LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   usb controller dies mounting external usb hard disk (https://www.linuxquestions.org/questions/linux-hardware-18/usb-controller-dies-mounting-external-usb-hard-disk-386641/)

komasoftware 11-26-2005 04:44 AM

usb controller dies mounting external usb hard disk
 
Help !

I got a maxtor One Touch II external USB drive. It works just fine under FC3. I installed FC4 on an old box and I try to get this disk to work on this machine now.
kernel is 2.6.13-1.1532_FC4 #1

the usb ports are detected just fine :
Code:

USB Universal Host Controller Interface driver v2.3
PCI: Found IRQ 5 for device 0000:00:07.2
PCI: Sharing IRQ 5 with 0000:00:07.3
PCI: Sharing IRQ 5 with 0000:00:08.0
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 5, io base 0x0000d400
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 5 for device 0000:00:07.3
PCI: Sharing IRQ 5 with 0000:00:07.2
PCI: Sharing IRQ 5 with 0000:00:08.0
uhci_hcd 0000:00:07.3: UHCI Host Controller
uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:07.3: irq 5, io base 0x0000d800
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected

I turn on the external disk (or I plug it in - it amounts to the same problem) :

Code:

usb 1-2: new full speed USB device using uhci_hcd and address 2
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
  Vendor: Maxtor    Model: OneTouch II      Rev: 023g
  Type:  Direct-Access                      ANSI SCSI revision: 04
usb-storage: device scan complete
SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
sda: assuming drive cache: write through
SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
sda: assuming drive cache: write through
 sda: sda1 sda2 sda3

But when I try to mount the disk :

Code:

uhci_hcd 0000:00:07.2: host system error, PCI problems?
uhci_hcd 0000:00:07.2: host controller halted, very bad!
uhci_hcd 0000:00:07.2: HC died; cleaning up
usb 1-2: USB disconnect, address 2
scsi0 (0:0): rejecting I/O to dead device
Buffer I/O error on device sda2, logical block 4151048
Buffer I/O error on device sda2, logical block 4151049
Buffer I/O error on device sda2, logical block 4151050
Buffer I/O error on device sda2, logical block 4151051
Buffer I/O error on device sda2, logical block 4151052
Buffer I/O error on device sda2, logical block 4151053
Buffer I/O error on device sda2, logical block 4151054
Buffer I/O error on device sda2, logical block 4151055
scsi0 (0:0): rejecting I/O to dead device
Buffer I/O error on device sda2, logical block 561680
Buffer I/O error on device sda2, logical block 561681
scsi0 (0:0): rejecting I/O to dead device

The usb controller is on board - so I think it cannot be a PCI problem.
Anyway, I got myself a extra USB controller card (D-LINK DUB-A2) and I disabled the on board controller in the BIOS. The results are exactly the same.
Strangely enought, I can fdisk /dev/sda and view the partition table. I tried several times to repartition the disk (on my working FC3) and reformatting the drive, using all kinds of file systems.

When I do :
Code:

# rmmod uhci-hcd
# rmmod ehci-hcd
# modprobe uhci-hcd
# modprobe ehci-hcd

then the controller is back up and I can fdisk the drive again but mount still hangs the usb controller.
This is the output of /proc/bus/usb/devices

Code:

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.13-1.1532_FC4 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:07.3
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=  2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.13-1.1532_FC4 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:07.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=  2 Ivl=255ms

Any wizards out there ??

thx in advance

Brian1 11-27-2005 12:16 PM

I don't really have a good conclusion but here is a few things I see. You are using the uhci-hcd module for the orginal USB onboard controller. That is used for some version 1.0-1.1 usb controllers. Other 1.0-1.1 controllers use ohci-hcd module. For 2.0 USB controllers you use ehci-hcd module. So if on board usb is disabled and the dlink controller is plugged then just use ehci-hcd module, since my search shows that controller is a 2.0 usb controller.

Output of /proc/bus/usb/devices is showing a 12mb devices. If it was seeing the dlink 2.0 it should say 480mb. I would turn on the onboard usb controller and still have the dlink controller plugged in and see if the /proc/bus/usb/devices differ as far as addition devices. If there is no difference then the dlink card is not plugged in or is not compatiable with any of the USB modules.

Never used that controller and don't know if it is good or bad. Does it work with other USB devices?

My only experience with pci USB 2.0 controllers are those from Adaptec. Never had a problem with my setup.

Hope something helps.
Brian

komasoftware 11-28-2005 03:16 PM

It's somewhat working....
 
Many thx Brian for your interest and help.

I re-partitioned the drive and reformatted the partitions on it.
Still I have the onboard controller disabled and I moved the new USB D-LINK controller to a different PCI slot.
And wow, I can mount it and touch /mnt/maxtor/test.txt actually put a file on it ! Victory.

However the system is now soooooooo slow that I couldnt get a reply posted here and had to switch pc's.
The display refreshes now so slow that I would wait 5 mins for a typed text to appear. Maybe I have some kind of interrupt conflict ?

Did I mention that my bios is <2000 and that ACPI is disabled for this reason. Can this be related to this ?
And another question, I can see 4 ports in the /proc/bus/usb/devices, but the D-LINK only has 2. I'm guessing the onboard controller isnt really disabled then ?

Anyway, happy to make some progress here.

T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.13-1.1532_FC4 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:0c.1
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.13-1.1532_FC4 uhci_hcd
S: Product=UHCI Host Controller
S: SerialNumber=0000:00:0c.0
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.13-1.1532_FC4 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=0000:00:0c.2
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms

T: Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0d49 ProdID=7110 Rev= 2.03
S: Manufacturer=Maxtor
S: Product=OneTouch II
S: SerialNumber=B41HK7HH
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=32ms

Brian1 11-28-2005 05:44 PM

Can not say its an interrupt issue or not. Since moving from on pci slot to another it could be. So if the card is not in the machine, everything works great minus the 2.0 drive? My only other thought is try a different brand of USB controller.

Hope you get it going
Brian

komasoftware 11-30-2005 01:18 PM

must be some IRQ problem
 
after a while this appears in de logs, and the device dies....

irq 10: nobody cared (try booting with the "irqpoll" option)
[<c0169156>] __report_bad_irq+0x24/0x7f
[<c0169231>] note_interrupt+0x62/0xb1
[<c0167458>] __do_IRQ+0x39f/0x577
[<c0106941>] do_IRQ+0x4a/0x82
=======================
[<c0104622>] common_interrupt+0x1a/0x20
handlers:
[<e0a994a0>] (ivtv_irq_handler+0x0/0xa59 [ivtv])
[<c033c026>] (usb_hcd_irq+0x0/0x52)
Disabling IRQ #10
usb 1-3: reset high speed USB device using ehci_hcd and address 2
usb 1-3: device not accepting address 2, error -110
usb 1-3: reset high speed USB device using ehci_hcd and address 2
usb 1-3: device not accepting address 2, error -110
usb 1-3: reset high speed USB device using ehci_hcd and address 2
usb 1-3: device not accepting address 2, error -110
usb 1-3: reset high speed USB device using ehci_hcd and address 2
usb 1-3: device not accepting address 2, error -110
usb 1-3: USB disconnect, address 2
scsi: Device offlined - not ready after error recovery: host 0 channel 0 id 0 lun 0
SCSI error : <0 0 0 0> return code = 0x10000
end_request: I/O error, dev sda, sector 65
EXT3-fs: unable to read superblock
usb 1-3: new high speed USB device using ehci_hcd and address 3
usb 1-3: device not accepting address 3, error -110
usb 1-3: new high speed USB device using ehci_hcd and address 4
usb 1-3: device not accepting address 4, error -110
usb 1-3: new high speed USB device using ehci_hcd and address 5
usb 1-3: device not accepting address 5, error -110
usb 1-3: new high speed USB device using ehci_hcd and address 6
usb 1-3: device not accepting address 6, error -110


All times are GMT -5. The time now is 11:50 PM.