USB device is not detected during boot, again

Bug #1953223 reported by Jarkko Toivonen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have an ethernet adapter (ASIX Electronics Corp. AX88179 Gigabit Ethernet) attached to a USB-C port of my laptop. After update to kernel 5.4.0-90-generic it stopped working again. Same problem with 5.4.0-91-generic. Detaching and reattaching the adapter doesn't help, but after suspend and resume it starts working again, until the next boot. I had the same problem earlier and it was fixed here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1939638 , but the bug got reintroduced in kernel 5.4.0-90-generic most likely due to this patch:

* Fix cold plugged USB device on certain PCIe USB cards (LP: #1945211)
 - Revert "UBUNTU: SAUCE: Revert "usb: core: reduce power-on-good delay time of
      root hub""

I'm running Ubuntu 20.04. USB2 ports work without problems.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-91-generic 5.4.0-91.102
ProcVersionSignature: Ubuntu 5.4.0-91.102-generic 5.4.151
Uname: Linux 5.4.0-91-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: jttoivon 2745 F.... pipewire-media-
 /dev/snd/controlC0: jttoivon 2745 F.... pipewire-media-
 /dev/snd/seq: jttoivon 2744 F.... pipewire
CasperMD5CheckResult: skip
CurrentDesktop: X-Cinnamon
Date: Sat Dec 4 12:46:18 2021
InstallationDate: Installed on 2020-01-23 (680 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: HP HP ZBook Studio G5
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-91-generic root=UUID=c6b19f0f-68ff-4d8c-985a-c3ed88345389 ro quiet splash resume=UUID=f25913ea-6478-45dc-8f64-ea5d721a8f25 vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-91-generic N/A
 linux-backports-modules-5.4.0-91-generic N/A
 linux-firmware 1.187.20
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/22/2021
dmi.bios.vendor: HP
dmi.bios.version: Q71 Ver. 01.16.00
dmi.board.name: 8427
dmi.board.vendor: HP
dmi.board.version: KBC Version 16.4C.00
dmi.chassis.asset.tag: 5CD9495R4G
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.modalias: dmi:bvnHP:bvrQ71Ver.01.16.00:bd04/22/2021:svnHP:pnHPZBookStudioG5:pvr:rvnHP:rn8427:rvrKBCVersion16.4C.00:cvnHP:ct10:cvr:
dmi.product.family: 103C_5336AN HP ZBook Studio
dmi.product.name: HP ZBook Studio G5
dmi.product.sku: 2ZC51EA#AK8
dmi.sys.vendor: HP

Revision history for this message
Jarkko Toivonen (jttoivon) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.16-rc5/amd64/

Headers are not needed.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

If mainline kernel doesn't work, I am working on a similar case that may help your case too.

Revision history for this message
Jarkko Toivonen (jttoivon) wrote :

I downloaded the following packages:
linux-image-unsigned-5.16.0-051600rc5-generic_5.16.0-051600rc5.202112121931_amd64.deb
linux-modules-5.16.0-051600rc5-generic_5.16.0-051600rc5.202112121931_amd64.deb

And installed them with sudo dpkg -i linux-image-unsigned-5.16.0-051600rc5-generic_5.16.0-051600rc5.202112121931_amd64.deb linux-modules-5.16.0-051600rc5-generic_5.16.0-051600rc5.202112121931_amd64.deb

While trying to boot it, it stopped after "Loading initial ramdisk...". It didn't respond to keys in any way. I read that proprietary drivers (nvidia) could cause problems, so I selected Nouveau instead of nvidia from "Software & updates" -> "Additional drivers". This removed the nvidia-driver-460 package. Then I reinstalled the mainline kernel. But still it wouldn't go any further in the boot. (Kernels 5.4.0-89 and 5.11.0-36 still booted.)

Am I doing something wrong or is the problem in the kernel?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Try kernel parameter "nomodeset".

Revision history for this message
Jarkko Toivonen (jttoivon) wrote :

That did not help either. I also tried rc6, but the results was the same. No output even when quiet and splash kernel parameters were removed.

Revision history for this message
Jarkko Toivonen (jttoivon) wrote :

I tried rc7, but it doesn't boot either.

Just to make sure I'm not doing anything wrong, I installed the mainline kernel 5.15.11. It booted fine, even without nomodeset. And my USB net adapter seems to be working. At least in the two reboots that I tried. The 5.15.11 version seems to include your commit "xhci: Remove CONFIG_USB_DEFAULT_PERSIST to prevent xHCI from
runtime suspending", and the (previously) problematic part in drivers/usb/core/hub.h:
 if (!hub->hdev->parent) /* root hub */
  return delay;
 else /* Wait at least 100 msec for power to become stable */
  return max(delay, 100U);

So, this could fix the problem, but I guess I have to wait until the Ubuntu version of the 5.4.x kernel.

Revision history for this message
Jarkko Toivonen (jttoivon) wrote :

The 5.16-rc7 did boot when I gave the acpi=off parameter. The nomodeset parameter was not required. The network stick worked. But due to acpi being off, only one cpu was detected.

Revision history for this message
Jarkko Toivonen (jttoivon) wrote :

In the kernel 5.4.0-96 it worked randomly. I noticed that instead of the suspend/resume cycle, it was enough to run 'sudo lsusb -v'. After this the USB net stick was detected. Note that both 'sudo' and '-v' were required to have an effect.

Version 5.4.0-97 (still in proposed state) has a proper fix:
Focal update: v5.4.160 upstream stable release (LP: #1953387)
xhci: Fix USB 3.1 enumeration issues by increasing roothub power-on-good delay

See also https://patchwork.kernel.org/project<email address hidden>/
Looks like it took two months for this patch to come from mainline kernel to Ubuntu kernel.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.