From owner-freebsd-current@FreeBSD.ORG Fri Nov 14 18:50:51 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 F0CA61065679 for ; Fri, 14 Nov 2008 18:50:51 +0000 (UTC) (envelope-from cokane@FreeBSD.org) Received: from mail-out2.fuse.net (mail-out2.fuse.net [216.68.8.171]) by mx1.freebsd.org (Postfix) with ESMTP id B4A7D8FC22 for ; Fri, 14 Nov 2008 18:50:51 +0000 (UTC) (envelope-from cokane@FreeBSD.org) X-CNFS-Analysis: v=1.0 c=1 a=LkYvsgB9u1MH7Ao0BLhsLg==:17 a=9uHbcFo5DycWxoiZINEA:9 a=RXvhvET7FqqMnEotDEE_u8i7u9cA:4 a=LY0hPdMaydYA:10 a=x6d-ZYA63ObIYBgs_6gA:9 a=EFAya5gWovRFEuPAHJjk0O2RNXoA:4 a=NfA2RSpTaHsA:10 a=ZI4j9uUWidrupRmukxEA:9 a=eSZ8PxzDhlvJgfi74l1snhZ9BGUA:4 a=rPt6xJ-oxjAA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Received: from [74.215.227.9] ([74.215.227.9:50628] helo=mail.cokane.org) by mail-out2.fuse.net (ecelerity 2.1.1.22 r(17669)) with ESMTP id 7A/14-26658-CF4CD194 for ; Fri, 14 Nov 2008 13:35:50 -0500 Received: by mail.cokane.org (Postfix, from userid 103) id E91981DB2FA; Fri, 14 Nov 2008 13:35:39 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.1.8-gr1 (2007-02-13) on discordia X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, DNS_FROM_SECURITYSAGE autolearn=no version=3.1.8-gr1 Received: from [172.31.1.6] (unknown [172.31.1.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cokane.org (Postfix) with ESMTP id AE82A1DB2F9; Fri, 14 Nov 2008 13:35:33 -0500 (EST) From: Coleman Kane To: Diego Depaoli In-Reply-To: <83e5fb980811051638n5f9a1a5dr60160ed7e2ed7a1c@mail.gmail.com> References: <83e5fb980811051638n5f9a1a5dr60160ed7e2ed7a1c@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WBfwAmX3Jhq+lEFPn9z9" Organization: FreeBSD Project Date: Fri, 14 Nov 2008 13:32:08 -0500 Message-Id: <1226687528.19638.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Cc: 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 18:50:52 -0000 --=-WBfwAmX3Jhq+lEFPn9z9 Content-Type: multipart/mixed; boundary="=-TsXf1onNKtNYADIC4YfR" --=-TsXf1onNKtNYADIC4YfR Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. --=20 Coleman Kane --=-TsXf1onNKtNYADIC4YfR Content-Disposition: attachment; filename=hal-port-usb2.patch Content-Type: text/x-patch; name=hal-port-usb2.patch; charset=UTF-8 Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3N5c3V0aWxzL2hhbC9maWxlcy9wYXRjaC1oYWxkX2ZyZWVic2RfaGYtdXNi LmMtdXNiMiBiL3N5c3V0aWxzL2hhbC9maWxlcy9wYXRjaC1oYWxkX2ZyZWVic2RfaGYtdXNiLmMt dXNiMg0KbmV3IGZpbGUgbW9kZSAxMDA2NDQNCmluZGV4IDAwMDAwMDAuLjhjNzNkNDANCi0tLSBz eXN1dGlscy9oYWwvZmlsZXMvcGF0Y2gtaGFsZF9mcmVlYnNkX2hmLXVzYi5jLXVzYjINCisrKyBz eXN1dGlscy9oYWwvZmlsZXMvcGF0Y2gtaGFsZF9mcmVlYnNkX2hmLXVzYi5jLXVzYjINCkBAIC0w LDAgKzEsMTEgQEANCistLS0gaGFsLTAuNS4xMS9oYWxkL2ZyZWVic2QvaGYtdXNiLmMub3JpZwky MDA4LTExLTE0IDEyOjM3OjE5LjAwMDAwMDAwMCAtMDUwMA0KKysrKyBoYWwtMC41LjExL2hhbGQv ZnJlZWJzZC9oZi11c2IuYwkyMDA4LTExLTE0IDEyOjM3OjI4LjAwMDAwMDAwMCAtMDUwMA0KK0BA IC00MCw3ICs0MCw3IEBADQorICNpbmNsdWRlICJoZi1kZXZ0cmVlLmgiDQorICNpbmNsdWRlICJo Zi11dGlsLmgiDQorIA0KKy0jZGVmaW5lIEhGX1VTQl9ERVZJQ0UJCQkiL2Rldi91c2IiDQorKyNk ZWZpbmUgSEZfVVNCX0RFVklDRQkJCSIvZGV2L3VzYiAiDQorIA0KKyB0eXBlZGVmIHN0cnVjdA0K KyB7DQo= --=-TsXf1onNKtNYADIC4YfR-- --=-WBfwAmX3Jhq+lEFPn9z9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkkdxCMACgkQcMSxQcXat5cBCwCcCmmTqG2Tyc2MSeRlTKfhBXFi VZYAn3cTioE6sg6ufuINSlcUkSDaZi8X =xQia -----END PGP SIGNATURE----- --=-WBfwAmX3Jhq+lEFPn9z9--