You are not logged in.

#1 2016-07-03 19:08:59

Los Frijoles
Member
Registered: 2012-06-23
Posts: 40

Full speed devices don't work with USB 3.0 hub, high speed does work

It has been a while since I've had trouble with arch, so I guess I've gotten complacent. I just bought a new USB 3.0 Hub (this one) for my computer which has had arch on it for about 3 years. The computer is 4.5 years old. The hub is plugged into one of my two USB 3.0 ports.

When plugging high speed devices (480mbps), such as a usb flash drive or my oscilloscope into the USB hub I see the following (flash drive example):

[10514.121350] usb 2-2.2: new high-speed USB device number 8 using xhci_hcd
[10514.223321] usb-storage 2-2.2:1.0: USB Mass Storage device detected
[10514.223591] scsi host4: usb-storage 2-2.2:1.0
[10515.229489] scsi 4:0:0:0: Direct-Access     pqi      IntelligentStick 0.00 PQ: 0 ANSI: 2
[10515.234131] sd 4:0:0:0: [sdb] 1974271 512-byte logical blocks: (1.01 GB/964 MiB)
[10515.235001] sd 4:0:0:0: [sdb] Write Protect is off
[10515.235007] sd 4:0:0:0: [sdb] Mode Sense: 00 00 00 00
[10515.235839] sd 4:0:0:0: [sdb] Asking for cache data failed
[10515.235843] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[10515.357343]  sdb: sdb1
[10515.360556] sd 4:0:0:0: [sdb] Attached SCSI removable disk

Everything works great with the flash drives and I'm happy. However, plugging in a full-speed device (12mbps) gives this:

[10366.481768] usb 2-2.3: new full-speed USB device number 6 using xhci_hcd
[10366.584508] usb 2-2.3: Not enough bandwidth for new device state.
[10366.584517] usb 2-2.3: can't set config #1, error -28

When trying to access this device with libusb, the call to claim the interface fails with an error. This makes the hub virtually useless to me since I do a lot of stuff with full-speed usb devices.

Now, plugging the hub into my newer (~1.5 year old) laptop's USB 3.0 port does not give any of these errors with full speed devices. In addition, switch the hub over to a USB 2.0 port on my older computer also works. This tells me that there is an issue with my computer's USB hardware since I just updated the system last night. Is it possible that my hardware can't support such a large USB hub? Is there any way for me to fix this (short of disabling xhci) or would I just need a new machine?

Thanks in advance for any help!

My motherboard: ASRock Z68 Pro3-M http://www.newegg.com/Product/Product.a … 6813157252

Dmesg when I plug in the hub:

[10608.293530] usb 2-1: new high-speed USB device number 9 using xhci_hcd
[10608.422245] hub 2-1:1.0: USB hub found
[10608.423252] hub 2-1:1.0: 4 ports detected
[10608.520466] usb 3-1: new SuperSpeed USB device number 4 using xhci_hcd
[10608.540707] hub 3-1:1.0: USB hub found
[10608.541398] hub 3-1:1.0: 4 ports detected
[10608.736838] usb 2-1.1: new high-speed USB device number 10 using xhci_hcd
[10608.842071] hub 2-1.1:1.0: USB hub found
[10608.843095] hub 2-1.1:1.0: 4 ports detected
[10608.913730] usb 3-1.1: new SuperSpeed USB device number 5 using xhci_hcd
[10608.934156] hub 3-1.1:1.0: USB hub found
[10608.934838] hub 3-1.1:1.0: 4 ports detected

lsusb:

Bus 004 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 004 Device 003: ID 047b:0011 Silitek Corp. SK-1688U Keyboard
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 005: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 003 Device 004: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 012: ID 16c0:0478 Van Ooijen Technische Informatica Teensy Halfkay Bootloader
Bus 002 Device 011: ID 3538:0054 Power Quotient International Co., Ltd Flash Drive (2GB)
Bus 002 Device 010: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 009: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lspci:

00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 Display controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b5)
00:1c.2 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 3 (rev b5)
00:1c.4 PCI bridge: Intel Corporation 82801 PCI Bridge (rev b5)
00:1c.5 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 (rev b5)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation Z68 Express Chipset Family LPC Controller (rev 05)
00:1f.2 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 4 port SATA IDE Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
00:1f.5 IDE interface: Intel Corporation 6 Series/C200 Series Chipset Family 2 port SATA IDE Controller (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation G92 [GeForce GTS 250] (rev a2)
03:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 01)
05:00.0 Network controller: Ralink corp. RT2800 802.11n PCI
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

Last edited by Los Frijoles (2016-07-03 19:26:34)

Offline

#2 2016-07-22 22:52:05

