From owner-freebsd-current@FreeBSD.ORG Fri Nov 14 20:02:10 2008 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 63A151065670; Fri, 14 Nov 2008 20:02:10 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id 2EFC08FC0A; Fri, 14 Nov 2008 20:02:10 +0000 (UTC) (envelope-from marcus@freebsd.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id mAEJd866023497; Fri, 14 Nov 2008 14:39:08 -0500 (EST) Received: from [64.102.220.132] (dhcp-64-102-220-132.cisco.com [64.102.220.132]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id mAEJd8mm028699; Fri, 14 Nov 2008 14:39:08 -0500 (EST) Message-ID: <491DD3DB.3030803@freebsd.org> Date: Fri, 14 Nov 2008 14:39:07 -0500 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Coleman Kane References: <83e5fb980811051638n5f9a1a5dr60160ed7e2ed7a1c@mail.gmail.com> <1226687528.19638.4.camel@localhost> In-Reply-To: <1226687528.19638.4.camel@localhost> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Diego Depaoli , freebsd-current Subject: Re: Usb2 and hal issue 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: Fri, 14 Nov 2008 20:02:10 -0000 Coleman Kane wrote: > On Thu, 2008-11-06 at 01:38 +0100, Diego Depaoli wrote: >> Hi all, >> I don't know how provide further details, but on my system there is >> something of wrong between new usb2 drivers and hald. >> Top shows hald's cpu load at 100% while with old drivers it's 2-4%. >> I tried rebuilding hald, loading/unloading each usb2_* device but >> nothing changed, so I suspect the problem is located in usb2_core. > > I figured out the problem, and I have a solution. As the other person > mentioned, the device name has changed from "/dev/usb" into "/dev/usb > " (the space is important). However, the hald daemon doesn't use libusb > on FreeBSD. Here's a patch which tells hald to look at the new device, > apply it to the root of your ports collection. > > Additionally, I think it is a bug that hald busy-loops trying (and > failing) to open "/dev/usb". Ideally, I think that hald should put a > sleep in there of some sort, to give up CPU to something else. Thanks for the patch, but hald doesn't loop trying to open /dev/usb. It should try and open it once. If that fails, then the privilege_init function for hf-usb should fail, and that would be the end of it. Can someone post a ktrace of gdb backtrace showing this problem? Joe -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome