Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Aug 2015 15:34:33 +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:  <CAFHCsPW6A8rdGqmpk9VjfABoH9iubr_vOjW4rw6GKVtbo6_nmA@mail.gmail.com>
In-Reply-To: <55D331D7.9080702@selasky.org>
References:  <55A7D8CE.4020809@selasky.org> <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> <CAFHCsPXbBSpkDtggN%2BiBm=vpYwOTpi7nH=Z0G4RiyvoVXuw7_g@mail.gmail.com> <55D32912.1070707@selasky.org> <CAFHCsPU=OtdS9XCcbRQwEsymsjTq6aEtnNbDYOmS7DzHaKv7sA@mail.gmail.com> <55D331D7.9080702@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 18, 2015 at 3:23 PM, Hans Petter Selasky <hps@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@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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFHCsPW6A8rdGqmpk9VjfABoH9iubr_vOjW4rw6GKVtbo6_nmA>