2014-04-08 15:00 GMT+04:00 Hans Petter Selasky <h...@selasky.org>:
> Can you check using:
>
> usbdump -i usbusX -f Y -s 65536 -vvv
>
> what is going on with regards to USB communication towards your adapter?
>
> X and Y are the numbers after ugenX.Y for your device.

Sure. I attached the output (to avoid line breaking) of what happens
when a card is inserted and what then happens when I turn off the USB
port and then turn it on. This is happening with the quirk
'UQ_MSC_NO_SYNC_CACHE" enabled as I described above. If the port
should be tested without that quirk or with any other configuration,
please let me know.

Ivan
# usbdump -i usbus1 -f 3 -s 65536 -vvv

# inserting card: nothing happens.
# usbconfig -d 1.3 power_off

18:48:25.150591 usbus1.3 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  00 09 00 00 00 00 00 00  -- -- -- -- -- -- -- --  |........        |
 flags 0x10 <PROXY_BUFFER|0>
 status 0xca1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:25.150668 usbus1.3 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xea1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>

# usbconfig -d 1.3 power_on
# /var/log/messages log:
# Apr  8 18:48:38 tor devd: Executing 'logger Unknown USB device: vendor 0x0bda 
product 0x0129 bus uhub4'
# Apr  8 18:48:38 tor root: Unknown USB device: vendor 0x0bda product 0x0129 
bus uhub4

18:48:37.904355 usbus1.3 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  00 09 00 00 00 00 00 00  -- -- -- -- -- -- -- --  |........        |
 flags 0x10 <PROXY_BUFFER|0>
 status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:37.904456 usbus1.3 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=STALLED
 frame[0] WRITE 0 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.209403 usbus1.3 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  00 05 03 00 00 00 00 00  -- -- -- -- -- -- -- --  |........        |
 flags 0x50 <PROXY_BUFFER|MANUAL_STATUS|0>
 status 0xea3a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|CONTROL_ACT|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.209465 usbus1.3 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 flags 0x50 <PROXY_BUFFER|MANUAL_STATUS|0>
 status 0xca3a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|CONTROL_ACT|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.209489 usbus1.3 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0
 frame[0] WRITE 0 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xca0a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.209580 usbus1.3 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
 frame[0] WRITE 0 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xea0a1 
<OPEN|STARTED|CONTROL_XFR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.222399 usbus1.3 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  80 06 00 01 00 00 12 00  -- -- -- -- -- -- -- --  |........        |
 frame[1] READ 18 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.222458 usbus1.3 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=20,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 18 bytes
 0000  12 01 00 02 FF FF FF 40  DA 0B 29 01 60 39 01 02  |.......@..).`9..|
 0010  03 01 -- -- -- -- -- --  -- -- -- -- -- -- -- --  |..              |
 flags 0x10 <PROXY_BUFFER|0>
 status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.224371 usbus1.3 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  80 06 00 02 00 00 09 00  -- -- -- -- -- -- -- --  |........        |
 frame[1] READ 9 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.224454 usbus1.3 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=12,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 9 bytes
 0000  09 02 27 00 01 01 04 A0  FA -- -- -- -- -- -- --  |..'......       |
 flags 0x10 <PROXY_BUFFER|0>
 status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.224473 usbus1.3 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  80 06 00 02 00 00 27 00  -- -- -- -- -- -- -- --  |......'.        |
 frame[1] READ 39 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xca1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.224577 usbus1.3 
DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=40,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 frame[1] READ 39 bytes
 0000  09 02 27 00 01 01 04 A0  FA 09 04 00 00 03 FF 06  |..'.............|
 0010  50 05 07 05 01 02 00 02  00 07 05 82 02 00 02 00  |P...............|
 0020  07 05 83 03 03 00 0A --  -- -- -- -- -- -- -- --  |.......         |
 flags 0x10 <PROXY_BUFFER|0>
 status 0xea1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.224595 usbus1.3 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=8,IVAL=0
 frame[0] WRITE 8 bytes
 0000  00 09 01 00 00 00 00 00  -- -- -- -- -- -- -- --  |........        |
 flags 0x10 <PROXY_BUFFER|0>
 status 0xea1a3 
<OPEN|TRANSFERRING|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CURR_DMA_SET|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
18:48:38.224702 usbus1.3 
DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=0
 frame[0] WRITE 8 bytes
 flags 0x10 <PROXY_BUFFER|0>
 status 0xca1a1 
<OPEN|STARTED|CONTROL_XFR|CONTROL_HDR|BDMA_ENABLE|BDMA_SETUP|CAN_CANCEL_IMMED|DOING_CALLBACK|0>
^C
16 packets captured
484 packets received by filter
0 packets dropped by kernel
#
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to