Re: USB disconnects in 2.6.20-rc5 (but improved behaviour over earlier RCs)

Antti P Miettinen <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Domestic Network Association
Message-ID <[email protected]>
Antti P Miettinen <[email protected]> writes:
> So the token field indicates transaction error in qtd_copy_status(),
> right? How could I diagnose further?

I added some ehci_dbg() and dump_stack() calls here and there and been
reading the USB 2.0 spec. It seems that for some reason the USB device
inside the PCI card sometimes gives transaction errors:

[17179738.432000] ehci_hcd 0000:03:0c.2: XactErr, ep3in, token=0000cd08
[17179783.756000] ehci_hcd 0000:03:0c.2: XactErr, ep0out, token=00000c08
[17179784.868000] ehci_hcd 0000:03:0c.2: XactErr, ep2in, token=80004d08
[17179831.060000] ehci_hcd 0000:03:0c.2: XactErr, ep2in, token=80004d08

etc.. and finally hard failure:

[17181900.808000] ehci_hcd 0000:03:0c.2: XactErr, ep3in, token=0038c948
[17181900.808000] ehci_hcd 0000:03:0c.2: XactErr, ep0out, token=80008148
[17181900.808000] ehci_hcd 0000:03:0c.2: devpath 1 ep0out 3strikes,t=80008148

In the usbmon log as far as I've understood we first get one EPIPE
which corresponds to the token having transfer length 0x38 above and
then start getting EPROTO:

f76228c0 30344747 C Bi:002:02 -32 39424 = 36629c1a dc40077f eefbb3df d85cf2d0 09661035 40829685 d6fa47bf d1ff4134
f76228c0 30344747 S Bi:002:02 -115 39480 <
f7723bc0 30344747 C Bi:002:03 -71 10240 = 780c27df afdfe043 b14a917c eab7edf8 b8007f36 58551dad f866c527 6c1e391b
f7723bc0 30344747 S Bi:002:03 -115 39480 <
f7622840 30344748 C Bi:002:02 -71 0
f7622840 30344748 S Bi:002:02 -115 39480 <
f7723b40 30344748 C Bi:002:03 -71 0

Does anyone have tools/scripts for decoding the usbmon logs?

-- 
http://www.iki.fi/~ananaza/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.