Hi,
I'm debugging usb issues on my platform which is running Linux, and I quite often encounter messages like this during file copying on usb drives:
[79078.920948] xhci_hcd 0000:04:00.0: HC gave bad length of 4083 bytes left
[79139.522693] xhci_hcd 0000:04:00.0: WARN Event TRB for slot 3 ep 3 with no TDs queued?
[79139.532536] xhci_hcd 0000:04:00.0: WARN Event TRB for slot 1 ep 2 with no TDs queued?
[79139.542407] xhci_hcd 0000:04:00.0: WARN Event TRB for slot 1 ep 3 with no TDs queued?
[79139.552251] xhci_hcd 0000:04:00.0: WARN Event TRB for slot 4 ep 2 with no TDs queued?
[79139.562110] xhci_hcd 0000:04:00.0: WARN Event TRB for slot 4 ep 3 with no TDs queued?
[79139.571948] xhci_hcd 0000:04:00.0: WARN Event TRB for slot 2 ep 2 with no TDs queued?
[79139.581847] xhci_hcd 0000:04:00.0: WARN Event TRB for slot 2 ep 3 with no TDs queued?
[79140.665814] usb 3-1: reset SuperSpeed USB device number 4 using xhci_hcd
[79141.791780] usb 3-4: reset SuperSpeed USB device number 2 using xhci_hcd
[79142.916747] usb 3-3: reset SuperSpeed USB device number 5 using xhci_hcd
[79144.042481] usb 3-2: reset SuperSpeed USB device number 3 using xhci_hcd
I'm thinking that does the "WARN Event" messages mean the xHC found the Transfer ring is empty? And xHC think it's weird?
And for the reset messages, should I take it as a warning that there's sth bad happened on my USB3.0 link? So the driver try to recover?
Here is the xhci-ring.c:
http://ppt.cc/SfNK2I will also keep reading the xHCI spec to find out the answer of my problem...
Thanks..