DWC OTG TX path optimisation for 11-current
Svatopluk Kraus
onwahe at gmail.com
Tue Aug 18 13:34:34 UTC 2015
On Tue, Aug 18, 2015 at 3:23 PM, Hans Petter Selasky <hps at selasky.org> wrote:
> On 08/18/15 15:12, Svatopluk Kraus wrote:
>>
>> On Tue, Aug 18, 2015 at 2:46 PM, Hans Petter Selasky <hps at selasky.org>
>> wrote:
>>>
>>> On 08/18/15 14:31, Svatopluk Kraus wrote:
>>>>
>>>>
>>>> On Tue, Aug 18, 2015 at 1:54 PM, Hans Petter Selasky <hps at 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.
>>>>
>>>
>>> Is the console still not responding properly after this command?
>>>
>>
>> System response time is still bad.
>>
>
> Is "kgdb" working on your setup? Can you dump all kernel threads?
db> ps
pid ppid pgrp uid state wmesg wchan cmd
22873 1 22873 0 Ss+ ttyin 0xd1822e70 getty
684 683 684 0 R+ csh
683 1 683 0 SWs+ wait 0xd2295380 login
369 1 369 0 Ss select 0xd206a9a4 devd
22 0 0 0 DL vlruwt 0xd1fc0380 [vnlru]
21 0 0 0 DL syncer 0xc07ad3f0 [syncer]
20 0 0 0 DL (threaded) [bufdaemon]
100061 D psleep 0xc07ad190 [bufdaemon]
100073 D sdflush 0xd20ec284 [/ worker]
19 0 0 0 DL pgzero 0xc07b24d8 [pagezero]
18 0 0 0 DL psleep 0xc07b23c0 [vmdaemon]
17 0 0 0 DL (threaded) [pagedaemon]
100058 D psleep 0xc07c86c4 [pagedaemon]
100064 D umarcl 0xc07b22d4 [uma]
16 0 0 0 SL data_cv 0xd18341a0 [bcm2835_audio_worke]
15 0 0 0 SL VCHI com 0xd1a0e20c [VCHIQka-0]
14 0 0 0 DL jobqueue 0xd19fb980 [mmcsd0: mmc/sd card]
9 0 0 0 DL waiting_ 0xc07c4aac [sctp_iterator]
13 0 0 0 DL (threaded) [usb]
100047 D - 0xd1a3302c [usbus0]
100048 D - 0xd1a3305c [usbus0]
100049 D - 0xd1a3308c [usbus0]
100050 D - 0xd1a330bc [usbus0]
100051 D - 0xd1a330ec [usbus0]
8 0 0 0 SL sema cv 0xc07d0848 [VCHIQs-0]
7 0 0 0 SL sema cv 0xc07d0824 [VCHIQr-0]
6 0 0 0 SL sema cv 0xc07d0800 [VCHIQ-0]
5 0 0 0 DL (threaded) [cam]
100024 D - 0xc07120c0 [doneq0]
100054 D - 0xc07122ac [scanner]
4 0 0 0 DL crypto_r 0xc07b1970 [crypto returns]
3 0 0 0 DL crypto_w 0xc07b1960 [crypto]
12 0 0 0 DL (threaded) [geom]
100013 D - 0xc07b50e8 [g_event]
100014 D - 0xc07b50ec [g_up]
100015 D - 0xc07b50f0 [g_down]
11 0 0 0 RL (threaded) [intr]
100007 I [swi1: netisr 0]
100008 I [swi3: vm]
100009 RunQ [swi4: clock (0)]
100010 I [swi4: clock (1)]
100011 I [swi4: clock (2)]
100012 I [swi4: clock (3)]
100019 I [swi6: task queue]
100020 I [swi6: Giant taskq]
100023 I [swi5: fast taskq]
100025 I [intr61: iichb0+]
100026 I [intr62: spi0]
100027 I [intr24: bcm_dma0]
100028 I [intr25: bcm_dma0]
100029 I [intr26: bcm_dma0]
100030 I [intr27: bcm_dma0]
100031 I [intr28: bcm_dma0]
100032 I [intr29: bcm_dma0]
100033 I [intr30: bcm_dma0]
100034 I [intr31: bcm_dma0]
100035 I [intr32: bcm_dma0]
100036 I [intr33: bcm_dma0]
100037 I [intr34: bcm_dma0]
100038 I [intr35: bcm_dma0]
100039 I [intr1: mbox0]
100040 I [intr70: sdhci_bcm0]
100041 I [swi0: uart]
100042 I [intr2: vchiq0]
100046 I [intr17: +]
10 0 0 0 RL (threaded) [idle]
100003 Run CPU 0 [idle: cpu0]
100004 Run CPU 1 [idle: cpu1]
100005 Run CPU 2 [idle: cpu2]
100006 Run CPU 3 [idle: cpu3]
2 0 0 0 RL [rand_harvestq]
1 0 1 0 SLs wait 0xd1959000 [init]
0 0 0 0 DLs (threaded) [kernel]
100000 D swapin 0xc07b5108 [swapper]
100018 D - 0xd19fb480 [kqueue taskq]
100021 D - 0xd19fb300 [ffs_trim taskq]
100022 D - 0xd19fb280 [thread taskq]
100053 D - 0xd19fb080 [CAM taskq]
db>
More information about the freebsd-arm
mailing list