From vs@theater.dyndns.org  Sun Mar 31 02:47:15 2002
Return-Path: <vs@theater.dyndns.org>
Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18])
	by hub.freebsd.org (Postfix) with ESMTP id 249FA37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 31 Mar 2002 02:47:14 -0800 (PST)
Received: from fwd04.sul.t-online.de 
	by mailout04.sul.t-online.com with smtp 
	id 16rbbE-0004M6-05; Sun, 31 Mar 2002 11:26:08 +0200
Received: from theater.dyndns.org (320068889749-0001@[62.226.2.113]) by fmrl04.sul.t-online.com
	with esmtp id 16rbb9-0iHyO8C; Sun, 31 Mar 2002 11:26:03 +0200
Received: from lambda.foldr.org (lambda.foldr.org [192.168.2.3])
	by theater.dyndns.org (8.11.6/8.11.6) with ESMTP id g2V9QTP30404
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 31 Mar 2002 11:26:31 +0200 (CEST)
	(envelope-from vs@theater.dyndns.org)
Received: (from vs@localhost)
	by lambda.foldr.org (8.11.6/8.11.6) id g2V9Pxm00490;
	Sun, 31 Mar 2002 11:25:59 +0200 (CEST)
	(envelope-from vs)
Message-Id: <200203310925.g2V9Pxm00490@lambda.foldr.org>
Date: Sun, 31 Mar 2002 11:25:59 +0200 (CEST)
From: Volker Stolz <vs@foldr.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: umass fails when RiteLink Pocket Disk is connected on boot
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         36569
>Category:       kern
>Synopsis:       umass fails when RiteLink Pocket Disk is connected on boot
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 31 02:50:01 PST 2002
>Closed-Date:    Tue Apr 20 08:26:44 PDT 2004
>Last-Modified:  Tue Apr 20 08:30:22 PDT 2004
>Originator:     Volker Stolz
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
Lehrstuhl fr Informatik II
>Environment:
System: FreeBSD lambda.foldr.org 4.5-STABLE FreeBSD 4.5-STABLE #5: Sun Mar 31 09:56:55 CEST 2002 root@lambda.foldr.org:/usr/src/sys/compile/MONSTER i386


>Description:
If the RiteLink USB Pocket Disk (supported by umass, although you need to use quirks) is
connected on booting, the following happens:

 - ad0 timeouts waiting for an interrupt (see dmesg below)
 - the umass driver is really unhappy (BBB {reset,bulk-in, bulk-out} timeouts)
      which leads to an unusable USB port
 - if you disconnect the USB memory stick during this phase, you get a trap 12 in
      usbd_transport.

