Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jun 2020 16:03:50 -0700
From:      bob prohaska <fbsd@www.zefox.net>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        freebsd-arm@freebsd.org, bob prohaska <fbsd@www.zefox.net>
Subject:   Re: Confusing USB device conflict
Message-ID:  <20200608230350.GA44587@www.zefox.net>
In-Reply-To: <DC8818E7-270E-4A3B-882F-8A60A763760A@yahoo.com>
References:  <20200606223853.GA37281@www.zefox.net> <DC8818E7-270E-4A3B-882F-8A60A763760A@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 06, 2020 at 06:22:03PM -0700, Mark Millard wrote:
> 
> 
> 
> Does this happen with FreeBSD head? It looked like there
> was a late 2019 check-in that was related to a context
> that involved the above types of messages on a RPi*. If
> you are lucky, may be there is something someone could
> MFC back into 12 that would help. (I do not know the
> details or if what I saw really would help if head
> works okay.)
> 
[In sum, the new hub can't be hot-swapped. I thought that would
be possible, but if not there's nothing wrong]

Now using a Pi3:

Head as of r361820 behaves differently than the Pi2 running 12.1, 
but it does not seem better: Plugging the new hub and disk into 
a running machine produces:

ugen0.6: <GenesysLogic USB2.0 Hub> at usbus0
uhub2 on uhub1
uhub2: <GenesysLogic USB2.0 Hub, class 9/0, rev 2.00/92.24, addr 6> on usbus0
uhub2: MTT enabled
uhub2: 4 ports with 4 removable, self powered
usb_alloc_device: set address 8 failed (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_IOERROR, ignored)
smsc0: warning: bulk read error, USB_ERR_IOERROR
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_IOERROR, ignored)
smsc0: warning: Failed to read register 0x114
smsc0: warning: MII is busy
smsc0: warning: Failed to read register 0x114
smsc0: warning: MII is busy
smsc0: warning: Failed to read register 0x114
smsc0: warning: MII is busy
smsc0: warning: Failed to read register 0x114
smsc0: warning: MII is busy
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_TIMEOUT
smsc0: warning: Failed to read register 0x114
smsc0: warning: MII is busy

The smsc0 complaints continued, so I unplugged the hub and disk .
To my surprise the error messages didn't stop, but they did change:

usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT
ugen0.2: <Unknown > at usbus0 (disconnected)

This looked like an endless loop, so I rebooted.

Next, I tried the new 1TB disk with the old hub. worked fine.

Then I tried the new hub with the old 80GB disk. The console reported:
uhub2: <GenesysLogic USB2.0 Hub, class 9/0, rev 2.00/92.24, addr 7> on usbus0
uhub2: MTT enabled
uhub2: 4 ports with 4 removable, self powered
usb_alloc_device: set address 8 failed (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_IOERROR
usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored)
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED
usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored)
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED
usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored)
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED
usbd_req_re_enumerate: addr=8, set address failed! (USB_ERR_STALLED, ignored)
usbd_setup_device_desc: getting device descriptor at addr 8 failed, USB_ERR_STALLED
ugen0.8: <Unknown > at usbus0 (disconnected)
uhub_reattach_port: could not allocate new device
uhub_explore: illegal enable change, port 1

The error stream stopped, the disk didn't show up in /dev.
Usbconfig reports 
ugen0.7: <GenesysLogic USB2.0 Hub> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
Not sure how that gybes with address 8 in the console messages.

Finally, I tried leaving the new hub connected with the old disk
and rebooting. Came up just fine. Unplugging the old disk and
plugging the new disk in its place also works fine.

Likewise, with 12.1 the Pi3 works correctly provided the hub
is connected before booting. Didn't try the other permutations.

So, if hot-swapping the hub isn't in the cards, things seem
to work. 

The messages from smsc0 are still puzzling. I gather
it's a network device, which I don't have.  

Thanks for reading!

bob prohaska





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200608230350.GA44587>