VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Random USB Dropouts / Disconnects  (Read 1533 times)

Rytz

  • Member
  • *
  • Posts: 91
Random USB Dropouts / Disconnects
« 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.
« Last Edit: September 20, 2015, 04:36:33 pm by Rytz »
Logged
~ Rytz

retired1af

  • Administrator
  • Vectorian
  • *****
  • Posts: 1446
Re: Random USB Dropouts / Disconnects
« Reply #1 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?
Logged
ASUS K73 Intel i3 Dual Core 2.3GHz

Rytz

  • Member
  • *
  • Posts: 91
Re: Random USB Dropouts / Disconnects
« Reply #2 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).
Logged
~ Rytz

retired1af

  • Administrator
  • Vectorian
  • *****
  • Posts: 1446
Re: Random USB Dropouts / Disconnects
« Reply #3 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.
Logged
ASUS K73 Intel i3 Dual Core 2.3GHz

Rytz

  • Member
  • *
  • Posts: 91
Re: Random USB Dropouts / Disconnects
« Reply #4 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.
Logged
~ Rytz

sledgehammer

  • Vectorian
  • ****
  • Posts: 1525
Re: Random USB Dropouts / Disconnects
« Reply #5 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.
Logged
VL7.0 xfce4 Samsung RF511

Rytz

  • Member
  • *
  • Posts: 91
Re: Random USB Dropouts / Disconnects
« Reply #6 on: September 20, 2015, 08:52:46 pm »

Thanks for the info.
Logged
~ Rytz

wigums

  • Guest
Re: Random USB Dropouts / Disconnects
« Reply #7 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.
Logged

Rytz

  • Member
  • *
  • Posts: 91
Re: Random USB Dropouts / Disconnects
« Reply #8 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 :)
Logged
~ Rytz