Date: Wed, 18 May 2016 11:57:31 -0500 From: Karl Denninger <karl@denninger.net> To: freebsd-usb@freebsd.org Subject: Re: Oddity with ugen Message-ID: <694e8b6a-2607-ff4e-58ea-53d544ee4e52@denninger.net> In-Reply-To: <10288d18-6da5-f5e8-e8ec-57d59b32ca7a@selasky.org> References: <b24c5a9a-cb18-c014-75ab-9b923853a70c@denninger.net> <46bd6efe-5335-f659-0b07-5107b0e9a326@selasky.org> <af57a994-2e7a-c0d0-1d84-a333c2b2096b@denninger.net> <b04006da-8b3b-7daa-e8d0-0cea8d1583ed@selasky.org> <8dfad53f-e8a6-68b7-37e2-d5cd95768ceb@denninger.net> <10288d18-6da5-f5e8-e8ec-57d59b32ca7a@selasky.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
On 5/18/2016 11:22, Hans Petter Selasky wrote:
> On 05/18/16 17:53, Karl Denninger wrote:
>> This is being seen on a Pi2 / 11-Current.
>>
>> I'm reasonably sure that the Pi2 itself and the base USB code is ok,
>> however, because there is another USB device also in use by the same
>> software (it emulates a serial port and so attaches on the serial
>> driver; it exposes itself as a /dev/cua.... device) which has never
>> exhibited repeated frames although it too talks using interrupt mode,
>> and also has a packet style of communication, so if it was doing the
>> same sort of thing my code would have been yelling about it,
>> particularly since that other device also generates sequence numbers on
>> the packets for use by the software in implementing a callback stack
>> (this one doesn't.)
>
> Hi,
>
> Is this reproducable on a PC w/ EHCI/OHCI/UHCI/XHCI ?
Unknown. Will see if I can find out... the code can be recompiled to
run a PC, of course, but this does not show up on my bench, only under
actual use load, which makes it a lot of fun to isolate.
>
> Can you check the USB speed of the two different devices? LOW/HIGH/FULL
This is the only "LOW" device in the system.
>
> The RPi2 drives most of the USB controller in software, which might
> influence some of the timing. Further there is quirk for USB interrupt
> endpoints in the DWC OTG driver, but I'm not sure if that is the cause
> of the problem.
>
> What is the exact time between these spurious packets as seen by usbdump?
>
> --HPS
Here is a sequence of four of them in a row...
10:20:31.463029 usbus0.5
DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=0,ERR=0
frame[0] READ 4 bytes
0000 5A 02 00 4A -- -- -- -- -- -- -- -- -- -- -- -- |Z..J |
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1021
<OPEN|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
10:20:31.463052 usbus0.5 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=0
frame[0] READ 8 bytes
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1023
<OPEN|TRANSFERRING|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
10:20:32.073035 usbus0.5
DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=0,ERR=0
frame[0] READ 4 bytes
0000 5A 02 00 4A -- -- -- -- -- -- -- -- -- -- -- -- |Z..J |
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1021
<OPEN|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
10:20:32.073076 usbus0.5 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=0
frame[0] READ 8 bytes
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1023
<OPEN|TRANSFERRING|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
~610ms
10:20:32.693053 usbus0.5
DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=0,ERR=0
frame[0] READ 4 bytes
0000 5A 02 00 4A -- -- -- -- -- -- -- -- -- -- -- -- |Z..J |
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1021
<OPEN|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
10:20:32.693085 usbus0.5 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=0
frame[0] READ 8 bytes
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1023
<OPEN|TRANSFERRING|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
~620ms
10:20:33.313048 usbus0.5
DONE-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=4,IVAL=0,ERR=0
frame[0] READ 4 bytes
0000 5A 02 00 4A -- -- -- -- -- -- -- -- -- -- -- -- |Z..J |
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1021
<OPEN|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
10:20:33.313079 usbus0.5 SUBM-INTR-EP=00000081,SPD=LOW,NFR=1,SLEN=0,IVAL=0
frame[0] READ 8 bytes
flags 0x12 <SHORT_XFER_OK|PROXY_BUFFER|0>
status 0xc1023
<OPEN|TRANSFERRING|STARTED|SHORT_XFER_OK|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
~620ms
Rather consistent.... note that the device itself, however, is a
power-line (X10) interface and thus the actual timing of a command that
can be sent (the bits are clocked during the zero-crossing of each 60hz
cycle) is approximately this figure.
This is an "orphan" device (X10 CM15) and thus there's zero manufacturer
support available for it.
--
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
[-- Attachment #2 --]
0 *H
010
`He 0 *H
_0[0C)0
*H
010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA0
150421022159Z
200419022159Z0Z10 UUS10UFlorida10U
Cuda Systems LLC10UKarl Denninger (OCSP)0"0
*H
0
X@vkY
Tq/vE]5#֯MX\8LJ/V?5Da+
sJc*/r{ȼnS+ w")ąZ^DtdCOZ ~7Q '@a#ijc۴oZdB&!Ӝ-< ?HN5y
5}F|ef"Vلio74zn">a1qWuɖbFeGE&3(KhixG3!#e_XƬϜ/,$+;4y'Bz<qT9_?rRUpn5
Jn&Rx/p Jyel*pN8/#9u/YPEC)TY>~/˘N[vyiDKˉ,^" ?$T8 v&K%z8C @?K{9f`+@,|Mbia 007++0)0'+0http://cudasystems.net:88880 U0 0 `HB0U0, `HB
OpenSSL Generated Certificate0U-h\Ff Y0U#0$q}ݽʒm50U0karl@denninger.net0
*H
Owbabɺx&Uk[(Oj!%p MQ0I!#QH}.>~2&D}<wm_>V6v]f>=Nn+8;q wfΰ/RLyUG#b}n!Dր_up|_ǰc/%ۥ
nN8:d;-UJd/m1~VނיnN I˾$tF1&}|?q?\đXԑ&\4V<lKۮ3%Am_(q-(cAeGX)f}-˥6cv~Kg8m~v;|9:-iAPқ6ېn-.)<[$KJtt/L4ᖣ^Cmu4vb{+BG$M0c\[MR|0FԸP&78"4p#}DZ9;V9#>Sw"[UP7100010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA)0
`He M0 *H
1 *H
0 *H
1
160518165731Z0O *H
1B@zAՠT<]7`t& 9BCWe{uڞ?bZX 8WK8mv0l *H
1_0]0 `He*0 `He0
*H
0*H
0
*H
@0+0
*H
(0 +710010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA)0*H
1010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA)0
*H
LL÷Q?w1k&
4/
"0tqRd88wY&`ZF㭴AH+Ĝ`\%TZT
7jxgq#w3V%i`S:%HW`C2"C֬ 8T.Z @2J*30Qy-8GAxpL` ˬ#OqY+^."0e-
y;+9 FL n:Ka]Pׯ[:FC2wJsG%:xҲ0SpQՓSXB"ԛYqQoŀ@rSh³y֪࣌<0{L~Z
NJuSpݳPIx(iD~iJ0?v/8:|]*1WE:{17Dr1K.0ygvM5oBTU ٚg#O`ֺ40;
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?694e8b6a-2607-ff4e-58ea-53d544ee4e52>
