[Bug 265204] USB messages reporting failure to set address, eventually disabling a port, which nevertheless works

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 13 Jul 2022 21:52:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265204

            Bug ID: 265204
           Summary: USB messages reporting failure to set address,
                    eventually disabling a port, which nevertheless works
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: usb
          Assignee: usb@FreeBSD.org
          Reporter: mefistofelez@hotmail.com

Fresh install of 13.1-Release, the following messages appear upon kernel being
loaded (without any USB devices attached to any port on the motherboard):

Code:
usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_IOERROR
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_IOERROR

Setting hw.usb.debug=-1 in the /boot/loader.conf per recommendation in the Bug
262882 stops the above messages, but new messages:

Code:
ugen1.2: <Unknown> at usbus1 (disconnected)
uhub_reattach_port: could not allocate new device

appear, with a frequency of about 2Hz, eventually (about 10-20 min) ending
with:

Code:
uhub_reattach_port: port 3 reset failed, error=USB_ERR_TIMEOUT
uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 3

System unresponsive until ENTER on PS/2 keyboard is pressed, then it returns to
prompt, without any further messages.

Problem was also reproduced on 13.0-RELEASE, and is reproducible on every
reboot.

Based on the last two messages, the problem could be attributed to the
hardware, except: (i)  both FreeBSD RELEASEs were installed from all (external)
USB ports on the motherboard, i.e, including the port identified as no 3 in the
motherboard's documentation, (ii) USB flash drive is recognized by the
currently installed 13.1_RELEASE when inserted in the alleged port 3,
supposedly disabled, and (iii) other OSs (Windows 7 and 10) do not exhibit the
problem, i.e., no messages, and all USB ports functioning.

-- 
You are receiving this mail because:
You are the assignee for the bug.