From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAA3EC433B4 for ; Thu, 22 Apr 2021 05:49:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 873BC61450 for ; Thu, 22 Apr 2021 05:49:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232949AbhDVFuO (ORCPT ); Thu, 22 Apr 2021 01:50:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:53910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbhDVFuO (ORCPT ); Thu, 22 Apr 2021 01:50:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D3B036140F; Thu, 22 Apr 2021 05:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619070580; bh=E1WAA+xFrvMHQQSWNHFe3W3f+rcMAuCSq9fZVJbUWMw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wkAOfmLShZbTXi6JxDeROb1JxJ/oAmg+ApPEyXy84PDWGkYoG+T2e/5GxQaWu+qS3 rgt7iTzUMoeXxgOs/BNIDRtPEqJ4103n4MKHZDs4mhyUCWMp6EgPZm4PCOY72N/Rxd Auz1bEy/WSrfPzDdgg/G3XjnqXW1x5Hh1YFgGAQA= Date: Thu, 22 Apr 2021 07:49:38 +0200 From: Greg KH To: Roman Mamedov Cc: linux-usb@vger.kernel.org Subject: Re: Not enough bandwidth for new device state -- with Etron USB3 controller only Message-ID: References: <20210421223732.27080321@natsu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421223732.27080321@natsu> Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Wed, Apr 21, 2021 at 10:37:32PM +0500, Roman Mamedov wrote: > Hello, > > I have a mouse and keyboard plugged into a 4-port USB 2.0 hub, plugged into a > 10-meter extender (which seems to also appear as an USB 2.0 hub). > > When this combination is plugged into "Etron Technology, Inc. EJ168 USB 3.0 Host > Controller (rev 01)", it fails to work: > > [Wed Apr 21 21:48:03 2021] usb 2-2: new high-speed USB device number 2 using xhci_hcd > [Wed Apr 21 21:48:03 2021] usb 2-2: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11 > [Wed Apr 21 21:48:03 2021] usb 2-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0 > [Wed Apr 21 21:48:03 2021] usb 2-2: Product: USB 2.0 Hub > [Wed Apr 21 21:48:03 2021] hub 2-2:1.0: USB hub found > [Wed Apr 21 21:48:03 2021] hub 2-2:1.0: 4 ports detected > [Wed Apr 21 21:48:04 2021] usb 2-2.4: new high-speed USB device number 3 using xhci_hcd > [Wed Apr 21 21:48:04 2021] usb 2-2.4: New USB device found, idVendor=05e3, idProduct=0606, bcdDevice= 7.02 > [Wed Apr 21 21:48:04 2021] usb 2-2.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0 > [Wed Apr 21 21:48:04 2021] usb 2-2.4: Product: USB2.0 Hub > [Wed Apr 21 21:48:04 2021] hub 2-2.4:1.0: USB hub found > [Wed Apr 21 21:48:04 2021] hub 2-2.4:1.0: 4 ports detected > [Wed Apr 21 21:48:04 2021] usb 2-2.4.3: new low-speed USB device number 4 using xhci_hcd > [Wed Apr 21 21:48:04 2021] usb 2-2.4.3: New USB device found, idVendor=046e, idProduct=52c5, bcdDevice= 1.23 > [Wed Apr 21 21:48:04 2021] usb 2-2.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > [Wed Apr 21 21:48:04 2021] usb 2-2.4.3: Product: USB Multimedia Keyboard > [Wed Apr 21 21:48:04 2021] usb 2-2.4.3: Manufacturer: BTC > [Wed Apr 21 21:48:04 2021] usb 2-2.4.3: Not enough bandwidth for new device state. > [Wed Apr 21 21:48:04 2021] usb 2-2.4.3: can't set config #1, error -28 > [Wed Apr 21 21:48:04 2021] usb 2-2.4.4: new low-speed USB device number 5 using xhci_hcd > [Wed Apr 21 21:48:04 2021] usb 2-2.4.4: New USB device found, idVendor=0957, idProduct=0006, bcdDevice= 3.10 > [Wed Apr 21 21:48:04 2021] usb 2-2.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > [Wed Apr 21 21:48:04 2021] usb 2-2.4.4: Product: ADNS-3080 Mouse > [Wed Apr 21 21:48:04 2021] usb 2-2.4.4: Manufacturer: Agilent Mouse > [Wed Apr 21 21:48:04 2021] usb 2-2.4.4: Not enough bandwidth for new device state. > [Wed Apr 21 21:48:04 2021] usb 2-2.4.4: can't set config #1, error -28 > [Wed Apr 21 21:48:11 2021] usb 2-2: USB disconnect, device number 2 > [Wed Apr 21 21:48:11 2021] usb 2-2.4: USB disconnect, device number 3 > [Wed Apr 21 21:48:11 2021] usb 2-2.4.3: USB disconnect, device number 4 > [Wed Apr 21 21:48:11 2021] usb 2-2.4.4: USB disconnect, device number 5 > > But works just fine when plugged into the onboard "Advanced Micro Devices, > Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller": > > [Wed Apr 21 21:48:31 2021] usb 4-4: new high-speed USB device number 3 using ehci-pci > [Wed Apr 21 21:48:31 2021] usb 4-4: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11 > [Wed Apr 21 21:48:31 2021] usb 4-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0 > [Wed Apr 21 21:48:31 2021] usb 4-4: Product: USB 2.0 Hub > [Wed Apr 21 21:48:31 2021] hub 4-4:1.0: USB hub found > [Wed Apr 21 21:48:31 2021] hub 4-4:1.0: 4 ports detected > [Wed Apr 21 21:48:32 2021] usb 4-4.4: new high-speed USB device number 4 using ehci-pci > [Wed Apr 21 21:48:32 2021] usb 4-4.4: New USB device found, idVendor=05e3, idProduct=0606, bcdDevice= 7.02 > [Wed Apr 21 21:48:32 2021] usb 4-4.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0 > [Wed Apr 21 21:48:32 2021] usb 4-4.4: Product: USB2.0 Hub > [Wed Apr 21 21:48:32 2021] hub 4-4.4:1.0: USB hub found > [Wed Apr 21 21:48:32 2021] hub 4-4.4:1.0: 4 ports detected > [Wed Apr 21 21:48:32 2021] usb 4-4.4.3: new low-speed USB device number 5 using ehci-pci > [Wed Apr 21 21:48:32 2021] usb 4-4.4.3: New USB device found, idVendor=046e, idProduct=52c5, bcdDevice= 1.23 > [Wed Apr 21 21:48:32 2021] usb 4-4.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > [Wed Apr 21 21:48:32 2021] usb 4-4.4.3: Product: USB Multimedia Keyboard > [Wed Apr 21 21:48:32 2021] usb 4-4.4.3: Manufacturer: BTC > [Wed Apr 21 21:48:33 2021] input: BTC USB Multimedia Keyboard as /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4.4/4-4.4.3/4-4.4.3:1.0/0003:046E:52C5.0006/input/input33 > [Wed Apr 21 21:48:33 2021] hid-generic 0003:046E:52C5.0006: input,hidraw2: USB HID v1.10 Keyboard [BTC USB Multimedia Keyboard] on usb-0000:00:13.2-4.4.3/input0 > [Wed Apr 21 21:48:33 2021] input: BTC USB Multimedia Keyboard System Control as /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4.4/4-4.4.3/4-4.4.3:1.1/0003:046E:52C5.0007/input/input34 > [Wed Apr 21 21:48:33 2021] input: BTC USB Multimedia Keyboard Consumer Control as /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4.4/4-4.4.3/4-4.4.3:1.1/0003:046E:52C5.0007/input/input35 > [Wed Apr 21 21:48:33 2021] hid-generic 0003:046E:52C5.0007: input,hiddev0,hidraw3: USB HID v1.10 Device [BTC USB Multimedia Keyboard] on usb-0000:00:13.2-4.4.3/input1 > [Wed Apr 21 21:48:33 2021] usb 4-4.4.4: new low-speed USB device number 6 using ehci-pci > [Wed Apr 21 21:48:33 2021] usb 4-4.4.4: New USB device found, idVendor=0957, idProduct=0006, bcdDevice= 3.10 > [Wed Apr 21 21:48:33 2021] usb 4-4.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 > [Wed Apr 21 21:48:33 2021] usb 4-4.4.4: Product: ADNS-3080 Mouse > [Wed Apr 21 21:48:33 2021] usb 4-4.4.4: Manufacturer: Agilent Mouse > [Wed Apr 21 21:48:33 2021] input: Agilent Mouse ADNS-3080 Mouse as /devices/pci0000:00/0000:00:13.2/usb4/4-4/4-4.4/4-4.4.4/4-4.4.4:1.0/0003:0957:0006.0008/input/input37 > [Wed Apr 21 21:48:33 2021] hid-generic 0003:0957:0006.0008: input,hidraw4: USB HID v1.10 Mouse [Agilent Mouse ADNS-3080 Mouse] on usb-0000:00:13.2-4.4.4/input0 > > Any ideas? Is this a bug? Not a bug, this is how USB works. Your first hub really does not have enough bandwidth for that device. Well, we think it doesn't, the calculation for that is really really tricky and we error on the side of "let's not take the risk and just disable the device to be safe". Get a better hub :) thanks, greg k-h