Re: Fwd: Problem with Etron EJ168 USB3.0 Host Controller connected to USB 2.0 HUB and mouse/keyboard

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

 



On 06/27/2014 11:09 AM, Carsten Koepp wrote:
> Hi Mathias,
> 
> thanks for your quick response. You are right, it's a "bandwidth error" in the bugzilla report,  but it's not the same.
> 
> Bugzilla:
> 
> [  316.281166] usb 8-2: Manufacturer: Hanlincrest Ltd.
> [  316.300249] xhci_hcd 0000:02:00.0: ERROR: unexpected command completion code 0x11.
> [  316.300267] usb 8-2: Not enough bandwidth for altsetting 1
> 
> 
> Mine: Debian jessie with vanilla kernel 3.16.0-rc2 #5 SMP
> 
> Jun 24 09:19:20 jessie kernel: [ 5044.328145] usb 2-1.1: Product: USB Mouse
> Jun 24 09:19:20 jessie kernel: [ 5044.328464] usb 2-1.1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
> Jun 24 09:19:20 jessie kernel: [ 5044.328505] usb 2-1.1: Not enough bandwidth for new device state.
> Jun 24 09:19:20 jessie kernel: [ 5044.328517] usb 2-1.1: can't set config #1, error -28
> Jun 24 09:19:20 jessie kernel: [ 5044.400194] usb 2-1.2: new low-speed USB device number 14 using xhci_hcd
> 
> 
> But two points here are equal to the one in the bugzilla report. The USB Controller Chip is the same (Etron EJ168) and my mouse and keyboard are USB 1.1 devices (like the sound device).
> The difference is, here it works when I connect mouse and keyboard directly to the USB 3.0, but it fails when I add the USB 2.0 HUB (Mainboard USB 3.0-port -> USB 2.0 HUB -> mouse & keyboard).
> 
> Please find attached your requested debug output starting from the moment where I plugged the USB 2.0 Hub (with mouse and keyboard) into the USB 3.0 port.
> 
> If there is anything else I can contribute please feel free to ask me.
> 

The configure endpoint command that fails with bandwidth error looks fine,
At least nothing suspicious in the bandwidth related data (input context) sent with the command. 

This is a real bandwidth error, not like the Bugzilla bug that's actually a context error happening during bandwidth operations. 

Your keyboard has two endpoints, both want to send 8 bytes every 10ms (every 80th 125us microframe).
Mouse one endpoint sending 4 bytes every 10ms. 
The hubs themselves require some bandwith.

xhci uses only base 2 numbers for interval, so it gets rounded to every 8th ms (every 64th 125us microframe).
This rounding is according to xhci specification, so it should be ok.

The hub you use looks like a single TT hub, meaning it shares the bandwidth among all its ports,
Try a multi TT hub if you have access to one(each port gets its own bandwidth)

Does the mouse or keyboard work if connected alone to the the hub?
 
Can you show me the output of lsusb -t as well with everything connected.

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