Subject: ehci+umass trouble
To: None <current-users@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: current-users
Date: 01/17/2006 00:32:42
Hi!

I recently acquired an mp3 player and, of course, tried to use
it with NetBSD.

I didn't have much luck on my main work station running 3.99.15/i386
-- very quickly after I start copying files to it, there is a umass
error and the transfer hangs. Usually, umount -f doesn't work and
I can't shutdown cleanly.

Relevant lines from dmesg:

ehci0 at pci0 dev 16 function 4: VIA Technologies VT8237 EHCI USB Controller (rev. 0x86)
ehci0: interrupting at irq 10
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
...
umass0 at uhub4 port 6 configuration 1 interface 0
umass0: TrekStor i.Beat organix, rev 2.00/10.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <TrekStor, i.Beat organix, 0100> disk removable
sd0: fabricating a geometry
sd0: 494 MB, 494 cyl, 64 head, 32 sec, 512 bytes/sect x 1012480 sectors
sd0(umass0:0:0:0): no door lock
sd0: fabricating a geometry
sd0: fabricating a geometry
...
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT

Another time the error was
ehci_idone: need toggle update status=48000049 nstatus=50000c80
umass0: at uhub4 port 5 (addr 2) disconnected
umass0: BBB reset failed, IOERROR
sd0(umass0:0:0:0): generic HBA error

The same mp3 player works fine at an ohci I have in another machine,
running 3.99.9/macppc.

Ideas?
 Thomas