Bug 265204

Summary: USB messages reporting failure to set address, eventually disabling a port, which nevertheless works
Product: Base System Reporter: Pavel Kalousek <mefistofelez>
Component: usbAssignee: freebsd-usb (Nobody) <usb>
Status: New ---    
Severity: Affects Only Me CC: grahamperrin, hselasky
Priority: ---    
Version: 13.1-RELEASE   
Hardware: amd64   
OS: Any   

Description Pavel Kalousek 2022-07-13 21:52:02 UTC
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.
Comment 1 Hans Petter Selasky freebsd_committer freebsd_triage 2022-07-14 10:37:10 UTC
Have you tried a 13-stable kernel ?
Comment 2 Pavel Kalousek 2022-07-19 01:19:03 UTC
(In reply to Hans Petter Selasky from comment #1)
Hi Petter,

no, as described I tried 13.0 and 13.1 releases.

Kindest regards,

M
Comment 3 Pavel Kalousek 2022-07-19 17:13:55 UTC
(In reply to Hans Petter Selasky from comment #1)
Hi Hans Petter,

I could not find 13.0-STABLE, but 13.1-Stable exhibits the same behavior.

Kindest regards,

M
Comment 4 Hans Petter Selasky freebsd_committer freebsd_triage 2022-07-19 17:27:42 UTC
There is only 13-stable. Did you build from sources?

--HPS
Comment 5 Pavel Kalousek 2022-07-22 23:26:39 UTC
(In reply to Hans Petter Selasky from comment #4)

Yes, I discovered it. No, I just used the downloaded version.

As I wrote, I had difficulty to enter commands as the remaining messages scroll to fast and obliterate what I type.

M
Comment 6 Pavel Kalousek 2022-07-30 15:45:26 UTC
Hi Hans Petter,

as to your question, yes, my BIOS is up-to-date.

On a different note, I installed a different UNIX-like OS - OmniOS. I had no warning or error messages during the installation, but upon boot, i.e., just before login prompt, the following message is printed:

WARNING: /pci@00.0/pci1043.8389@12.1 (ohci1): Connecting device on port 3 failed.

Since the identified port (3) is the same as the one reported by FreeBSD, it might, after all be a hardware problem, despite the fact that other OSs do not report any problem and all USB devices I tried, i.e., flash drives, mouse, CD-ROM, keyboard, and the like work on all the ports.

I still have the drive with FreeBSD install on it if you want to continue, but if you concur that it is a hardware issue, please feel free to close the ticket.

Kindest regards,

M