From owner-freebsd-usb@FreeBSD.ORG Mon Jul 11 01:40:10 2011 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6A131065670 for ; Mon, 11 Jul 2011 01:40:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C5D398FC14 for ; Mon, 11 Jul 2011 01:40:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6B1eAwk018865 for ; Mon, 11 Jul 2011 01:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6B1eAEs018863; Mon, 11 Jul 2011 01:40:10 GMT (envelope-from gnats) Date: Mon, 11 Jul 2011 01:40:10 GMT Message-Id: <201107110140.p6B1eAEs018863@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Colin Percival Cc: Subject: Re: usb/156596: [ehci] Extremely high interrupt rate on ehci/uhci IRQ16 80% cpu utilization on CPU0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Colin Percival List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 01:40:10 -0000 The following reply was made to PR usb/156596; it has been noted by GNATS. From: Colin Percival To: Hans Petter Selasky Cc: "bug-followup@FreeBSD.org" Subject: Re: usb/156596: [ehci] Extremely high interrupt rate on ehci/uhci IRQ16 80% cpu utilization on CPU0 Date: Sun, 10 Jul 2011 18:30:22 -0700 On 07/09/11 02:07, Hans Petter Selasky wrote: > Have you tried to set any of these quirks: > > hw.usb.ehci.lostintrbug: 0 > hw.usb.ehci.iaadbug: 0 Yes. Neither has any effect. (At least, not when I set them via sysctl; I could try setting them as loader tunables if you think that would make a difference.) I wrote: > The attached patch seems to fix the problem while not breaking anything on > my laptop. Key words, "seems to". On further use I've found that my change didn't make any difference; it was just a coincidence that the problem temporarily went away at that time. However, I've managed (I think!) to figure out what's triggering this: The IRQ flood starts when the laptop battery is recharging. Letting the battery run down for a couple hours and then plugging in AC power has 100% consistently triggered this; but if the battery is already fully charged when FreeBSD boots I don't get the IRQ flood. Hans Petter Selasky wrote: > Try the attached patch and report back. The EHCI should never generate more > than 8000 IRQ/s second, so this clearly indicates a Hardware Problem. No change, I'm afraid. -- Colin Percival Security Officer, FreeBSD | freebsd.org | The power to serve Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid