From owner-freebsd-arm@freebsd.org Tue Aug 18 12:31:03 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 4BDC49BC3D1 for ; Tue, 18 Aug 2015 12:31:03 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (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 10ACC103A for ; Tue, 18 Aug 2015 12:31:03 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: by igfj19 with SMTP id j19so81302294igf.0 for ; Tue, 18 Aug 2015 05:31:02 -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=eUUxzJvkiBV+aUxEt0RrT0/LhSAsE08+2Fv2XL8nXe8=; b=Oq6QvVBdbmmAwX412fbXsDEmkkdD4nZM6eAJUvbh+DDfgv4mTBSXI+YQoVFySzbq1H QnpZEIutm2qgp182AwR+g8+EIYc1svk3GV3Gts/zI53JTLMuaq51Tv0Hqhz1sneHCnf3 x+IabbDvmqaZifWH8riARDbZNCTja8r9aEl/ETDYAJH0OCuUIB6n7PCONE+MQFMzDwao EpcoyTnt6tCxcGUlxDpLmyBQ4jA3mpJLkuV7v7i3ytN39NTCqW82QmufyLS8v1CjArvv RI7iD3cZnBmljimmeH4BsQUXPTCYLV8APSRjMhhJDYpdcYIBNo6OwY32YfzyBRj6sSyF 7VNA== MIME-Version: 1.0 X-Received: by 10.51.17.34 with SMTP id gb2mr18313606igd.56.1439901062490; Tue, 18 Aug 2015 05:31:02 -0700 (PDT) Received: by 10.64.212.103 with HTTP; Tue, 18 Aug 2015 05:31:02 -0700 (PDT) In-Reply-To: <55D31D11.3050509@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> <46baa16c4ce.6efd29ef@mail.schwarzes.net> <55CF31A1.5080205@selasky.org> <55D31D11.3050509@selasky.org> Date: Tue, 18 Aug 2015 14:31:02 +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: Tue, 18 Aug 2015 12:31:03 -0000 On Tue, Aug 18, 2015 at 1:54 PM, Hans Petter Selasky wrote: > Hi, > > On 08/18/15 13:22, Svatopluk Kraus wrote: >> >> Do I understand it well that you are not able to trigger the problem? > > > Maybe I haven't been trying hard enough. I've been using a kernel built from > "projects/hps_head" which I just updated to include the latest DWC OTG > patches, instead of "head". There was today a timer subsystem fix, not sure > if it makes any difference: > > https://svnweb.freebsd.org/changeset/base/286880 > > I will try to buildworld from an external USB disk later today and see what > happens. > >> >> and still the system response time is terrible. > > > If you can do: > > usbconfig -d 0.1 set_config 255 > > And verify that the IRQ rate goes to zero for DWC OTG, then we maybe could > rule out USB. > Note that my root filesystem was on usb disk. root@rpi2:~ # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (2mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA) ugen0.4: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.5: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.6: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (0mA) root@rpi2:~ # root@rpi2:~ # usbconfig -d 0.1 set_config 255 uhub0: at usbus0, port 1, addr 1 (disconnected) ugen0.2: at usbus0 (disconnected) uhub1: at uhub0, port 1, addr 2 (disconnected) ugen0.3: at usbus0 (disconnected) smsc0: at uhub1, port 1, addr 3 (disconnected) ukphy0: detached miibus0: detached ugen0.4: at usbus0 (disconnected) uhub2: at uhub1, port 3, addr 4 (disconnected) ugen0.5: at usbus0 (disconnected) uhub3: at uhub2, port 1, addr 5 (disconnected) ugen0.6: at usbus0 (disconnected) umass0: at uhub2, port 4, addr 6 (disconnected) da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: detached (da0:umass-sim0:0:0:0): Periph destroyed Device da0s1a went missing before all of the data could be written to it; expect data loss. root@rpi2:~ # vmstat -i interrupt total rate irq1: mbox0 27 0 irq2: vchiq0 7 0 irq17: bcm283x_dwco 569952361 31 irq26: bcm_dma0 962 0 irq65: uart0 7945865 38 irq70: sdhci_bcm0 496 0 irq73: generic_time 19199003 21 irq76: ipi 853597 9 Total 597952318 6229 root@rpi2:~ # vmstat -i -w1 interrupt total rate irq1: mbox0 27 0 irq2: vchiq0 7 0 irq17: bcm283x_dwco 569961155 32 irq26: bcm_dma0 962 0 irq65: uart0 7946417 38 irq70: sdhci_bcm0 496 0 irq73: generic_time 19199024 21 irq76: ipi 853615 9 Total 597961703 6229 irq1: mbox0 0 0 irq2: vchiq0 0 0 irq17: bcm283x_dwco 550 472 irq26: bcm_dma0 0 0 irq65: uart0 526 451 irq70: sdhci_bcm0 0 0 irq73: generic_time 12 10 irq76: ipi 4 3 Total 1092 937 irq1: mbox0 0 0 irq2: vchiq0 0 0 irq17: bcm283x_dwco 640 598 irq26: bcm_dma0 0 0 irq65: uart0 474 443 irq70: sdhci_bcm0 0 0 irq73: generic_time 10 9 irq76: ipi 2 2 Total 1126 1052 irq1: mbox0 0 0 irq2: vchiq0 0 0 irq17: bcm283x_dwco 456 425 irq26: bcm_dma0 0 0 irq65: uart0 476 444 irq70: sdhci_bcm0 0 0 irq73: generic_time 13 12 irq76: ipi 3 3 Total 948 884 irq1: mbox0 0 0 irq2: vchiq0 0 0 irq17: bcm283x_dwco 219 205 irq26: bcm_dma0 0 0 irq65: uart0 476 446 irq70: sdhci_bcm0 0 0 irq73: generic_time 12 11 irq76: ipi 2 2 Total 709 664 ^C root@rpi2:~ # usbconfig ugen0.1: at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) root@rpi2:~ # usbconfig Svata