Bug 60810

Summary: Kernel oops with controller XHCI while wait usb packet
Product: Drivers Reporter: giovanni.nervi
Component: USBAssignee: Sarah Sharp (sarah)
Status: RESOLVED CODE_FIX    
Severity: normal CC: mathias.nyman, sarah
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 3.10.9 Subsystem:
Regression: No Bisected commit-id:
Attachments: log of crash
Kernel oops after patch proposed by Sarah
Config file
log crash after Rui's patch
log after Rui's patch second capture
log crash with usb debug
log crash after Mathias's patch
patch which fix the issue. Release by Mathias Nyman.

Description giovanni.nervi 2013-08-28 19:30:10 UTC
Created attachment 107344 [details]
log of crash

I have a device USB which implement with a microcontroller ARM a USB CDC-ACM.
The implementation is not perfect, but with kernel 2.6 don't make me problem, with kernel 3.10 (I tried also 3.9 and 3.8 without success), I got a kernel panic, when the device is detached or I do a reset of the microcontroller.
I attached the kernel panic in function handle_cmd_completion+0x502/0x95a module xhci_hcd.

Thank you
Giovanni
Comment 1 Greg Kroah-Hartman 2013-08-28 20:59:06 UTC
On Wed, Aug 28, 2013 at 07:30:10PM +0000, bugzilla-daemon@bugzilla.kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=60810
> 
>             Bug ID: 60810
>            Summary: Kernel oops with controller XHCI while wait usb packet

Please send this to the linux-usb@vger.kernel.org mailing list.
Comment 2 giovanni.nervi 2013-08-29 20:36:26 UTC
Created attachment 107363 [details]
Kernel oops after patch proposed by Sarah
Comment 3 giovanni.nervi 2013-08-30 06:25:20 UTC
Created attachment 107368 [details]
Config file
Comment 4 giovanni.nervi 2013-09-02 18:06:05 UTC
Created attachment 107386 [details]
log crash after Rui's patch
Comment 5 giovanni.nervi 2013-09-02 18:42:13 UTC
Created attachment 107387 [details]
log after Rui's patch second capture
Comment 6 giovanni.nervi 2013-09-03 16:19:00 UTC
Created attachment 107400 [details]
log crash with usb debug
Comment 7 giovanni.nervi 2013-09-04 14:09:28 UTC
Created attachment 107415 [details]
log crash after Mathias's patch
Comment 8 giovanni.nervi 2013-09-04 18:25:48 UTC
With patch released by Mathias http://article.gmane.org/gmane.linux.usb.general/94088 the issued is now solved.
Comment 9 giovanni.nervi 2013-09-04 18:26:50 UTC
Created attachment 107418 [details]
patch which fix the issue. Release by Mathias Nyman.
Comment 10 Mathias Nyman 2013-09-05 08:04:23 UTC
Patch sent to xHCI maintainer and linux-usb mailing list:

http://marc.info/?l=linux-usb&m=137836781022404&w=2