From owner-freebsd-usb@FreeBSD.ORG Wed Feb 3 09:48:01 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8732C1065695 for ; Wed, 3 Feb 2010 09:48:01 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail13.syd.optusnet.com.au (mail13.syd.optusnet.com.au [211.29.132.194]) by mx1.freebsd.org (Postfix) with ESMTP id 11D138FC2F for ; Wed, 3 Feb 2010 09:48:00 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-232-148.belrs3.nsw.optusnet.com.au [122.106.232.148]) by mail13.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o139lv2g028573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 3 Feb 2010 20:47:58 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id o139lub9010618 for ; Wed, 3 Feb 2010 20:47:56 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id o139luYk010617 for freebsd-usb@freebsd.org; Wed, 3 Feb 2010 20:47:56 +1100 (EST) (envelope-from peter) Date: Wed, 3 Feb 2010 20:47:56 +1100 From: Peter Jeremy To: freebsd-usb@freebsd.org Message-ID: <20100203094756.GB95409@server.vk2pj.dyndns.org> References: <20100201085131.GA34006@server.vk2pj.dyndns.org> <4B66A0DD.2070109@icyb.net.ua> <20100202063635.GA64643@server.vk2pj.dyndns.org> <4B67C8A6.5050102@icyb.net.ua> <20100202230511.GA19744@pjdesk.au.alcatel-lucent.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vGgW1X5XWziG23Ko" Content-Disposition: inline In-Reply-To: <20100202230511.GA19744@pjdesk.au.alcatel-lucent.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Subject: ukbd probe order regression X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 09:48:01 -0000 --vGgW1X5XWziG23Ko Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Based on a thread in -stable] I am trying to upgrade a Dell GX620 from FreeBSD 7.1 to a recent FreeBSD 8-stable and have run into a regression in the ukbd probe order. This box has no PS/2 ports and therefore I use a USB keyboard (and have removed atkbdc, atkbd and kbdmux from my kernel). All relevant USB devices are compiled in. In 7.x, ukbd probes before the kernel mounts root. In 8.x, ukbd probes after the kernel mounts root (it actually probes asynchronously after the "Enter full pathname of shell..." prompt). (This bit me badly because I managed to screw up my root disk name and got prompted with 'mountroot>' but had no keyboard). The GX620 is a P4 system with an ICH7 chipse. The keyboard is a Dell SK-8115 connected directly to a motherboard port (I've tried several different USB ports without improvement). I've also tried a Dell SK-8135 (which is the "multimedia" variant and has a builtin hub) which behaves the same. I've uploaded full details as follows: FreeBSD 7.x verbose dmesg: http://pastebin.ca/1776339 FreeBSD 8.x verbose dmesg: http://pastebin.ca/1776359 "pciconf -lv" (same in 7 & 8): http://pastebin.ca/1776363 The output from 'usbdevs -v' on FreeBSD 7 is: Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 --=20 Peter Jeremy port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 addr 2: low speed, power 70 mA, config 1, Dell USB Keyboard(0x2003)= , Dell(0x413c), rev 2.00 Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb4: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x= 0000), rev 1.00 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered port 7 powered port 8 powered And the output from "usbconfig list" on FreeBSD 8 is: ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DON ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DON ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DON ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DFULL (12M= bps) pwr=3DON ugen4.1: at usbus4, cfg=3D0 md=3DHOST spd=3DHIGH (480= Mbps) pwr=3DON ugen2.2: at usbus2, cfg=3D0 md=3DHOST spd=3DLOW (1= =2E5Mbps) pwr=3DON The alternate keyboard shows up as: port 2 addr 2: full speed, power 100 mA, config 1, Dell USB Keyboard Hub(0= x1003), Dell(0x413c), rev 2.00 port 1 addr 3: full speed, power 50 mA, config 1, Dell USB Keyboard(0x201= 0), Dell(0x413c), rev 2.00 port 2 addr 4: low speed, power 100 mA, config 1, product 0x3010(0x3010),= vendor 0x413c(0x413c), rev 2.30 port 3 powered --=20 Peter Jeremy --vGgW1X5XWziG23Ko Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAktpRkwACgkQ/opHv/APuIfwoACgqeezejIlL49fMeui60X2ZVOZ ZNkAnRrU6VL75MAYxV7AqzAHG5DiohLI =OVLv -----END PGP SIGNATURE----- --vGgW1X5XWziG23Ko--