From owner-freebsd-arm@freebsd.org Fri Jul 31 11:55:04 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 7B5A79AF8F1 for ; Fri, 31 Jul 2015 11:55:04 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-io0-x22f.google.com (mail-io0-x22f.google.com [IPv6:2607:f8b0:4001:c06::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4272815D1 for ; Fri, 31 Jul 2015 11:55:04 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: by ioii16 with SMTP id i16so82779924ioi.0 for ; Fri, 31 Jul 2015 04:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=y+c6bM3QAdSTjFflRgL4El22BsGSpZSe330XqOVJnYk=; b=kMem1EQLQuRVzTgyiCXh/Oc8fq2JkiJoizuLgTkaIvGAuTLpX4LPEvGjGLKlo/8MXT UWHqjchIC8bs4/hTlnuG9RyH4gQSWn5IorCfgzY/ao2r1ELoSPThu2uDhbZmEDejrh4v lR1P0vNf+GVxNAt/LXN6gMx1Xza9f82VmrqIoEfvl/VzQyPLhsOiJQSMEjMqScp2RLTV DIUG4j/8eEvRphdATWlKWrtLLuhUwYekhS8UXvi+vdbIrOeacKKFF92QZ9qci9rOKu1C PtDFrMTsvYFxGXTpl6WGGAJ6tauV7YkPhQS7DY5Rq/qanOs/gfRB9eZKSDSmLU8A95Ft Fjog== MIME-Version: 1.0 X-Received: by 10.107.46.156 with SMTP id u28mr4142346iou.186.1438343703615; Fri, 31 Jul 2015 04:55:03 -0700 (PDT) Received: by 10.64.148.84 with HTTP; Fri, 31 Jul 2015 04:55:03 -0700 (PDT) In-Reply-To: <55BB3CC6.4030002@selasky.org> References: <55A7D8CE.4020809@selasky.org> <55B23276.8090703@selasky.org> <55B73113.2020308@selasky.org> <55B8AB76.7030603@selasky.org> <55B8B297.1010008@selasky.org> <20150729154516.GH78154@funkthat.com> <55B8F5EC.2050908@selasky.org> <46ad096c958.1a82a175@mail.schwarzes.net> <55B9C3E2.5040501@selasky.org> <46ae815c7c3.447237c8@mail.schwarzes.net> <46aece00b53.3c1cdc1f@mail.schwarzes.net> <55BB2A5F.9000502@selasky.org> <55BB3CC6.4030002@selasky.org> Date: Fri, 31 Jul 2015 13:55:03 +0200 Message-ID: Subject: Re: DWC OTG TX path optimisation for 11-current From: Svatopluk Kraus To: Hans Petter Selasky Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Fri, 31 Jul 2015 11:55:04 -0000 On Fri, Jul 31, 2015 at 11:15 AM, Hans Petter Selasky wrote: > Hi, > > I did some testing myself and I see the polling handler can loop many times > when USB is active. Instead of 2 as a polling limit I've set 16. Hope this > works too. Works fine over here. > > https://svnweb.freebsd.org/changeset/base/286118 > Definitely, some limitation was needed there. Thanks. Unfortunatelly, it turned out that it does not help with my problem. It has affected system response time in good way for some time after the trigger is pulled. However, after 17 hours when buildworld finished, system response time is bad again. It also turns out that I have a problem with booting my kernels. So I cannot test the extra "clear RX FIFO level interrupt" patch as even this one line of code causes that kernel does not boot. It freezes at very beginning and even first printf is not printed. Thus I have to debug this problem firstly. It will be very funny without either jtag or early printf. ;) Meantime, I have noticed that after reboot (system is 99% idle), I'm getting the following output from vmstat: root@rpi2:~ # vmstat -i -w 1 interrupt total rate irq1: mbox0 27 0 irq2: vchiq0 6 0 irq17: bcm283x_dwco 2266826 20654 irq26: bcm_dma0 962 9 irq65: uart0 21516 196 irq70: sdhci_bcm0 556 5 irq73: generic_time 25952 236 irq76: ipi 23182 211 Total 2339027 21312 irq1: mbox0 0 0 irq2: vchiq0 0 0 irq17: bcm283x_dwco 25734 23983 irq26: bcm_dma0 0 0 irq65: uart0 527 491 irq70: sdhci_bcm0 0 0 irq73: generic_time 245 228 irq76: ipi 99 92 Total 26605 24795 irq1: mbox0 0 0 irq2: vchiq0 0 0 irq17: bcm283x_dwco 25679 24022 irq26: bcm_dma0 0 0 irq65: uart0 476 445 irq70: sdhci_bcm0 0 0 irq73: generic_time 246 230 irq76: ipi 100 94 Total 26501 24790 irq1: mbox0 0 0 irq2: vchiq0 0 0 irq17: bcm283x_dwco 25683 24025 irq26: bcm_dma0 0 0 irq65: uart0 476 445 irq70: sdhci_bcm0 0 0 irq73: generic_time 245 229 irq76: ipi 104 97 Total 26508 24797 IMO, 24000 interrupts per a second for bcm283x_dwco is too many. Svata > --HPS > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"