On Sun, Nov 18, 2012 at 12:44:37PM -0500, Alan Stern wrote: > On Sun, 18 Nov 2012, Piergiorgio Sartor wrote: > > > 32830f207691176234b4c4dd17f0d7ab6d87d94b is the first bad commit > > commit 32830f207691176234b4c4dd17f0d7ab6d87d94b > > Author: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> > > Date: Wed Jul 11 11:22:53 2012 -0400 > > > > USB: EHCI: use hrtimer for unlinking empty async QHs > > > > This patch (as1583) changes ehci-hcd to use an hrtimer event for > > unlinking empty (unused) async QHs instead of using a kernel timer. > > > > The check for empty QHs is moved to a new routine, where it doesn't > > require going through an entire scan of both the async and periodic > > schedules. And it can unlink multiple QHs at once, unlike the current > > code. > > > > Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> > > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > > > > :040000 040000 9767ca0f3b8c9fa0530e90730dc3106420412822 > > 6b567d1137df3cdec9f19f835ea7c546491d9ca8 M drivers > > > > Which looks like to me more consistent with the problem. > > Here's what you should do. Build a kernel that exhibits the problem > with CONFIG_USB_DEBUG enabled and post a copy of the dmesg log showing > what happens when the problem occurs. Also, it would help if you can > collect a usbmon trace at the same time (see the instructions in > Documentation/usb/usbmon.txt). There is not too much after the DEBUG enabled: [...] [ 236.867416] usb 1-5.4: usb-storage timed out on ep0out len=0/0 [ 236.867426] hub 1-5.4:1.0: cannot reset port 4 (err = -110) [ 236.867431] hub 1-5.4:1.0: port 4 not enabled, trying reset again... [ 237.878947] usb 1-5.4: usb-storage timed out on ep0out len=0/0 [ 237.878960] hub 1-5.4:1.0: cannot reset port 4 (err = -110) [ 237.879069] hub 1-5.4:1.0: port 4 not enabled, trying reset again... [ 238.890004] usb 1-5.4: usb-storage timed out on ep0out len=0/0 [ 238.890017] hub 1-5.4:1.0: cannot reset port 4 (err = -110) [ 238.890126] hub 1-5.4:1.0: port 4 not enabled, trying reset again... [ 239.900652] usb 1-5.4: usb-storage timed out on ep0out len=0/0 [ 239.900665] hub 1-5.4:1.0: cannot reset port 4 (err = -110) [ 239.900773] hub 1-5.4:1.0: port 4 not enabled, trying reset again... [ 240.912037] usb 1-5.4: usb-storage timed out on ep0out len=0/0 [ 240.912094] hub 1-5.4:1.0: cannot reset port 4 (err = -110) [ 240.912204] hub 1-5.4:1.0: port 4 not enabled, trying reset again... [ 240.912209] hub 1-5.4:1.0: Cannot enable port 4. Maybe the USB cable is bad? [ 241.923720] usb 1-5.4: usb-storage timed out on ep0out len=0/0 [ 241.923731] hub 1-5.4:1.0: cannot disable port 4 (err = -110) [ 242.934802] usb 1-5.4: usb-storage timed out on ep0out len=0/0 [ 242.934814] hub 1-5.4:1.0: cannot reset port 4 (err = -110) [ 242.934993] hub 1-5.4:1.0: port 4 not enabled, trying reset again... [...] This is going on until the storage device reports and I/O error. Note the "Maybe the USB cable is bad?", which is not, since it works with other kernels. I'll try the "usbmon" maybe tomorrow. bye, -- piergiorgio -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html