From owner-freebsd-usb@freebsd.org Tue Nov 10 10:17:38 2015 Return-Path: Delivered-To: freebsd-usb@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 6BDEBA2B1AC for ; Tue, 10 Nov 2015 10:17:38 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from mail.embedded-brains.de (host-82-135-62-35.customer.m-online.net [82.135.62.35]) (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 F2A1B14B2 for ; Tue, 10 Nov 2015 10:17:37 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id A35E52A181A; Tue, 10 Nov 2015 11:09:47 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id YgfISPXQ4mQC; Tue, 10 Nov 2015 11:09:47 +0100 (CET) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 2726F2A1930; Tue, 10 Nov 2015 11:09:47 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EbnH3QBxlbfj; Tue, 10 Nov 2015 11:09:47 +0100 (CET) Received: from [192.168.96.129] (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 06D932A181A; Tue, 10 Nov 2015 11:09:47 +0100 (CET) Subject: Re: [PATCH] dwc_otg: Reduce interrupt load To: Hans Petter Selasky , freebsd-usb@freebsd.org References: <1446212307-4660-1-git-send-email-sebastian.huber@embedded-brains.de> <56338480.3090607@selasky.org> <5637557A.1070007@embedded-brains.de> <56375A12.9060000@selasky.org> <563F19B6.1010506@selasky.org> From: Sebastian Huber Message-ID: <5641C235.1040007@embedded-brains.de> Date: Tue, 10 Nov 2015 11:08:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <563F19B6.1010506@selasky.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2015 10:17:38 -0000 Hello, On 08/11/15 10:45, Hans Petter Selasky wrote: > On 11/02/15 13:41, Hans Petter Selasky wrote: >> On 11/02/15 13:22, Sebastian Huber wrote: >>> >>> >>> On 30/10/15 15:53, Hans Petter Selasky wrote: >>>> On 10/30/15 14:38, Sebastian Huber wrote: >>>>> Tested on an Altera Cyclone V development kit. Here the=20 >>>>> controller has >>>>> 16 host channels. This change significantly reduced the time=20 >>>>> spent in >>>>> the dwc_otg_interrupt_poll_locked() function. >>>> >>>> Hi, >>>> >>>> Thank you for your optimisation patch: >>>> >>>> https://svnweb.freebsd.org/changeset/base/290195 >>> > > Hi Sebastian, > > You maybe also want to port these two patches, and measure the CPU=20 > load again: > > https://svnweb.freebsd.org/changeset/base/290489 > https://svnweb.freebsd.org/changeset/base/290542 I didn't notice a big overall difference. Highest CPU load is now due to=20 dwc_otg_read_fifo() instead of dwc_otg_interrupt_poll_locked(). --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=E4ftliche Mitteilung im Sinne des EHUG.