From owner-freebsd-usb@FreeBSD.ORG Tue Jun 14 07:09:02 2011 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 49E8E1065673 for ; Tue, 14 Jun 2011 07:09:02 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 8CC978FC0A for ; Tue, 14 Jun 2011 07:09:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mailfe03.swip.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-TFF-CGPSA-Version: 1.7 X-T2-CGPSA-Filter: Scanned X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=XhvKh6hw6gtWAjxtOxwWgtcklmtjSp9nA2IQor2M4rA= c=1 sm=1 a=SvYTsOw2Z4kA:10 a=M_bvHRtf90sA:10 a=WQU8e4WWZSUA:10 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=u32pRH1DsvUcFYqNRggA:9 a=e9gxuuNOQZtFlg57WuMA:7 a=wPNLvfGTeEIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 139918146; Tue, 14 Jun 2011 09:08:58 +0200 From: Hans Petter Selasky To: Charles Sprickman Date: Tue, 14 Jun 2011 09:07:33 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201106131108.42959.hselasky@c2i.net> In-Reply-To: X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201106140907.33612.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: ucom/uftdi high interrupt load 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: Tue, 14 Jun 2011 07:09:02 -0000 On Tuesday 14 June 2011 02:58:44 Charles Sprickman wrote: > On Mon, 13 Jun 2011, Hans Petter Selasky wrote: > > On Sunday 12 June 2011 23:50:24 Charles Sprickman wrote: > >> On Sun, 12 Jun 2011, Hans Petter Selasky wrote: > >>> On Saturday 11 June 2011 23:43:11 Charles Sprickman wrote: > > > > Ok, then those quirks won't help. > > > > For OHCI, I guess you should check vmstat -i. > > Oddly enough, the box paniced today, but it appeared to be related to fxp. > However in the coredump summary, I have "vmstat -i" output, and ohci seems > fairly high in comparison to everything else: > > vmstat -i > > interrupt total rate > irq4: uart0 106 0 > irq10: ohci0 142322001 968176 > irq14: ata0 1178 8 > irq20: fxp0 3008691 20467 > irq21: fxp1 1733357 11791 > irq28: sym1 30 0 > irq29: sym0 2624749 17855 > cpu0: timer 728063100 4952810 > cpu1: timer 728044684 4952684 > Total 1605797896 10923795 > > Also, just a brief summary of the panic, since it mentions the interrupt > process again: Hi, The OHCI IRQ rate is too high. It should never exceed 1000 IRQ/s. Maybe you can build a kernel with "options USB_DEBUG", then run the following command and post some of the resulting dmesg: sysctl hw.usb.ohci.debug=16 ; sleep 1; sysctl hw.usb.ohci.debug=0 --HPS > > #7 0x8059139b in fxp_new_rfabuf (sc=0x8564c000, rxp=0x8564c1c0) > at /usr/src/sys/dev/fxp/if_fxp.c:2611 > #8 0x8059285b in fxp_intr (xsc=0x8564c000) > at /usr/src/sys/dev/fxp/if_fxp.c:1931 > #9 0x8067b1db in intr_event_execute_handlers (p=0x8553d7f8, > ie=0x8557d080) > at /usr/src/sys/kern/kern_intr.c:1220 > #10 0x8067c8eb in ithread_loop (arg=0x856525d0) > at /usr/src/sys/kern/kern_intr.c:1233 > #11 0x80678f11 in fork_exit (callout=0x8067c880 , > arg=0x856525d0, frame=0xd80e7d38) at /usr/src/sys/kern/kern_fork.c:844 > #12 0x80931de0 in fork_trampoline () at > /usr/src/sys/i386/i386/exception.s:270 > > And also unrelated to usb, but fairly bizarre "netstat -m" output: > > 18446744073709550887/1355/626/25600 mbuf clusters in use > (current/cache/total/max) > 18014398509480560K/3497K/2073K bytes allocated to network > (current/cache/total) > > Sorry for all the extra noise, but I'm not adept enough at determining > whether this panic was usb related or fxp related. > > Thanks, > > Charles > > > --HPS