lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <958c8848-945e-4fe0-9ebf-481155e11d73@linux.intel.com>
Date: Thu, 4 Dec 2025 17:35:14 +0200
From: Mathias Nyman <mathias.nyman@...ux.intel.com>
To: Alexander Wilhelm <alexander.wilhelm@...termo.com>,
 Mathias Nyman <mathias.nyman@...el.com>,
 Thinh Nguyen <Thinh.Nguyen@...opsys.com>,
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: usb: Error while assigning device slot ID

Hi

On 12/4/25 13:09, Alexander Wilhelm wrote:
> Hello USB developers,
> 
> I’m using an NXP LS1046A SoC with the integrated DWC3 USB controller in
> host mode. On Linux v5.5.167 my USB flash drive was detected and mountable.
> After upgrading to Linux v6.6.110 the USB flash drive is no longer
> recognized. If it is already plugged in during boot phase I get the
> following errors:
> 
>      xhci-hcd xhci-hcd.2.auto: Error while assigning device slot ID: Command Aborted
>      xhci-hcd xhci-hcd.2.auto: Max number of devices this xHCI host supports is 127
> 
> And here is the kernel debug output:
> 
>      user@...t:~# cat /sys/kernel/debug/usb/xhci/xhci-hcd.3.auto/ports/port01/portsc
>      Powered Connected Disabled Link:Polling PortSpeed:1 Change: Wake: WDE WOE
> 
> I’ve also found that the function `xhci_alloc_dev` shows the error message.
> I printed the `command` member variables and see that the `status` is
> `COMP_COMMAND_ABORTED` and `slot_id` remains `0`. I have already seen
> similar error patterns in some forums, but the suggested solutions didn’t
> help me. Between these releases Kconfig has changed significantly; I may be
> missing a config option, but I haven’t found one. Does anyone else see this
> error pattern? Or maybe someone has a hint for me on how to proceed?

Looks like "enable slot" commands times out,
This is a simple internal xHCI command which shouldn't timeout

Could you enable xhci and usb core dynamic debug and share full dmesg after issue is seen.

mount -t debugfs none /sys/kernel/debug
echo 'module xhci_hcd =p' >/sys/kernel/debug/dynamic_debug/control
echo 'module usbcore =p' >/sys/kernel/debug/dynamic_debug/control
< Reproduce issue >
Send output of dmesg

Reasons for command not completing could be xHC being stopped, not processing commands due
to being suspended, or something preventing xchi interrupt, and driver misses the
command completion event

Is runtime PM enabled fo xHCI in your DWC3 setup?
It was enabled by default in 6.1 kernels for PCI based xhci 1.2 controllers.

Does your flash drive enumerate if you first force roothubs on, disabling runtime pm?
echo on > /sys/bus/usb/devices/usb*/power/control

Thanks
Mathias



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