OTOH, connecting the device after boot-up works as expected.

Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.5-STABLE #5: Sun Mar 31 09:56:55 CEST 2002
    root@lambda.foldr.org:/usr/src/sys/compile/MONSTER
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (751.71-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 268369920 (262080K bytes)
avail memory = 256483328 (250472K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  0, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00178011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc048c000.
Preloaded elf module "linux.ko" at 0xc048c09c.
Preloaded elf module "agp.ko" at 0xc048c13c.
Preloaded elf module "drm.ko" at 0xc048c1d8.
ccd0-3: Concatenated disk drivers
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 8 entries at 0xc00fdd20
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA 82C691 (Apollo Pro) host to PCI bridge> mem 0xe8000000-0xefffffff at device 0.0 on pci0
pcib1: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <3Dfx Voodoo 3 graphics accelerator> at 0.0 irq 5
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA100 controller> port 0xd000-0xd00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 10 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
umass0: vendor 0x0c76 product 0x0003, rev 1.10/1.00, addr 2
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 10 at device 7.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: <unknown card> (vendor=0x1106, dev=0x3057) at 7.4
sym0: <810a> port 0xdc00-0xdcff mem 0xf7001000-0xf70010ff irq 11 at device 9.0 on pci0
sym0: No NVRAM, ID 7, Fast-10, SE, parity checking
de0: <Digital 21041 Ethernet> port 0xe000-0xe07f mem 0xf7000000-0xf700007f irq 10 at device 10.0 on pci0
de0: 21041 [10Mb/s] pass 2.1
de0: address 00:40:05:a6:fc:01
pcm0: <Creative EMU10K1> port 0xe400-0xe41f irq 5 at device 11.0 on pci0
pci0: <unknown card> (vendor=0x109e, dev=0x036e) at 12.0 irq 11
pci0: <unknown card> (vendor=0x109e, dev=0x0878) at 12.1 irq 11
orm0: <Option ROMs> at iomem 0xc0000-0xc9fff,0xcc000-0xcffff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IPsec: Initialized Security Association Processing.
IP Filter: v3.4.20 initialized.  Default = block all, Logging = enabled
SMP: AP CPU #1 Launched!
ad0: timeout waiting for interrupt
ad0: 32253MB <MAXTOR 6L040J2> [69899/15/63] at ata0-master UDMA100
ad1: 19623MB <IBM-DTLA-305020> [39870/16/63] at ata0-slave UDMA100
acd0: CD-RW <4X4X32> at ata1-slave PIO4
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out 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
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out 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
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
Mounting root from ufs:/dev/ad0s2a
cd0 at sym0 bus 0 target 0 lun 0
cd0: <PIONEER DVD-ROM DVD-303 1.09> Removable CD-ROM SCSI-2 device 
cd0: 10.000MB/s transfers (10.000MHz, offset 8)
cd0: Attempt to query device size failed: NOT READY, Medium not present
drm0: <3Dfx Voodoo 3 graphics accelerator> port 0xc000-0xc0ff mem 0xf4000000-0xf5ffffff,0xf0000000-0xf1ffffff irq 5 at device 0.0 on pci1
info: [drm] AGP at 0xe8000000 128MB
info: [drm] Initialized tdfx 1.0.0 20000928 on minor 0
>How-To-Repeat:
Plug in USB device RiteLink Pocket Disk before powering up, boot -> above errors.
>Fix:
Workaround: Do not attach this device before booting. Caveat: makes remote administration
not exactly easy...

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Mon Jul 14 04:19:58 PDT 2003 
State-Changed-Why:  
Does this problem persist in recent releases? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36569 
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 18:00:32 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36569 

From: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
To: joe@freebsd.org
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/36569: umass fails when RiteLink Pocket Disk is connected on boot
Date: Mon, 25 Aug 2003 12:26:03 +0200

 On Sun, Mar 31, 2002 at 11:25:59AM +0200, Volker Stolz wrote:
 > >Number:         36569
 > >Category:       kern
 > >Synopsis:       umass fails when RiteLink Pocket Disk is connected on boot
 > >Description:
 > If the RiteLink USB Pocket Disk (supported by umass, although you need to use quirks) is
 > connected on booting, the following happens:
 
 This PR is more or less still pertinent to -STABLE (I'm unsure about
 my -CURRENT-box, it has more severe trouble with its USB hardware).
 Here's the output from
 
 FreeBSD menelaos.informatik.rwth-aachen.de 4.8-STABLE FreeBSD 4.8-STABLE #8: Fri Aug 22 12:08:19 CEST 2003     root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS  i386
 
 ...
 ohci0: <SiS 5571 USB controller> mem 0xf2000000-0xf2000fff irq 9 at device 3.0 on pci0
 usb0: OHCI version 1.0, legacy support
 usb0: SMM does not respond, resetting
 usb0: <SiS 5571 USB controller> on ohci0
 usb0: USB revision 1.0
 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 umass0: Luwen product 0x0003, rev 1.10/1.00, addr 2
 ohci1: <SiS 5571 USB controller> mem 0xf1800000-0xf1800fff irq 9 at device 3.1 on pci0
 usb1: OHCI version 1.0, legacy support
 usb1: SMM does not respond, resetting
 usb1: <SiS 5571 USB controller> on ohci1
 usb1: USB revision 1.0
 uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 ohci2: <SiS 5571 USB controller> mem 0xf1000000-0xf1000fff irq 9 at device 3.2 on pci0
 usb2: OHCI version 1.0, legacy support
 usb2: SMM does not respond, resetting
 usb2: <SiS 5571 USB controller> on ohci2
 usb2: USB revision 1.0
 uhub2: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhub3: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2
 uhub3: 2 ports with 2 removable, self powered
 ...
 Waiting 3 seconds for SCSI devices to settle
 umass0: BBB reset failed, TIMEOUT
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 umass0: BBB reset failed, IOERROR
 umass0: BBB bulk-in clear stall failed, IOERROR
 umass0: BBB bulk-out clear stall failed, IOERROR
 
 After unplugging and replugging it:
 
 umass0: at uhub0 port 1 (addr 2) disconnected
 umass0: detached
 uhub0: device problem, disabling port 1
 uhub0: port error, restarting port 1
 umass0: Luwen product 0x0003, rev 1.10/1.00, addr 2
 umass0: BBB reset failed, TIMEOUT
 umass0: BBB bulk-in clear stall failed, TIMEOUT
 umass0: BBB bulk-out 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
 
 If the USB stick is connected after boot, everything works as
 expected (and no "usb0: SMM does not respond, resetting"!):
 
 umass0: Luwen product 0x0003, rev 1.10/1.00, addr 2
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: <RiteLink mass storage 1.00> Removable Direct Access SCSI-2 device
 da0: 650KB/s transfers
 da0: 124MB (254720 512 byte sectors: 64H 32S/T 124C)
 [mount/check filesystem/unmount]
 umass0: at uhub0 port 1 (addr 2) disconnected
 (da0:umass-sim0:0:0:0): lost device
 (da0:umass-sim0:0:0:0): removing device entry
 umass0: detached
 
 NB: No quirks involved now.
 -- 
 http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
 rage against the finite state machine 
Responsible-Changed-From-To: joe->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Wed Sep 3 17:50:20 PDT 2003 
Responsible-Changed-Why:  
Take over this since I've done some umass work recently 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36569 

From: Nate Lawson <nate@root.org>
To: vs@foldr.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/36569
Date: Sun, 18 Apr 2004 20:56:26 -0700 (PDT)

 Does this device work on a -current or -stable after 2003/9 with no
 options DA_OLD_QUIRKS?
 
 -Nate
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Tue Apr 20 08:26:25 PDT 2004 
State-Changed-Why:  
User indicates this problem is fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36569 

From: Nate Lawson <nate@root.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/36569 
Date: Tue, 20 Apr 2004 08:24:41 -0700 (PDT)

 ---------- Forwarded message ----------
 Date: Tue, 20 Apr 2004 15:52:47 +0200
 From: Volker Stolz <vs@FreeBSD.org>
 
 On Sun, Apr 18, 2004 at 08:56:26PM -0700, Nate Lawson wrote:
 > Does this device work on a -current or -stable after 2003/9 with no
 > options DA_OLD_QUIRKS?
 
 Now it works fine on
 FreeBSD menelaos.informatik.rwth-aachen.de 4.9-STABLE FreeBSD 4.9-STABLE #15: Thu Mar 25 15:34:34 CET 2004     root@menelaos.informatik.rwth-aachen.de:/usr/obj/usr/src/sys/MENELAOS  i386
 
 On booting with the pen plugged in it behaves a bit weird, but works
 in the end:
 
 ohci0: <SiS 5571 USB controller> mem 0xf2000000-0xf2000fff irq 9 at device 3.0 on pci0
 usb0: OHCI version 1.0, legacy support
 usb0: SMM does not respond, resetting
 usb0: <SiS 5571 USB controller> on ohci0
 usb0: USB revision 1.0
 uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 umass0: Luwen product 0x0003, rev 1.10/1.00, addr 2
 ohci1: <SiS 5571 USB controller> mem 0xf1800000-0xf1800fff irq 9 at device 3.1 on pci0
 usb1: OHCI version 1.0, legacy support
 usb1: SMM does not respond, resetting
 usb1: <SiS 5571 USB controller> on ohci1
 usb1: USB revision 1.0
 uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 ohci2: <SiS 5571 USB controller> mem 0xf1000000-0xf1000fff irq 9 at device 3.2 on pci0
 usb2: OHCI version 1.0, legacy support
 usb2: SMM does not respond, resetting
 usb2: <SiS 5571 USB controller> on ohci2
 usb2: USB revision 1.0
 uhub2: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhub3: Philips Semiconductors hub, class 9/0, rev 1.10/1.10, addr 2
 uhub3: 2 ports with 2 removable, self powered
 ...
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: <RiteLink mass storage 1.00> Removable Direct Access SCSI-2 device
 da0: 650KB/s transfers
 da0: 124MB (254720 512 byte sectors: 64H 32S/T 124C)
 
 Good job!
 -- 
 Hermes: Look at me! I'm invisible.
 http://lambda.foldr.org/~vs/ * PGP * S/MIME
>Unformatted:
