Subject: Still ehci+umass trouble
To: Juan RP <juan@xtrarom.org>
From: Martin S. Weber <Ephaeton@gmx.net>
List: current-users
Date: 01/22/2006 16:15:02
Hoi

On Tue, Jan 17, 2006 at 02:02:43PM +0100, Juan RP wrote:
> On Mon, Jan 16, 2006 at 08:17:54PM -0500, Chapman Flack wrote:
> > Thomas Klausner wrote:
> > >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.
> > >...
> > >Ideas?
> > 
> > kern/26681?
> 
> I've committed code from OpenBSD that will fix this on VIA EHCI
> controllers. Does that fix your problems? 

No. Effects (timeouts, stalls, unability to umount the thing due to which
a clean shutdown is impossible, sometimes even hangs in ddb itself..)
"as usual".

1. I have these (exact same) problems with an Intel EHCI too:

NetBSD rfhinf038 3.99.11 NetBSD 3.99.11 (GENERIC) 
 #0: Sat Nov 19 17:13:02 CET 2005  
 root@rfhinf038:/usr/home/netbsd/obj/sys/arch/i386/compile/GENERIC i386

uhci0 at pci0 dev 29 function 0: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 29 function 1: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci1: interrupting at irq 10
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 29 function 2: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci2: interrupting at irq 9
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 29 function 3: Intel 82801EB/ER USB UHCI Controller (rev. 0x02)
uhci3: interrupting at irq 11
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 29 function 7: Intel 82801EB/ER USB EHCI Controller (rev. 0x02)
ehci0: interrupting at irq 5
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0


(Please note that this machine is running an older kernel and does
 not have the OpenBSD patches. Just to show that VIA's not the only
 affected controller)

2. I STILL have these (exact same) problems with my VIA EHCI

NetBSD circe.entropie.net 3.99.15 NetBSD 3.99.15 (CIRCE.LEAN) 
 #0: Sat Jan 21 14:53:01 CET 2006  
 root@circe.entropie.net:/src/obj/sys/arch/i386/compile/CIRCE.LEAN i386

	uhci0 at pci0 dev 2 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x61)
	uhci0: interrupting at ioapic1 pin 2 (irq 11)
	usb0 at uhci0: USB revision 1.0
	uhci1 at pci0 dev 2 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x61)
	uhci1: interrupting at ioapic1 pin 3 (irq 11)
	usb1 at uhci1: USB revision 1.0
	ehci0 at pci0 dev 2 function 2: VIA Technologies VT8237 EHCI USB Controller (rev. 0x63)
	ehci0: interrupting at ioapic1 pin 2 (irq 11)
	ehci0: BIOS has given up ownership
	ehci0: EHCI version 1.0
	ehci0: companion controllers, 2 ports each: uhci0 uhci1
	usb2 at ehci0: USB revision 2.0
	ohci0 at pci0 dev 15 function 2: ServerWorks OSB4/CSB5 USB Host Controller (rev. 0x04)
	ohci0: interrupting at ioapic1 pin 1 (irq 9)
	ohci0: OHCI version 1.0, legacy support
	usb3 at ohci0: USB revision 1.0

     $NetBSD: uhci.c,v 1.192 2005/12/24 23:41:34 perry Exp $
     $NetBSD: ohci.c,v 1.169 2005/12/19 21:57:27 tron Exp $
     $NetBSD: ehci.c,v 1.108 2006/01/17 12:30:00 xtraeme Exp $
     $NetBSD: uhci_pci.c,v 1.30 2005/12/11 12:22:51 christos Exp $
     $NetBSD: ohci_pci.c,v 1.29 2005/12/11 12:22:50 christos Exp $
     $NetBSD: ehci_pci.c,v 1.22 2006/01/17 12:30:00 xtraeme Exp $

3. send-pr will be upcoming (I don't have the umass I use to kill these
machines handy right now. I'm gonna have to kill some machines tomorrow :( 
[yes I use the same umass for torturing the machines. It might be broken but
 shouldn't be able to kill these machines.])

-Martin