VectorLinux

The nuts and bolts => Hardware & Drivers => Topic started by: Rytz on September 20, 2015, 12:50:40 pm

Title: Random USB Dropouts / Disconnects
Post by: Rytz on September 20, 2015, 12:50:40 pm
Hi:

Running VLocity 7.0.
Kernel version: 3.2.22
Motherboard: MSI H81M-P33

I have 4 joystick devices connected via USB.  Two of the joysticks are plugged in to USB3.  I've had disconnects on both USB2 and USB3 ports.

I've been getting random disconnects for some time now.  I'm not sure if this has always been an issue or if it just started. The system functions properly aside from the dropouts, so I never had a reason to look into system problems.

The timing seems random.  I've gone weeks without a dropout and on some stretches I get them daily.  I haven't been able to pinpoint a specific trigger.  They had heavy use during those long stretches without dropouts, so I don't think it's specific to actual usage.

I am able to manually reset the ports with some c-code that uses "ioctl(file, USBDEVFS_RESET, 0)", but this is not a feasible solution because the system is unattended.  I don't have any kind of "joystick status" checker in place.  I'd rather fix the root issue anyway.

I've noticed that I get a lot of xhci_hcd spam in my DMESG. Six of these entries are popping up every 3 seconds:
Code: [Select]
[11242.687185] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[11242.687689] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[11242.688146] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[11242.688726] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[11242.689183] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
[11242.689761] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep

/var/log/syslog shows at startup:
Code: [Select]
14871665 Sep 20 10:02:33 kernel: [    3.569424] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
14871666 Sep 20 10:02:33 kernel: [    3.569518] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
14871667 Sep 20 10:02:33 kernel: [    3.569612] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
14871668 Sep 20 10:02:33 kernel: [    3.570733] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871669 Sep 20 10:02:33 kernel: [    3.571567] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871670 Sep 20 10:02:33 kernel: [    3.572395] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871671 Sep 20 10:02:33 kernel: [    3.572988] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint
14871672 Sep 20 10:02:33 kernel: [    3.573880] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871673 Sep 20 10:02:33 kernel: [    3.574707] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871674 Sep 20 10:02:33 kernel: [    3.743529] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871675 Sep 20 10:02:33 kernel: [    3.744453] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871676 Sep 20 10:02:33 kernel: [    3.745213] xhci_hcd 0000:00:14.0: WARN: short transfer on control ep
14871677 Sep 20 10:02:33 kernel: [    3.745423] usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
14871678 Sep 20 10:02:33 kernel: [    3.746252] xhci_hcd 0000:00:14.0: WARN: Stalled endpoint

Afterwards my DMESG is getting spammed with the above short transfer messages.

Since I am using all 6 USB ports, I was thinking maybe the hub isn't getting enough sustained power?

Looking for ideas and diagnostic suggestions.

Thanks.
Title: Re: Random USB Dropouts / Disconnects
Post by: retired1af on September 20, 2015, 02:23:44 pm
Searching around a bit seems to indicate that it's not pairing properly. What kernel version are you running?

Have you tried VLoctiy 7.1?
Title: Re: Random USB Dropouts / Disconnects
Post by: Rytz on September 20, 2015, 04:35:32 pm
Searching around a bit seems to indicate that it's not pairing properly. What kernel version are you running?

Have you tried VLoctiy 7.1?

Sorry should have added that:  3.2.22

Just was reading that 7.1 was released.  I saw another thread suggesting to update for USB3 issues.  Not sure that my dropout issue is USB3-specific, although the DMESG output seems to indicate a USB3 problem (unless XHCI includes USB2).
Title: Re: Random USB Dropouts / Disconnects
Post by: retired1af on September 20, 2015, 04:55:49 pm
As a minimum, I'd update the kernel to at least 3.6. Better yet, try 7.1. It works pretty durned good.
Title: Re: Random USB Dropouts / Disconnects
Post by: Rytz on September 20, 2015, 05:08:50 pm
As a minimum, I'd update the kernel to at least 3.6. Better yet, try 7.1. It works pretty durned good.

I've always done vector from scratch.  Is there a way to upgrade to 7.1 without a clean install?  Not a huge deal but could save me some time.
Title: Re: Random USB Dropouts / Disconnects
Post by: sledgehammer on September 20, 2015, 08:38:34 pm
If you use the advanced rather than the automatic install, you can choose not to format your home partition.
Title: Re: Random USB Dropouts / Disconnects
Post by: Rytz on September 20, 2015, 08:52:46 pm
Thanks for the info.
Title: Re: Random USB Dropouts / Disconnects
Post by: wigums on September 21, 2015, 12:28:16 pm
id deffinitely go with vl 7.1and we have many kernels to choose from. with that being said ive had a few boxes that the usb busitself just dies. no usb at all.
Title: Re: Random USB Dropouts / Disconnects
Post by: Rytz on September 21, 2015, 05:00:50 pm
id deffinitely go with vl 7.1and we have many kernels to choose from. with that being said ive had a few boxes that the usb busitself just dies. no usb at all.
When I was researching the "usb reset" fix that I have been using, people had mentioned older kernels having USB hub issues (which also required those users to reset the ports or reboot).  I thought by resetting the devices before use I could fix it.  Guess not :)