Problems with uhid device.

John-Paul Andrusky jpandrusky at gmail.com
Wed Aug 24 22:41:12 GMT 2005


"dmesg | grep usb" gives "usb0: uhci_softintr (0)" repeated over and
over. With just "hw.usb.uhci.debug=15", I get the following when I
'cat' the device, push a button and then
do a ctrl-c:

uhci_open: pipe=0xc1eda800, addr=4, endpt=130 (1)
uhci_device_setintr: pipe=0xc1eda800
uhci_device_setintr: ival=10 npoll=13
uhci_device_setintr: bw=0 offs=2
uhci_add_intr: n=2 sqh=0xc1a58d40
uhci_add_intr: n=12 sqh=0xc1a58d20
uhci_add_intr: n=22 sqh=0xc1a58d00
uhci_add_intr: n=32 sqh=0xc1a58ce0
uhci_add_intr: n=42 sqh=0xc1a58cc0
uhci_add_intr: n=52 sqh=0xc1a58ca0
uhci_add_intr: n=62 sqh=0xc1a58c80
uhci_add_intr: n=72 sqh=0xc1a58c60
uhci_add_intr: n=82 sqh=0xc1a58c40
uhci_add_intr: n=92 sqh=0xc1a58c20
uhci_add_intr: n=102 sqh=0xc1a58c00
uhci_add_intr: n=112 sqh=0xc1a58be0
uhci_add_intr: n=122 sqh=0xc1a58bc0
uhci_device_setintr: returns 0xc1eda800
uhci_device_control type=0x02, request=0x01, wValue=0x0000,
wIndex=0x0082 len=0, addr=4, endpt=0
uhci_device_request: before transfer
TD(0xc1a57f00) at 1f3ebf00 = link=0x1f3ebee4 status=0x1c800000
token=0x00e0042d buffer=0x001f1d80
  1f3ebee4<VF> 1c800000<ACTIVE,LS>,errcnt=3,actlen=1
pid=2d,addr=4,endpt=0,D=0,maxlen=8
TD(0xc1a57ee0) at 1f3ebee0 = link=0x00000001 status=0x1d800000
token=0xffe80469 buffer=0x00000000
  1<T> 1d800000<ACTIVE,IOC,LS>,errcnt=3,actlen=1
pid=69,addr=4,endpt=0,D=1,maxlen=0
uhci_add_ls_ctrl: sqh=0xc1a58d60
uhci_enter_ctl_q: follow from [0]
TD(0xc1a5afc0) at 0022efc0 = link=0x0022df62 status=0x02000000
token=0x00000000 buffer=0x00000000
  22df62<Q> 2000000<ISO>,errcnt=0,actlen=1 pid=00,addr=0,endpt=0,D=0,maxlen=1
QH(0xc1a59f60) at 0022df60: hlink=1f3ecf42 elink=00000001
QH(0xc1a59f60) at 0022df60: hlink=1f3ecf42 elink=00000001
QH(0xc1a58f40) at 1f3ecf40: hlink=0022df82 elink=1f3ebf80
QH(0xc1a59f80) at 0022df80: hlink=1f3ecd62 elink=00000001
QH(0xc1a58d60) at 1f3ecd60: hlink=0022dfa2 elink=1f3ebee4
QH(0xc1a59fc0) at 0022dfc0: hlink=0022dfe2 elink=00000001
QH(0xc1a59fe0) at 0022dfe0: hlink=00000001 elink=0022efe0
Enqueued QH:
QH(0xc1a58d60) at 1f3ecd60: hlink=0022dfa2 elink=1f3ebee4
TD(0xc1a57f00) at 1f3ebf00 = link=0x1f3ebee4 status=0x1c000007
token=0x00e0042d buffer=0x001f1d80
  1f3ebee4<VF> 1c000007<LS>,errcnt=3,actlen=8 pid=2d,addr=4,endpt=0,D=0,maxlen=8
TD(0xc1a57ee0) at 1f3ebee0 = link=0x00000001 status=0x1d8807ff
token=0xffe80469 buffer=0x00000000
  1<T> 1d8807ff<NAK,ACTIVE,IOC,LS>,errcnt=3,actlen=0
pid=69,addr=4,endpt=0,D=1,maxlen=0
usb0: uhci_softintr (0)
uhci_check_intr: ii=0xc1c1616c done
uhci_idone: ii=0xc1c1616c
uhci_idone: ii=0xc1c1616c, xfer=0xc1c16100, pipe=0xc1ed5d80 ready
TD(0xc1a57f00) at 1f3ebf00 = link=0x1f3ebee4 status=0x1c000007
token=0x00e0042d buffer=0x001f1d80
  1f3ebee4<VF> 1c000007<LS>,errcnt=3,actlen=8 pid=2d,addr=4,endpt=0,D=0,maxlen=8
