Re: xHCI problem? [was Re: Erratic USB device behavior and device loss]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Mon, 2016-08-22 at 11:24 +0300, Mathias Nyman wrote:
> * A few disconnects, were these real disconnects done by you?:

No. Nothing was even plugged into the USB ports. And the resets keep recurring.

>   Aug 18 23:55:57 learner kernel: usb 1-4: USB disconnect, device number 27
>   Aug 18 23:55:58 learner kernel: usb 1-4: new high-speed USB device number 28
> using xhci_hcd
>   ..
>   Aug 18 23:56:18 learner kernel: usb 1-4: USB disconnect, device number 28
>   Aug 18 23:56:20 learner kernel: usb 1-4: new high-speed USB device number 32
> using xhci_hcd
>   ..
>   Aug 18 23:56:21 learner kernel: usb 1-4: USB disconnect, device number 32
>   Aug 18 23:56:21 learner kernel: usb 1-4: new high-speed USB device number 34
> using xhci_hcd
> 
> * A bit unclean resume for some of the devices:
> 

The only thing I have enabled is Runtime PM. When this device started reporting
problems (happens occasionally), I even blacklisted the particular device USB ID
to not enable power savings. But that hasn't helped much.

>   Aug 19 14:22:32 learner kernel: xhci_hcd 0000:00:14.0: port 7 resume PLC
> timeout
>   Aug 19 14:22:32 learner kernel: xhci_hcd 0000:00:14.0: port 4 resume PLC
> timeout
>   Aug 19 14:22:32 learner kernel: xhci_hcd 0000:00:14.0: port 3 resume PLC
> timeout
>   Aug 19 14:22:32 learner kernel: rtc_cmos 00:01: System wakeup disabled by
> ACPI
> 
> * Problems in reading device descriptors and addressing the device:
> 
> Aug 19 14:22:37 learner kernel: usb 1-4: device descriptor read/64, error -71
> Aug 19 14:22:37 learner kernel: usb 1-4: device descriptor read/64, error -71
> Aug 19 14:22:37 learner kernel: usb 1-4: new high-speed USB device number 48
> using xhci_hcd
> Aug 19 14:22:37 learner kernel: usb 1-4: device descriptor read/64, error -71
> Aug 19 14:22:38 learner kernel: usb 1-4: device descriptor read/64, error -71
> Aug 19 14:22:38 learner kernel: usb 1-4: new high-speed USB device number 49
> using xhci_hcd
> Aug 19 14:22:38 learner kernel: usb 1-4: Device not responding to setup
> address.
> Aug 19 14:22:38 learner kernel: usb 1-4: Device not responding to setup
> address.
> Aug 19 14:22:38 learner kernel: usb 1-4: device not accepting address 49,
> error -71
> Aug 19 14:22:38 learner kernel: usb 1-4: new high-speed USB device number 50
> using xhci_hcd
> Aug 19 14:22:38 learner kernel: usb 1-4: Device not responding to setup
> address.
> Aug 19 14:22:39 learner kernel: usb 1-4: Device not responding to setup
> address.
> Aug 19 14:22:39 learner kernel: usb 1-4: device not accepting address 50,
> error -71
> Aug 19 14:22:39 learner kernel: usb usb1-port4: unable to enumerate USB device
> 
> * And at the end we it looks like we get stuck at a halted endpoint. Every URB
> to that endpoint
>    is canceled. Either we fail at noticing and clearing the halt, or then the
> endpoint halts again
>    at every transfer.
> 
> Aug 19 15:46:11 learner kernel: xhci_hcd 0000:00:14.0: Cancel URB
> ffff88020bb4b000, dev 4, ep 0x1, starting at offset 0x9a2b2830
> Aug 19 15:46:11 learner kernel: xhci_hcd 0000:00:14.0: // Ding dong!
> Aug 19 15:46:11 learner kernel: xhci_hcd 0000:00:14.0: Removing canceled TD
> starting at 0x9a2b2830 (dma).
> Aug 19 15:46:11 learner kernel: xhci_hcd 0000:00:14.0: TRB to noop at offset
> 0x9a2b2830
> Aug 19 15:46:12 learner kernel: xhci_hcd 0000:00:14.0: WARN halted endpoint,
> queueing URB anyway.
> Aug 19 15:46:12 learner kernel: xhci_hcd 0000:00:14.0: ep 0x81 - asked for 37
> bytes, 27 bytes untransferred
> Aug 19 15:46:12 learner kernel: xhci_hcd 0000:00:14.0: Cancel URB
> ffff880182e41180, dev 4, ep 0x1, starting at offset 0x9a2b2840
> Aug 19 15:46:12 learner kernel: xhci_hcd 0000:00:14.0: // Ding dong!
> Aug 19 15:46:12 learner kernel: xhci_hcd 0000:00:14.0: Removing canceled TD
> starting at 0x9a2b2840 (dma).
> 
> A usbmon log (together with a dmesg) could give some more clues
> see Documentation/usb/usbmon.txt
> 

I'll post back again once I have captured the relevant logs.

Thank you for looking into this.

Ritesh
- -- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXuvLmAAoJEKY6WKPy4XVp6GMP/1ZdsyKUtckHSfwKhQ1Z1H9P
rXZ7c/OkcKqI7ZO6TXCqpaFuHyZQ3P7QkXpGz3vjhngTpuzbc/IMbrRYjacXp4dJ
RZS8DWfGcF9PDV/w6aiM1wnT/yPCOkMGm7Q3XU1rKbwm0oSjpqRRXGcw+n9qiCwy
ItTvoqEz2RWgOPNXEtNGPHgdaUZQlnM7fTiwP+DCYrNUNbnVeRpSo4KKK/J4dp9f
7rWqMkZZt14v3XItB+W/DKpUfWs7ex9Cufxe0ChkjxjLdqwggkYM8vpkoxbel1gA
kc1IfOHAgDy27dcZ5pMVmrXrjSPgYMroYZ7lGDeG1TAfMzJOeBTpxyp7lLiGx70k
WRZqwvTUZfed6/lX/B2OoSBNnHSSDZhEkUiW/8vkCIvDw5p6ubcAS99TXIV5Id+Z
niIQ1cWOo6cHq9phps5ApV5+EPaV1blSQAQVY6icg+3aM6shH4srPiI6jEFyeK4B
FAAKafA85E31ZYaZ9U3Dm9Gv9ZCf8VzGOqJNDgQsxXUeoXN9sDR0NWj3GukKxPwD
9AMNaQeACCqoUEgURbeb681HMCb9X/nC0mPJjb5mfz2B+kn2HH17HgFRjLgPeMES
QfAPhsRPBQWM0mRvGegUzk0SG4/+aX93Ii4DVXeYJdzjvhmNeQ0+hlUDlf2MyJn/
grz6gg4im5fJ4dnXp8b5
=J8Y/
-----END PGP SIGNATURE-----

--
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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux