USB devices disappering on resume on pantherpoint chipset with dock

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

 



Hi,

I'm having trouble with USB devices connected to a Thinkpad X230's dock
disappearing after a few suspend/resume cycles.  Devices connected directly to
the laptop rather than the dock are not affected.  The main symptom in the
logs is a complaint about bandwidth, and comes from the bandwidth checking
code in the xhci driver that is only used for Intel Pantherpoint chipsets, as
far as I can tell.

To give a controlled example, I booted the laptop running 3.17.1 with extra
xhci logging, filled up the USB sockets on the dock with a flash drive, a
keyboard and a couple of mice, then suspended and resumed it until the
keyboard stopped working.  Through the first two suspends everything works,
but the reported bandwidth changes:

[  205.933357] xhci_hcd 0000:00:14.0: Recalculating BW for rootport 3
[  205.933360] xhci_hcd 0000:00:14.0: Final bandwidth: 27, Limit: 1607, Reserved: 322, Available: 78 percent

[  409.192473] xhci_hcd 0000:00:14.0: Recalculating BW for rootport 3
[  409.192475] xhci_hcd 0000:00:14.0: Final bandwidth: 402, Limit: 1607, Reserved: 322, Available: 54 percent

[  447.874989] xhci_hcd 0000:00:14.0: Recalculating BW for rootport 3
[  447.874991] xhci_hcd 0000:00:14.0: Final bandwidth: 777, Limit: 1607, Reserved: 322, Available: 31 percent

(It also reports bandwidth for some individual ports, but these don't change.)
On the third resume it changes again, then later complains about the mice:

[  467.998687] xhci_hcd 0000:00:14.0: Recalculating BW for rootport 3
[  467.998689] xhci_hcd 0000:00:14.0: Final bandwidth: 1152, Limit: 1607, Reserved: 322, Available: 8 percent
...
[  469.592653] xhci_hcd 0000:00:14.0: Adding 1 ep ctxs, 11 now active.
[  469.592655] xhci_hcd 0000:00:14.0: Recalculating BW for rootport 3
[  469.592656] xhci_hcd 0000:00:14.0: Not enough bandwidth on HS bus for newly activated TT.
[  469.592657] xhci_hcd 0000:00:14.0: Removing 1 failed ep ctxs, 10 now active.
[  469.592658] xhci_hcd 0000:00:14.0: Not enough bandwidth
[  469.592659] xhci_hcd 0000:00:14.0: xhci_reset_bandwidth called for udev ffff880210693800
[  469.592661] usb 3-3.4: Busted HC?  Not enough HCD resources for old configuration.

There are similar messages for another attempt at this mouse, and another pair
for the other mouse.  Then on the fourth resume the bandwidth is exhausted:

[  492.742794] xhci_hcd 0000:00:14.0: Recalculating BW for rootport 3
[  492.742796] xhci_hcd 0000:00:14.0: Final bandwidth: 1277, Limit: 1607, Reserved: 322, Available: 0 percent

And then the keyboard fails too.

I originally had the problem with Ubuntu 14.04's stock kernel, so it's been
around for a while, perhaps always.  A bug filed with Ubuntu suggests that it
also happens with some Dell machines, too
(https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1116525).  I put more
logs and system details up at http://www.z273.org.uk/tmp/2014-x230-usb-dock/
in case they're useful to someone.

Cheers,
  Brian
--
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