From owner-freebsd-arm@freebsd.org Sun Dec 27 23:04:23 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C6B3A52058 for ; Sun, 27 Dec 2015 23:04:23 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-151.reflexion.net [208.70.211.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86F3E1D24 for ; Sun, 27 Dec 2015 23:04:21 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 28715 invoked from network); 27 Dec 2015 23:04:14 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 27 Dec 2015 23:04:14 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.80.0) with SMTP; Sun, 27 Dec 2015 18:04:16 -0500 (EST) Received: (qmail 10778 invoked from network); 27 Dec 2015 23:04:16 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 27 Dec 2015 23:04:16 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.1.8] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id EA552B1E001; Sun, 27 Dec 2015 15:04:09 -0800 (PST) Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: fyi: 11.0-current rpi2 systat -vmstat shows around 24k interrupts for bcm283x_dw From: Mark Millard In-Reply-To: <56806007.2000302@selasky.org> Date: Sun, 27 Dec 2015 15:04:13 -0800 Cc: freebsd-arm Message-Id: <2D9BD203-03D8-4354-A335-8C43A11D1BB3@dsl-only.net> References: <0A781C7D-C5F5-4931-AE38-D2FEC0848DCA@dsl-only.net> <56806007.2000302@selasky.org> To: Hans Petter Selasky X-Mailer: Apple Mail (2.2104) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2015 23:04:23 -0000 On 2015-Dec-27, at 2:02 PM, Hans Petter Selasky wrote: >=20 > On 12/26/15 21:51, Mark Millard wrote: >> Context: >>=20 >>> # freebsd-version -ku; uname -aKU >>> 11.0-CURRENT >>> 11.0-CURRENT >>> FreeBSD rpi2 11.0-CURRENT FreeBSD 11.0-CURRENT #2 r292413M: Fri Dec = 25 18:03:19 PST 2015 = root@FreeBSDx64:/usr/obj/clang/arm.armv6/usr/src/sys/RPI2-NODBG arm = 1100091 1100091 >>=20 >>=20 >> For a basically near-idle context systat -vmstat lists "Int" and 23k = to 25k normally (almost always 24k) and bcm283x_dw at the right shows = figures like 24118. "generic_ti" is more like 232 and "ipi 76" is more = like 111. The others at the right are normally blank (other than total). >>=20 >> Lots of bcm283x_dw interrupts if around 24k is correct. As the = numbers do not change scale when the systat refresh interval is = explicitly scaled, I assume that the figures are per second (or per some = other time unit, possibly just for the most recent unit instead of = mean). >>=20 >> I'm not sure it will be readable but the below is a capture of a = systat -vmstat display. >>=20 >=20 > Hi, >=20 > The dwc_otg needs to be served frequently in PIO mode. Your number is = expected. We're using fast interrupts for most of this work, so no = task-switching is involved and so the CPU consumption remains low. >=20 > You can disable USB like this: >=20 > usbconfig -d 0.1 set_config 255 >=20 > And the interrupts should go down to zero. >=20 > Re-enable like this: >=20 > usbconfig -d 0.1 set_config 0 >=20 > --HPS Good to know. Thanks. I'm unlikely to disable USB: I've not set up a = alternate serial connection. FYI (but probably unrelated?): I've not tracked anything down yet but I = do periodically get messages like: Dec 27 07:31:56 rpi2 kernel: bcm_dma0: unused DMA intr CH=3D3, = CS=3D20f10027 Dec 27 07:39:24 rpi2 kernel: bcm_dma0: unused DMA intr CH=3D3, = CS=3D20f10027 Dec 27 07:41:02 rpi2 kernel: bcm_dma0: unused DMA intr CH=3D3, = CS=3D20f10027 Dec 27 07:43:51 rpi2 kernel: bcm_dma0: unused DMA intr CH=3D3, = CS=3D20f10027 (But I also go long times without such.) Note: I'm currently involved in experiments providing evidence about Bus = Errors from software that misaligns pointer values and possibly from = inappropriate/insufficient compiler options for the SCTLR bit[1]=3D=3D1 = status. clang++ is one of the programs getting Bus Errors. =3D=3D=3D Mark Millard markmi at dsl-only.net