On Tuesday 10 May 2011 22:07:38 Mike Tancsa wrote:
> 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
> 

Try to send this USB control request to the HUB and then re-plug the device. 
Does it help?

usbconfig -d X.Y do_request 0x23 0x09 0x0000 0x0001 0

--HPS
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to