From owner-freebsd-current@FreeBSD.ORG Sun Mar 22 09:49:10 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BC831065670; Sun, 22 Mar 2009 09:49:10 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swipnet.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id E823D8FC14; Sun, 22 Mar 2009 09:49:09 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=AjWy0yrHG2sA:10 a=OhxIi9mhZdoA:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=g5yxMloZAAAA:8 a=h4Pan5sWhH5qlUVsMuIA:9 a=pZutJQqQepD3IlHIgH8A:7 a=AXdRHRnEketBltvSMecREoruvf0A:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 1044545358; Sun, 22 Mar 2009 10:49:07 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sun, 22 Mar 2009 10:51:38 +0100 User-Agent: KMail/1.9.7 References: <200903211448.28590.pieter@degoeje.nl> <200903220152.55252.pieter@degoeje.nl> <20090322042401.GB50126@citylink.fud.org.nz> In-Reply-To: <20090322042401.GB50126@citylink.fud.org.nz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903221051.39652.hselasky@c2i.net> Cc: Anonymous , Pieter de Goeje , Andrew Thompson Subject: Re: usbconfig / hal-device no longer lists usb devices X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2009 09:49:10 -0000 On Sunday 22 March 2009, Andrew Thompson wrote: > On Sun, Mar 22, 2009 at 01:52:54AM +0100, Pieter de Goeje wrote: > > On Sunday 22 March 2009 01:03:31 Andrew Thompson wrote: > > > On Sun, Mar 22, 2009 at 02:52:33AM +0300, Anonymous wrote: > > > > > I added a bunch of printf()s to libusb, specifically > > > > > ugen20_enumerate(). Both ugen0.2 and ugen1.2 failed at ioctl(f, > > > > > USB_GET_PLUGTIME, &plugtime) because it returned EINVAL. The > > > > > ugenX.2 files were opened successfully. > > > > > > > > > > At this point it looks like the problem lies somewhere in the > > > > > kernel, which makes it a lot harder for me to debug. > > > > > > > > Can you try to back out r189906? Doing so makes my keyboard to appear > > > > in usbconfig output again. Here is a ktrace diff for `usbconfig -u 0 > > > > -a 3'. > > > > I'll give it a shot. It's rather late so the results will probably have > > to wait until tomorrow. > > > > > What does sysctl hw.usb2.dev.debug=2 show with usbconfig on the latest > > > HEAD code? > > > > Output is quite long so I put it on the web: > > http://unforgiven.student.utwente.nl/~pyotr/dump/usbconfig_debug_2.txt > > I cant see anything obviously wrong with r189906 so I have committed > some more debugging traces. Can you update your sources/kernel and run > usbconfig again with hw.usb2.dev.debug=5 > Just to check if your sources are clean: 1) cp /usr/src/sys/dev/usb/*.h /usr/include/dev/usb 2) Rebuild and install /usr/src/lib/libusb 3) Rebuild and install /usr/src/usr.sbin/usbconfig --HPS