From owner-freebsd-usb@FreeBSD.ORG Thu Feb 23 00:59:31 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DAA316A420 for ; Thu, 23 Feb 2006 00:59:31 +0000 (GMT) (envelope-from peterjderooij@gmail.com) Received: from uproxy.gmail.com (uproxy.gmail.com [66.249.92.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EF4B43D45 for ; Thu, 23 Feb 2006 00:59:30 +0000 (GMT) (envelope-from peterjderooij@gmail.com) Received: by uproxy.gmail.com with SMTP id y2so842413uge for ; Wed, 22 Feb 2006 16:59:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding:sender; b=DMJ05qW7Bfykp4iE6vx2EnWnsK21n8ST9h9mkbvFpgoVaW3feC0gvVGsd+/AGeDBzJnfNNIztgZxBzYDmlDc5nbiJ7qutLU+FOvSUO4/NVWkfcZJkAPJpk2POab3BPzwlCOtL67oBpq2RW/l0kfY9t+MfakoQQLzeErEv2N1dDw= Received: by 10.66.241.13 with SMTP id o13mr3500943ugh; Wed, 22 Feb 2006 16:59:28 -0800 (PST) Received: from ?192.168.0.101? ( [213.78.154.12]) by mx.gmail.com with ESMTP id h1sm5395803ugf.2006.02.22.16.59.27; Wed, 22 Feb 2006 16:59:28 -0800 (PST) Message-ID: <43FD08E9.5060902@derooij.org> Date: Thu, 23 Feb 2006 00:59:21 +0000 From: Peter de Rooij User-Agent: Mozilla Thunderbird 1.0.5 (Windows/20050711) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Peter de Rooij Subject: usb device detection fails during load; works afterwards X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: peter@derooij.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 00:59:31 -0000 FreeBSD 6.0 Generic on i386. Symptoms: - during load, no USB devices are detected in most cases. (dmesg for verbose boot below) Randomly (?) USB detection does work at boot and detects all attached devices; say 1 in 10 times. - after load, USB device detection does work fine. - whenever at-load-detection does not work, there is a LONG pause (half a minute or so) right after detection of keyboard, just before the unable to allocate IRQ message for psm0. dmesg extract: ============================================================ Copyright (c) 1992-2005 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 6.0-RELEASE #0: Thu Nov 3 09:36:13 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC : : CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2793.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf34 Stepping = 4 Features=0xbfebfbff Features2=0x441d> : : uhci0: port 0x1440-0x145f irq 16 at device 29.0 on pci0 uhci0: Reserved 0x20 bytes for rid 0x20 type 4 at 0x1440 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0x1460-0x147f irq 19 at device 29.1 on pci0 uhci1: Reserved 0x20 bytes for rid 0x20 type 4 at 0x1460 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0x1480-0x149f irq 18 at device 29.2 on pci0 uhci2: Reserved 0x20 bytes for rid 0x20 type 4 at 0x1480 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xfc480000-0xfc4803ff irq 23 at device 29.7 on pci0 ehci0: Reserved 0x400 bytes for rid 0x10 type 3 at 0xfc480000 ehci0: [GIANT-LOCKED] usb3: EHCI version 1.0 usb3: wrong number of companions (4 != 3) usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 8 ports with 8 removable, self powered : : pnp_identify: Trying Read_Port at 203 pnp_identify: Trying Read_Port at 243 pnp_identify: Trying Read_Port at 283 pnp_identify: Trying Read_Port at 2c3 pnp_identify: Trying Read_Port at 303 pnp_identify: Trying Read_Port at 343 pnp_identify: Trying Read_Port at 383 pnp_identify: Trying Read_Port at 3c3 PNP Identify complete pnpbios: error 0/82 getting device count/size limit unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff unknown: status reg test failed ff sc: sc0 already exists; skipping it vga: vga0 already exists; skipping it isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices pmtimer0 on isa0 adv0: not probed (disabled) aha0: not probed (disabled) aic0: not probed (disabled) atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0047 atkbd: keyboard ID 0x41ab (2) kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x3d0000 atkbd0: [GIANT-LOCKED] psm0: unable to allocate IRQ bt0: not probed (disabled) cs0: not probed (disabled) ed0: not probed (disabled) fdc0: ic_type 90 part_id 80 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: ic_type 90 part_id 80 fdc0: [MPSAFE] fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 fe0: not probed (disabled) ie0: not probed (disabled) lnc0: not probed (disabled) ppc0: parallel port found at 0x378 ppc0: using extended I/O port range ppc0: ECP SPP ECP+EPP SPP ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/13 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 plip0: bpf attached lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) sio0: irq maps: 0x4481 0x4491 0x4481 0x4481 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled sio1: irq maps: 0x4481 0x4481 0x4481 0x4481 sio1: probe failed test(s): 0 1 2 4 6 7 9 sio1 failed to probe at port 0x2f8-0x2ff irq 3 on isa0 sio2: not probed (disabled) sio3: not probed (disabled) sn0: not probed (disabled) vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 vt0: not probed (disabled) isa_probe_children: probing PnP devices Device configuration finished. procfs registered : : Trying to mount root from ufs:/dev/ad0s2a start_init: trying /sbin/init ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.10, addr 2, iclass 3/1 ums0: 3 buttons and Z dir. umass0: vendor 0x0930 USB Flash Memory, rev 2.00/1.00, addr 2 umass0:0:0:-1: Attached to scbus0 pass0 at umass-sim0 bus 0 target 0 lun 0 pass0: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device pass0: Serial Number \^_ pass0: 40.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device da0: Serial Number \^_ da0: 40.000MB/s transfers da0: 489MB (1001472 512 byte sectors: 64H 32S/T 489C) ============================================================ The ums and da0 devices were inserted after logging in (and worked fine). The printer is also USB, and if I power-cycle it, it shows as ulpt0 and unlpt0. (Let me know if I snipped too much above -- cannot imagine:-) I tried the following, with no results - I have added usbd_load="YES" in loader.conf. And ums_load="YES". - I removed a device hint for psm0 in device.hints (I have a USB mouse) - asked this question in freebsd-questions (minus some details) What can I do to force/fix detection at load? Unplugging and plugging my mouse at boot to get it to work is a bit annoying. Cheers, Peter