TD(0xc1a57ee0) at 1f3ebee0 = link=0x00000001 status=0x1d0007ff
token=0xffe80469 buffer=0x00000000
  1<T> 1d0007ff<IOC,LS>,errcnt=3,actlen=0 pid=69,addr=4,endpt=0,D=1,maxlen=0
uhci_idone: actlen=0, status=0x0
uhci_remove_ls_ctrl: sqh=0xc1a58d60
uhci_device_ctrl_done: length=0
uhci_idone: ii=0xc1c1616c done
uhci_check_intr: active ii=0xc1c1626c
uhci_check_intr: ii=0xc1c1626c std=0xc1a57f20 still active
uhci_check_intr: active ii=0xc1a41a6c
uhci_check_intr: ii=0xc1a41a6c std=0xc1a57f80 still active
uhci_device_intr_transfer: xfer=0xc1c16100 len=6 flags=4
uhci_alloc_std_chain: addr=4 endpt=2 len=6 speed=1 flags=0x4
uhci_alloc_std_chain: maxp=5 ntd=2
uhci_alloc_std_chain: nexttog=0
uhci_device_intr_transfer: data(1)
TD(0xc1a57ea0) at 1f3ebea0 = link=0x1f3ebec4 status=0x3c8003ff
token=0x00810469 buffer=0x001f1d40
  1f3ebec4<VF> 3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0
pid=69,addr=4,endpt=2,D=0,maxlen=5
TD(0xc1a57ec0) at 1f3ebec0 = link=0x00000005 status=0x3d8003ff
token=0x00090469 buffer=0x001f1d45
  5<T,VF> 3d8003ff<ACTIVE,IOC,LS,SPD>,errcnt=3,actlen=0
pid=69,addr=4,endpt=2,D=1,maxlen=1
QH(0xc1a58d40) at 1f3ecd40: hlink=0022df82 elink=00000001
uhci_device_intr_transfer: qhs[0]=0xc1a58d40
uhci_device_intr_transfer: data(2)
TD(0xc1a57ea0) at 1f3ebea0 = link=0x1f3ebec4 status=0x3c8003ff
token=0x00810469 buffer=0x001f1d40
  1f3ebec4<VF> 3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0
pid=69,addr=4,endpt=2,D=0,maxlen=5
TD(0xc1a57ec0) at 1f3ebec0 = link=0x00000005 status=0x3d8003ff
token=0x00090469 buffer=0x001f1d45
  5<T,VF> 3d8003ff<ACTIVE,IOC,LS,SPD>,errcnt=3,actlen=0
pid=69,addr=4,endpt=2,D=1,maxlen=1
QH(0xc1a58d40) at 1f3ecd40: hlink=0022df82 elink=1f3ebea0
usb0: uhci_softintr (0)
uhci_check_intr: ii=0xc1c1616c done
uhci_idone: ii=0xc1c1616c
uhci_idone: ii=0xc1c1616c, xfer=0xc1c16100, pipe=0xc1eda800 ready
TD(0xc1a57ea0) at 1f3ebea0 = link=0x1f3ebec4 status=0x1c000004
token=0x00810469 buffer=0x001f1d40
  1f3ebec4<VF> 1c000004<LS>,errcnt=3,actlen=5 pid=69,addr=4,endpt=2,D=0,maxlen=5
TD(0xc1a57ec0) at 1f3ebec0 = link=0x00000005 status=0x1d500000
token=0x00090469 buffer=0x001f1d45
  5<T,VF> 1d500000<BABBLE,STALLED,IOC,LS>,errcnt=3,actlen=1
pid=69,addr=4,endpt=2,D=1,maxlen=1
uhci_idone: actlen=6, status=0x500000
uhci_idone: error, addr=4, endpt=0x82, status 0x500000<BABBLE,STALLED>
uhci_device_intr_done: length=6
uhci_device_intr_done: requeing
uhci_alloc_std_chain: addr=4 endpt=2 len=6 speed=1 flags=0x4
uhci_alloc_std_chain: maxp=5 ntd=2
uhci_alloc_std_chain: nexttog=0
uhci_device_intr_done: data(1)
TD(0xc1a57ea0) at 1f3ebea0 = link=0x1f3ebec4 status=0x3c8003ff
token=0x00810469 buffer=0x001f1d40
  1f3ebec4<VF> 3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0
pid=69,addr=4,endpt=2,D=0,maxlen=5
TD(0xc1a57ec0) at 1f3ebec0 = link=0x00000005 status=0x3d8003ff
token=0x00090469 buffer=0x001f1d45
  5<T,VF> 3d8003ff<ACTIVE,IOC,LS,SPD>,errcnt=3,actlen=0
