From owner-freebsd-usb@FreeBSD.ORG Tue May 10 20:07:59 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA1FB1065673 for ; Tue, 10 May 2011 20:07:59 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 540D68FC15 for ; Tue, 10 May 2011 20:07:59 +0000 (UTC) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p4AK7upq038185 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 10 May 2011 16:07:56 -0400 (EDT) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca ([IPv6:2607:f3e0:0:3::18]) by smtp2.sentex.ca (8.14.4/8.14.4) with ESMTP id p4AK7uZ3018224 for ; Tue, 10 May 2011 16:07:56 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by pyroxene.sentex.ca (8.14.4/8.14.3) with ESMTP id p4AK7tP2028329 for ; Tue, 10 May 2011 16:07:55 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4DC99B0A.5090301@sentex.net> Date: Tue, 10 May 2011 16:07:38 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <4DC9689F.60506@sentex.net> In-Reply-To: <4DC9689F.60506@sentex.net> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.1 at smtp2.sentex.ca X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.67 on 64.7.153.18 Subject: Re: usb errors on RELENG_8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2011 20:07:59 -0000 On 5/10/2011 12:32 PM, Mike Tancsa wrote: > I am trying to monitor a boat load of UPSes off a soekris 5501 (same error on an Alix box) and a pair of USB hubs. It seems I can only have one USB hub plug in at a time. If I plug just one in, all is ok. But if two are plugged in, I get a stream of errors like this. Is this some sort of device or driver limitation ? > > ugen1.11: at usbus1 (disconnected) Some other odd things. If we plug in a new UPS to the hub, it fails usbd_setup_device_desc: getting device descriptor at addr 13 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=13, set address failed! (USB_ERR_TIMEOUT, ignored) usbd_setup_device_desc: getting device descriptor at addr 13 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=13, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 13 failed, USB_ERR_STALLED ugen1.13: at usbus1 (disconnected) but, if we plug it in, then reboot the box, it seems to work. 0[upsmon1]# usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.3: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.4: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.5: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.6: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.7: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.8: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.9: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.10: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.11: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.12: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen1.13: at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON 0[upsmon1]# Also, I noticed at bootup time, I get the following error consistently uhub1: 4 ports with 4 removable, self powered Root mount waiting for: usbus1 ugen1.2: at usbus1 uhub2: on usbus1 uhub2: 4 ports with 4 removable, self powered Root mount waiting for: usbus1 ugen1.3: at usbus1 Root mount waiting for: usbus1 ugen1.4: at usbus1 Root mount waiting for: usbus1 ugen1.5: at usbus1 Root mount waiting for: usbus1 ugen1.6: at usbus1 uhub3: on usbus1 Root mount waiting for: usbus1 uhub3: 7 ports with 7 removable, self powered Root mount waiting for: usbus1 Root mount waiting for: usbus1 usb_alloc_device: set address 7 failed (USB_ERR_TIMEOUT, ignored) usbd_setup_device_desc: getting device descriptor at addr 7 failed, USB_ERR_STALLED Root mount waiting for: usbus1 usbd_req_re_enumerate: addr=7, set address failed! (USB_ERR_TIMEOUT, ignored) usbd_setup_device_desc: getting device descriptor at addr 7 failed, USB_ERR_STALLED Root mount waiting for: usbus1 ugen1.7: at usbus1 Root mount waiting for: usbus1 ugen1.8: at usbus1 Root mount waiting for: usbus1 ugen1.9: at usbus1 ugen1.10: at usbus1 Root mount waiting for: usbus1 ugen1.11: at usbus1 Root mount waiting for: usbus1 ugen1.12: at usbus1 Root mount waiting for: usbus1 ugen1.13: at usbus1 Trying to mount root from ufs:/dev/ad0s1a The error seems to follow the first port of the second HUB that is plugged in. Also, unplugging and replugging a device gives ugen1.3: at usbus1 (disconnected) usb_alloc_device: set address 3 failed (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED ugen1.3: at usbus1 (disconnected) uhub_reattach_port: could not allocate new device uhub_reattach_port: giving up port reset - device vanished usb_alloc_device: set address 3 failed (USB_ERR_TIMEOUT, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED ugen1.3: at usbus1 (disconnected) uhub_reattach_port: could not allocate new device ugen1.7: at usbus1 (disconnected) usb_alloc_device: set address 3 failed (USB_ERR_TIMEOUT, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_TIMEOUT, ignored) usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED ugen1.3: at usbus1 0[upsmon1]# sysctl -a dev.usbus dev.usbus.0.%desc: OHCI (generic) USB controller dev.usbus.0.%driver: usbus dev.usbus.0.%parent: ohci0 dev.usbus.1.%desc: AMD CS5536 (Geode) USB 2.0 controller dev.usbus.1.%driver: usbus dev.usbus.1.%parent: ehci0 0[upsmon1]# sysctl -a hw.usb hw.usb.ehci.lostintrbug: 0 hw.usb.ehci.iaadbug: 0 hw.usb.ehci.no_hs: 0 hw.usb.ehci.debug: 0 hw.usb.ohci.debug: 0 hw.usb.uhci.loop: 0 hw.usb.uhci.debug: 0 hw.usb.no_boot_wait: 0 hw.usb.ctrl.debug: 0 hw.usb.umass.debug: 0 hw.usb.debug: 0 hw.usb.dev.debug: 0 hw.usb.usb_lang_mask: 255 hw.usb.usb_lang_id: 9 hw.usb.template: 0 hw.usb.ugen.debug: 0 hw.usb.power_timeout: 30 hw.usb.uhub.debug: 0 hw.usb.no_pf: 0 hw.usb.proc.debug: 0 hw.usb.pr_recovery_delay: 250 hw.usb.pr_poll_delay: 50 hw.usb.ubsa.debug: 0 hw.usb.uftdi.debug: 0 hw.usb.uplcom.debug: 0 hw.usb.uslcom.debug: 0 hw.usb.uvisor.debug: 0 hw.usb.uvscom.debug: 0 hw.usb.ucom.cons_baud: 9600 hw.usb.ucom.cons_subunit: 0 hw.usb.ucom.cons_unit: -1 hw.usb.ucom.debug: 0 hw.usb.uhid.debug: 0 hw.usb.umodem.debug: 0 hw.usb.u3g.debug: 0 0[upsmon1]# ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/