Cc-ing Mathias Nyman, who is taking over as xHCI maintainer. On Fri, Mar 21, 2014 at 11:22:07AM +0800, Rick Chen wrote: > Hi Sarah, > > I use linux 3.13.6 to test Logitech C310 web cam but encounter the > following message and usb controller is disabled and all usb device freeze. > > [51237.045088] xhci_hcd 0000:00:14.0: @f5ee903c (virt) @35ee903c (dma) > 0x000000 - rsvd[2] > [51237.045099] xhci_hcd 0000:00:14.0: OUT Endpoint 01 Context (ep_index 01): > [51237.045111] xhci_hcd 0000:00:14.0: @f5ee9040 (virt) @35ee9040 (dma) > 0x000000 - ep_info > [51237.045122] xhci_hcd 0000:00:14.0: @f5ee9044 (virt) @35ee9044 (dma) > 0x000000 - ep_info2 > [51237.045133] xhci_hcd 0000:00:14.0: @f5ee9048 (virt) @35ee9048 (dma) > 0x000000 - deq > [51237.045145] xhci_hcd 0000:00:14.0: @f5ee9050 (virt) @35ee9050 (dma) > 0x000000 - tx_info > [51237.045157] xhci_hcd 0000:00:14.0: @f5ee9054 (virt) @35ee9054 (dma) > 0x000000 - rsvd[0] > [51237.045174] xhci_hcd 0000:00:14.0: @f5ee9058 (virt) @35ee9058 (dma) > 0x000000 - rsvd[1] > [51237.045186] xhci_hcd 0000:00:14.0: @f5ee905c (virt) @35ee905c (dma) > 0x000000 - rsvd[2] > [51237.045197] xhci_hcd 0000:00:14.0: IN Endpoint 01 Context (ep_index 02): > [51237.045209] xhci_hcd 0000:00:14.0: @f5ee9060 (virt) @35ee9060 (dma) > 0x000001 - ep_info > [51237.045220] xhci_hcd 0000:00:14.0: @f5ee9064 (virt) @35ee9064 (dma) > 0x1800028 - ep_info2 > [51237.045232] xhci_hcd 0000:00:14.0: @f5ee9068 (virt) @35ee9068 (dma) > 0x2ee7d001 - deq > [51237.045243] xhci_hcd 0000:00:14.0: @f5ee9070 (virt) @35ee9070 (dma) > 0x1800180 - tx_info > [51237.045261] xhci_hcd 0000:00:14.0: @f5ee9074 (virt) @35ee9074 (dma) > 0x000000 - rsvd[0] > [51237.045273] xhci_hcd 0000:00:14.0: @f5ee9078 (virt) @35ee9078 (dma) > 0x000000 - rsvd[1] > [51237.045285] xhci_hcd 0000:00:14.0: @f5ee907c (virt) @35ee907c (dma) > 0x000000 - rsvd[2] > [51237.045371] xhci_hcd 0000:00:14.0: Endpoint 0x81 not halted, refusing to > reset. > [51237.059334] xhci_hcd 0000:00:14.0: ERROR no room on ep ring, try ring > expansion > [51237.059379] xhci_hcd 0000:00:14.0: ring expansion succeed, now has 4 > segments > [51237.356238] xhci_hcd 0000:00:14.0: ERROR no room on ep ring, try ring > expansion > [51237.356284] xhci_hcd 0000:00:14.0: ring expansion succeed, now has 8 > segments > [51237.358047] xhci_hcd 0000:00:14.0: ERROR no room on ep ring, try ring > expansion > [51237.358099] xhci_hcd 0000:00:14.0: ring expansion succeed, now has 16 > segments > [51237.374744] xhci_hcd 0000:00:14.0: ERROR no room on ep ring, try ring > expansion > [51237.374825] xhci_hcd 0000:00:14.0: ring expansion succeed, now has 32 > segments > [51239.061291] xhci_hcd 0000:00:14.0: Cancel URB f5ef9800, dev 3.3, ep > 0x81, starting at offset 0x2ee7d560 > [51239.061324] xhci_hcd 0000:00:14.0: // Ding dong! > [51244.075493] xhci_hcd 0000:00:14.0: xHCI host not responding to stop > endpoint command. > [51244.075519] xhci_hcd 0000:00:14.0: Assuming host is dying, halting host. > [51244.075560] xhci_hcd 0000:00:14.0: // Halt the HC > [51244.075582] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 1, ep index 0 > [51244.075599] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 1, ep index 2 > [51244.075627] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 2, ep index 0 > [51244.075644] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 2, ep index 2 > [51244.075666] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 3, ep index 0 > [51244.075693] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 3, ep index 2 > [51244.075879] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 3, ep index > 14 > [51244.075900] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 4, ep index 0 > [51244.075917] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 4, ep index 2 > [51244.075937] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 4, ep index 4 > [51244.075957] xhci_hcd 0000:00:14.0: Killing URBs for slot ID 4, ep index 6 > [51244.075979] xhci_hcd 0000:00:14.0: Calling usb_hc_died() > [51244.075994] xhci_hcd 0000:00:14.0: HC died; cleaning up > [51244.076032] xhci_hcd 0000:00:14.0: xHCI host controller is dead. > [51244.076445] hub 1-0:1.0: state 0 ports 6 chg 0000 evt 0000 > [51244.076480] usb 1-3: USB disconnect, device number 2 > [51244.076499] usb 1-3.1: USB disconnect, device number 3 > [51244.076515] usb 1-3.1.1: USB disconnect, device number 5 > [51244.076530] usb 1-3.1.1: unregistering device > [51244.076546] usb 1-3.1.1: unregistering interface 1-3.1.1:1.0 > [51244.154617] usb 1-3.1.1: unregistering interface 1-3.1.1:1.1 > [51244.208993] usb 1-3.1.1: unregistering interface 1-3.1.1:1.2 > [51244.248229] usb 1-3.1.1: usb_disable_device nuking all URBs > [51244.263954] usb 1-3.1: unregistering device > [51244.263963] usb 1-3.1: unregistering interface 1-3.1:1.0 > [51244.264235] usb 1-3.1: usb_disable_device nuking all URBs > [51244.268803] usb 1-3.3: USB disconnect, device number 4 > [51244.268810] usb 1-3.3: unregistering device > [51244.268816] usb 1-3.3: unregistering interface 1-3.3:1.0 > [51244.270361] usb 1-3.3: unregistering interface 1-3.3:1.1 > [51244.270881] usb 1-3.3: unregistering interface 1-3.3:1.2 > [51244.271087] usb 1-3.3: unregistering interface 1-3.3:1.3 > [51244.271363] usb 1-3.3: usb_disable_device nuking all URBs > [51244.273033] usb 1-3: unregistering device > [51244.273042] usb 1-3: unregistering interface 1-3:1.0 > [51244.273387] usb 1-3: usb_disable_device nuking all URBs > [51244.273800] hub 2-0:1.0: state 0 ports 1 chg 0000 evt 0000 > > > after change the size of TRBS_PER_SEGMENT to 256, the webcam works. but I > got another warning message in dmesg: > > > Endpoint 0x81 not halted, refusing to reset. > [51552.072083] xhci_hcd 0000:00:14.0: ERROR no room on ep ring, try ring > expansion > [51552.072126] xhci_hcd 0000:00:14.0: ring expansion succeed, now has 4 > segments > [51552.087492] xhci_hcd 0000:00:14.0: ERROR no room on ep ring, try ring > expansion > [51552.087555] xhci_hcd 0000:00:14.0: ring expansion succeed, now has 8 > segments > [51552.949117] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51552.949133] xhci_hcd 0000:00:14.0: Giveback URB f606ae00, len = 7, > expected = 16, status = -121 > [51552.965120] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51552.965130] xhci_hcd 0000:00:14.0: Giveback URB f606ad00, len = 7, > expected = 16, status = -121 > [51553.061195] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51553.061205] xhci_hcd 0000:00:14.0: Giveback URB eec91180, len = 7, > expected = 16, status = -121 > [51553.653669] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51553.653682] xhci_hcd 0000:00:14.0: Giveback URB eec91180, len = 7, > expected = 16, status = -121 > [51553.733722] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51553.733734] xhci_hcd 0000:00:14.0: Giveback URB f606ac00, len = 7, > expected = 16, status = -121 > [51553.831907] xhci_hcd 0000:00:14.0: overrun event on endpoint > [51554.037975] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51554.037985] xhci_hcd 0000:00:14.0: Giveback URB f606a780, len = 7, > expected = 16, status = -121 > [51554.246121] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51554.246131] xhci_hcd 0000:00:14.0: Giveback URB eef46580, len = 7, > expected = 16, status = -121 > [51554.589127] xhci_hcd 0000:00:14.0: overrun event on endpoint > [51554.694455] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51554.694464] xhci_hcd 0000:00:14.0: Giveback URB f5c2c480, len = 7, > expected = 16, status = -121 > [51557.320540] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51557.320554] xhci_hcd 0000:00:14.0: Giveback URB f606a780, len = 7, > expected = 16, status = -121 > [51557.865015] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51557.865046] xhci_hcd 0000:00:14.0: Giveback URB eec91180, len = 7, > expected = 16, status = -121 > [51557.993123] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51557.993155] xhci_hcd 0000:00:14.0: Giveback URB f5c2cf00, len = 7, > expected = 16, status = -121 > [51558.377422] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51558.377455] xhci_hcd 0000:00:14.0: Giveback URB eef46780, len = 7, > expected = 16, status = -121 > [51558.409385] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51558.409396] xhci_hcd 0000:00:14.0: Giveback URB f606ad00, len = 7, > expected = 16, status = -121 > [51560.266837] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51560.266850] xhci_hcd 0000:00:14.0: Giveback URB f5c2cc00, len = 7, > expected = 16, status = -121 > [51560.394931] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51560.394942] xhci_hcd 0000:00:14.0: Giveback URB f5c2c080, len = 7, > expected = 16, status = -121 > [51561.323719] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51561.323752] xhci_hcd 0000:00:14.0: Giveback URB f5c2c200, len = 7, > expected = 16, status = -121 > [51561.852131] xhci_hcd 0000:00:14.0: ep 0x87 - asked for 16 bytes, 9 bytes > untransferred > [51561.852163] xhci_hcd 0000:00:14.0: Giveback URB eef46080, len = 7, > expected = 16, status = -121 > > Since I see you revert the change in latest 3.14 kernel source. Is there > any side effect to enlarge the size of TRBS_PER_SEGMENT? > > Thanks, > > -- > =========================== > 陳守鍊 / Rick Chen > 冠信電腦股份有限公司 / Atrust Computer Corp. > 桃園縣龜山鄉復興一路361號3F > TEL:+886-3-328-8837 ext.1069 > FAX:+886-3-3288973 > =========================== -- 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