pid=69,addr=4,endpt=2,D=1,maxlen=1
QH(0xc1a58d40) at 1f3ecd40: hlink=0022df82 elink=00000001
uhci_idone: ii=0xc1c1616c done
uhci_check_intr: active ii=0xc1c1626c
uhci_check_intr: ii=0xc1c1626c std=0xc1a57f20 still active
uhci_check_intr: active ii=0xc1a41a6c
uhci_check_intr: ii=0xc1a41a6c std=0xc1a57f80 still active
uhci_device_intr_abort: xfer=0xc1c16100
uhci_device_intr_abort: remove
uhci_abort_xfer: xfer=0xc1c16100, status=6
uhci_abort_xfer: stop ii=0xc1c1616c
usb0: uhci_softintr (0)
uhci_check_intr: aborted xfer=0xc1c16100
uhci_check_intr: active ii=0xc1c1626c
uhci_check_intr: ii=0xc1c1626c std=0xc1a57f20 still active
uhci_check_intr: active ii=0xc1a41a6c
uhci_check_intr: ii=0xc1a41a6c std=0xc1a57f80 still active
uhci_abort_xfer: callback
uhci_device_intr_done: length=6
uhci_device_intr_done: removing
uhci_remove_intr: n=2 sqh=0xc1a58d40
uhci_remove_intr: n=12 sqh=0xc1a58d20
uhci_remove_intr: n=22 sqh=0xc1a58d00
uhci_remove_intr: n=32 sqh=0xc1a58ce0
uhci_remove_intr: n=42 sqh=0xc1a58cc0
uhci_remove_intr: n=52 sqh=0xc1a58ca0
uhci_remove_intr: n=62 sqh=0xc1a58c80
uhci_remove_intr: n=72 sqh=0xc1a58c60
uhci_remove_intr: n=82 sqh=0xc1a58c40
uhci_remove_intr: n=92 sqh=0xc1a58c20
uhci_remove_intr: n=102 sqh=0xc1a58c00
uhci_remove_intr: n=112 sqh=0xc1a58be0
uhci_remove_intr: n=122 sqh=0xc1a58bc0
uhci_root_ctrl_control type=0xa3 request=00
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=17
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=16
uhub4: at uhub0 port 1 (addr 2) disconnected
uhci_device_intr_abort: xfer=0xc1a41a00
uhci_device_intr_abort: remove
uhci_abort_xfer: xfer=0xc1a41a00, status=6
uhci_abort_xfer: stop ii=0xc1a41a6c
usb0: uhci_softintr (0)
uhci_check_intr: active ii=0xc1c1626c
uhci_check_intr: ii=0xc1c1626c std=0xc1a57f20 still active
uhci_check_intr: aborted xfer=0xc1a41a00
uhci_abort_xfer: callback
uhci_device_intr_done: length=1
uhci_device_intr_done: removing
uhci_remove_intr: n=0 sqh=0xc1a58f40
ums0: at uhub4 port 1 (addr 3) disconnected
uhci_device_intr_abort: xfer=0xc1c16200
uhci_device_intr_abort: remove
uhci_abort_xfer: xfer=0xc1c16200, status=6
uhci_abort_xfer: stop ii=0xc1c1626c
usb0: uhci_softintr (0)
uhci_check_intr: aborted xfer=0xc1c16200
uhci_abort_xfer: callback
uhci_device_intr_done: length=7
uhci_device_intr_done: removing
uhci_remove_intr: n=1 sqh=0xc1a58f00
uhci_remove_intr: n=11 sqh=0xc1a58ee0
uhci_remove_intr: n=21 sqh=0xc1a58ec0
uhci_remove_intr: n=31 sqh=0xc1a58ea0
uhci_remove_intr: n=41 sqh=0xc1a58e80
uhci_remove_intr: n=51 sqh=0xc1a58e60
uhci_remove_intr: n=61 sqh=0xc1a58e40
uhci_remove_intr: n=71 sqh=0xc1a58e20
uhci_remove_intr: n=81 sqh=0xc1a58e00
uhci_remove_intr: n=91 sqh=0xc1a58de0
uhci_remove_intr: n=101 sqh=0xc1a58dc0
uhci_remove_intr: n=111 sqh=0xc1a58da0
uhci_remove_intr: n=121 sqh=0xc1a58d80
ums0: detached
uhid0: at uhub4 port 2 (addr 4) disconnected
uhid0: detached
uhid1: at uhub4 port 2 (addr 4) disconnected
uhid1: detached
uhid2: at uhub4 port 2 (addr 4) disconnected
uhid2: detached
uhub4: detached
uhci_root_ctrl_control type=0x23 request=01
uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=16
uhci_root_ctrl_control type=0xa3 request=00


-- 
 Cheers,
   John-Paul Andrusky


More information about the freebsd-usb mailing list