Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2015 14:31:02 +0200
From:      Svatopluk Kraus <onwahe@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: DWC OTG TX path optimisation for 11-current
Message-ID:  <CAFHCsPXbBSpkDtggN%2BiBm=vpYwOTpi7nH=Z0G4RiyvoVXuw7_g@mail.gmail.com>
In-Reply-To: <55D31D11.3050509@selasky.org>
References:  <55A7D8CE.4020809@selasky.org> <CAHNYxxMp9jGDbV-5=-cE6daR-O3eN5pdvO1s-=QfX=A9XYqYmA@mail.gmail.com> <55B23276.8090703@selasky.org> <CAHNYxxNc9uB62hHEv1PM9PcsGgUs=zsvNgatqLD0p%2BiiDA3Aiw@mail.gmail.com> <55B73113.2020308@selasky.org> <CAFHCsPVaPZpqXLS7OApa=Xz5VLnLjVpV5dYV8Pn2uHh1Lcz7Tg@mail.gmail.com> <55B8AB76.7030603@selasky.org> <CAFHCsPUMaYEwJsaGUFuw9yZi_5bmraSBsOYpRWvSeuebpXBJUA@mail.gmail.com> <55B8B297.1010008@selasky.org> <CAFHCsPVGLs8j6LAV%2Bg4rP_ueTOd8pUOupYFGvmgC3XGcJC720Q@mail.gmail.com> <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> <CAFHCsPUKwNLkeSPSHHUs=vwFFAnBd_9HRPxaS6tEC0cR3y_C6Q@mail.gmail.com> <55D31D11.3050509@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 18, 2015 at 1:54 PM, Hans Petter Selasky <hps@selasky.org> 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: <OTG Root HUB DWCOTG> at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE (0mA)
ugen0.2: <product 0x9514 vendor 0x0424> at usbus0, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=SAVE (2mA)
ugen0.3: <product 0xec00 vendor 0x0424> at usbus0, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON (2mA)
ugen0.4: <USB2.0 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE (0mA)
ugen0.5: <USB2.0 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE (0mA)
ugen0.6: <HD710 ADATA> 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: <vendor 0x0424> at usbus0 (disconnected)
uhub1: at uhub0, port 1, addr 2 (disconnected)
ugen0.3: <vendor 0x0424> at usbus0 (disconnected)
smsc0: at uhub1, port 1, addr 3 (disconnected)
ukphy0: detached
miibus0: detached
ugen0.4: <VIA Labs, Inc.> at usbus0 (disconnected)
uhub2: at uhub1, port 3, addr 4 (disconnected)
ugen0.5: <VIA Labs, Inc.> at usbus0 (disconnected)
uhub3: at uhub2, port 1, addr 5 (disconnected)
ugen0.6: <ADATA> at usbus0 (disconnected)
umass0: at uhub2, port 4, addr 6 (disconnected)
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <ADATA HD710 AX00> 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: <OTG Root HUB DWCOTG> at usbus0, cfg=255 md=HOST spd=HIGH
(480Mbps) pwr=SAVE (0mA)
root@rpi2:~ # usbconfig

Svata



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFHCsPXbBSpkDtggN%2BiBm=vpYwOTpi7nH=Z0G4RiyvoVXuw7_g>