bkorb
Member
Registered: 2013-10-12
Posts: 5

Re: Full speed devices don't work with USB 3.0 hub, high speed does work

This is not an answer, it is a "me, too" post.  The mainboard is a Gigabyte 990FXA-UD3.  A USB3 hub is plugged into a USB3 port and it has 3 devices plugged in:  keyboard, mouse and SD card reader:

[19465.876204] usb 1-2: new high-speed USB device number 6 using xhci_hcd
[19466.010231] usb 1-2: New USB device found, idVendor=05e3, idProduct=0610
[19466.010239] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[19466.010243] usb 1-2: Product: USB2.0 Hub
[19466.010247] usb 1-2: Manufacturer: GenesysLogic
[19466.011073] hub 1-2:1.0: USB hub found
[19466.011903] hub 1-2:1.0: 4 ports detected
[19466.291879] usb 1-2.1: new full-speed USB device number 7 using xhci_hcd
[19466.389907] usb 1-2.1: New USB device found, idVendor=046d, idProduct=c245
[19466.389915] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[19466.389920] usb 1-2.1: Product: Gaming Mouse G400
[19466.389923] usb 1-2.1: Manufacturer: Logitech
[19466.390231] usb 1-2.1: Not enough bandwidth for new device state.
[19466.390241] usb 1-2.1: can't set config #1, error -28
[19466.491928] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcd
[19466.514382] usb 2-2: New USB device found, idVendor=05e3, idProduct=0617
[19466.514390] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[19466.514394] usb 2-2: Product: USB3.0 Hub
[19466.514398] usb 2-2: Manufacturer: GenesysLogic
[19466.516988] hub 2-2:1.0: USB hub found
[19466.517313] hub 2-2:1.0: 4 ports detected
[19466.583655] usb 1-2.2: new full-speed USB device number 8 using xhci_hcd
[19466.680627] usb 1-2.2: New USB device found, idVendor=05ac, idProduct=1002
[19466.680635] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[19466.680640] usb 1-2.2: Product: Hub in Apple Extended USB Keyboard
[19466.680644] usb 1-2.2: Manufacturer: Mitsumi Electric
[19466.680920] usb 1-2.2: ep 0x81 - rounding interval to 1024 microframes, ep desc says 2040 microframes
[19466.680952] usb 1-2.2: Not enough bandwidth for new device state.
[19466.680961] usb 1-2.2: can't set config #1, error -28
[19466.755456] usb 1-2.4: new high-speed USB device number 9 using xhci_hcd
[19467.257417] usb 1-2.4: New USB device found, idVendor=048d, idProduct=1366
[19467.257425] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19467.257430] usb 1-2.4: Product: MultiCard Device
[19467.257434] usb 1-2.4: Manufacturer: Generic
[19467.257437] usb 1-2.4: SerialNumber: 0000000000000006
$ lspci |grep -iE 'usb *3'
02:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)
06:00.0 USB controller: Etron Technology, Inc. EJ168 USB 3.0 Host Controller (rev 01)
$ lsusb|sort|grep 'Bus 001'
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 010: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 011: ID 046d:c245 Logitech, Inc. G400 Optical Mouse
Bus 001 Device 012: ID 05ac:1002 Apple, Inc. Extended Keyboard Hub [Mitsumi]
Bus 001 Device 013: ID 048d:1366 Integrated Technology Express, Inc.
$ lsusb -t
[...]
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
    |__ Port 1: Dev 10, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 4: Dev 13, If 0, Class=Mass Storage, Driver=usb-storage, 480M
        |__ Port 4: Dev 13, If 1, Class=Chip/SmartCard, Driver=, 480M

The "Not enough bandwidth" is a Linux kernel message triggered by the xhci returning a status code of 8 or 35 to a request sent down.  The fix may be a properly programmed xhci chip, or a driver hack, or ... what?

Offline

#3 2016-07-23 00:21:34

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Full speed devices don't work with USB 3.0 hub, high speed does work

You most probably want to seek help upstream in the kernel bugtracker. This seems to be low level enough that it might be hard to get help here, and even if you do if it requires patching you should report it upstream anyway so the fix gets included in the upstream code.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2016-07-23 17:52:23

bkorb
Member
Registered: 2013-10-12
Posts: 5

Re: Full speed devices don't work with USB 3.0 hub, high speed does work

I really wasn't excited about getting super low level.  In the end, I did get to linux-usb at vger and the conclusion is that Gigabyte uses a third-rate USB 3 controller that cannot properly handle a hub.  In other words, don't buy Gigabyte, but if you do and need a USB 3 hub, then buy a PCI-E USB3 card.  The on-board controller doesn't work.

Offline

Board footer

Powered by FluxBB