usb errors on RELENG_8

Mike Tancsa mike at sentex.net
Tue May 10 20:07:59 UTC 2011


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: <Unknown> 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: <Unknown> at usbus1 (disconnected)


but, if we plug it in, then reboot the box, it seems to work.

0[upsmon1]# usbconfig
ugen0.1: <OHCI root HUB AMD> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE
ugen1.1: <EHCI root HUB AMD> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps)
pwr=SAVE
ugen1.2: <USB2.0 Hub vendor 0x05e3> at usbus1, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE
ugen1.3: <Back-UPS RS 1500 FW8.g8 .D USB FWg8 American Power Conversion>
at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.4: <Back-UPS RS 1500 FW8.g8 .D USB FWg8 American Power Conversion>
at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.5: <Back-UPS RS 1500 FW8.g9 .D USB FWg9 American Power Conversion>
at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.6: <product 0xf103 vendor 0x2001> at usbus1, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=SAVE
ugen1.7: <Back-UPS RS 1500 FW8.g9a.D USB FWg9a American Power
Conversion> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.8: <Back-UPS RS 1500 FW8.g8 .D USB FWg8 American Power Conversion>
at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.9: <Back-UPS RS 1500 FW8.g9a.D USB FWg9a American Power
Conversion> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.10: <Back-UPS RS 1500 FW8.g9a.D USB FWg9a American Power
Conversion> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.11: <Back-UPS RS 1500 FW8.g7 .D USB FWg7 American Power
Conversion> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.12: <Back-UPS RS 1500 FW8.g8 .D USB FWg8 American Power
Conversion> at usbus1, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON
ugen1.13: <Back-UPS RS 1500 FW8.g8 .D USB FWg8 American Power
Conversion> 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: <vendor 0x05e3> at usbus1
uhub2: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/7.02, addr 2> on
usbus1
uhub2: 4 ports with 4 removable, self powered
Root mount waiting for: usbus1
ugen1.3: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.4: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.5: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.6: <vendor 0x2001> at usbus1
uhub3: <vendor 0x2001 product 0xf103, class 9/0, rev 2.00/1.00, addr 6>
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: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.8: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.9: <American Power Conversion> at usbus1
ugen1.10: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.11: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.12: <American Power Conversion> at usbus1
Root mount waiting for: usbus1
ugen1.13: <American Power Conversion> 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: <American Power Conversion> 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: <Unknown> 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: <Unknown> at usbus1 (disconnected)
uhub_reattach_port: could not allocate new device
ugen1.7: <American Power Conversion> 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: <American Power Conversion> 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 at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-usb mailing list