Activity log for bug #1939638

Date Who What changed Old value New value Message
2021-08-12 03:21:36 Chris Chiu bug added bug
2021-08-12 03:22:06 Chris Chiu attachment added lsusb-v.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1939638/+attachment/5517417/+files/lsusb-v.txt
2021-08-12 07:51:03 Anthony Wong summary USB device is not detected during boot [regression] USB device is not detected during boot
2021-08-12 10:39:02 Chris Chiu bug added subscriber Canonical Hardware Enablement
2021-08-12 10:39:06 Chris Chiu tags austin oem-priority originate-from-1939113
2021-08-12 10:39:23 Chris Chiu nominated for series Ubuntu Hirsute
2021-08-12 10:39:23 Chris Chiu bug task added linux (Ubuntu Hirsute)
2021-08-12 10:39:23 Chris Chiu nominated for series Ubuntu Focal
2021-08-12 10:39:23 Chris Chiu bug task added linux (Ubuntu Focal)
2021-08-12 10:39:40 Chris Chiu linux (Ubuntu Focal): status New In Progress
2021-08-12 10:39:45 Chris Chiu linux (Ubuntu Hirsute): status New In Progress
2021-08-12 10:39:56 Chris Chiu linux (Ubuntu): importance Undecided Critical
2021-08-12 10:50:29 Chris Chiu description [Summary] The USB devices (keyboard, storage...) are failed to be detected during boot after upgrade to UBUNTU focal kernel 5.4.0-78 and hirsute 5.11.0-26. However, they will be detected and working ok after re-plugging. The kernel output shows as down below during boot [ 39.350435] hub 1-0:1.0: USB hub found [ 39.398835] hub 1-0:1.0: 12 ports detected [ 39.622744] usb usb1-port3: couldn't allocate usb_device And when I plug out then plug in the same device, it shows [57210.794140] usb 1-3: new low-speed USB device number 4 using xhci_hcd [57210.951289] usb 1-3: New USB device found, idVendor=17ef, idProduct=6099, bcdDevice= 1.14 [57210.951293] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 After doing kernel bisecting, we found the upstream commit https://github.com/torvalds/linux/commit/90d28fb53d4a51299ff324dede015d5cb11b88a2 makes the difference. It indicates that the delay for the root hub from power_on to power_good is not long enough. There was no problem if the delay is 100 ms. From the Hub Descriptor of the root hub, the value is 10 * 2 milliseconds. And the XHCI spec also says in section 5.4.8 """ The host is required to have power stable to the port within 20 milliseconds of the '0' to '1' transition of PP. If PPC = '1', software is responsible for waiting 20ms. """ The commit seems to follow the SPEC but could cause problems on some hubs. [Reproduce Steps] 1. Plug the USB device to the physical port #1 and #4 which belongs to high-speed hub. 2. Power on the machine. 3. Check if the USB device can work or not after boot. [Results] Expected: All usb devices connect to the hub should work OK. Actual: USB devices connects to high-speed hub can not be probed. [Additional Information] Kernel Version: focal 5.4.0-78 and hirsute 5.11.0-26 [Upstream bug] https://bugzilla.kernel.org/show_bug.cgi?id=214021 [SRU Justification] [Impact] The USB devices (keyboard, storage...) are failed to be detected when connecting to the problematic root hubs which need longer PowerOn-to-PowerGood delay than it claims in the hub descriptor. It's caused by the upstream fix 90d28fb53d4a ("usb: core: reduce power-on-good delay time of root hub"). [Fix] Reverting the upstream fix until a formal fix been placed. [Test Case] 1. Plug the USB device to the ports of problematic root hub. 2. Power on the machine. 3. Check if the USB device can work or not after boot. [Regression Potential] Low. The longer delay is proven safe in old kernels. ========== Original Bug Description ========== [Summary] The USB devices (keyboard, storage...) are failed to be detected during boot after upgrade to UBUNTU focal kernel 5.4.0-78 and hirsute 5.11.0-26. However, they will be detected and working ok after re-plugging. The kernel output shows as down below during boot [ 39.350435] hub 1-0:1.0: USB hub found [ 39.398835] hub 1-0:1.0: 12 ports detected [ 39.622744] usb usb1-port3: couldn't allocate usb_device And when I plug out then plug in the same device, it shows [57210.794140] usb 1-3: new low-speed USB device number 4 using xhci_hcd [57210.951289] usb 1-3: New USB device found, idVendor=17ef, idProduct=6099, bcdDevice= 1.14 [57210.951293] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 After doing kernel bisecting, we found the upstream commit https://github.com/torvalds/linux/commit/90d28fb53d4a51299ff324dede015d5cb11b88a2 makes the difference. It indicates that the delay for the root hub from power_on to power_good is not long enough. There was no problem if the delay is 100 ms. From the Hub Descriptor of the root hub, the value is 10 * 2 milliseconds. And the XHCI spec also says in section 5.4.8 """ The host is required to have power stable to the port within 20 milliseconds of the '0' to '1' transition of PP. If PPC = '1', software is responsible for waiting 20ms. """ The commit seems to follow the SPEC but could cause problems on some hubs. [Reproduce Steps] 1. Plug the USB device to the physical port #1 and #4 which belongs to high-speed hub. 2. Power on the machine. 3. Check if the USB device can work or not after boot. [Results] Expected:   All usb devices connect to the hub should work OK. Actual:   USB devices connects to high-speed hub can not be probed. [Additional Information] Kernel Version: focal 5.4.0-78 and hirsute 5.11.0-26 [Upstream bug] https://bugzilla.kernel.org/show_bug.cgi?id=214021
2021-08-13 00:51:07 Kelsey Steele linux (Ubuntu Focal): status In Progress Fix Committed
2021-08-13 00:51:10 Kelsey Steele linux (Ubuntu Hirsute): status In Progress Fix Committed
2021-08-13 14:31:08 Anthony Wong bug task added linux-intel (Ubuntu)
2021-08-13 14:31:18 Anthony Wong linux-intel (Ubuntu Hirsute): status New Invalid
2021-08-13 14:31:28 Anthony Wong linux-intel (Ubuntu Focal): assignee Jesse Sung (wenchien)
2021-08-17 14:42:22 Ubuntu Kernel Bot tags austin oem-priority originate-from-1939113 austin oem-priority originate-from-1939113 verification-needed-hirsute
2021-08-18 07:00:14 Ubuntu Kernel Bot linux (Ubuntu): status New Incomplete
2021-08-18 09:15:13 Chris Chiu tags austin oem-priority originate-from-1939113 verification-needed-hirsute austin oem-priority originate-from-1939113 verification-done-hirsute
2021-08-20 09:42:18 Ubuntu Kernel Bot tags austin oem-priority originate-from-1939113 verification-done-hirsute austin oem-priority originate-from-1939113 verification-done-hirsute verification-needed-focal
2021-08-20 10:35:10 Chris Chiu tags austin oem-priority originate-from-1939113 verification-done-hirsute verification-needed-focal austin oem-priority originate-from-1939113 verification-done-focal verification-done-hirsute
2021-09-05 11:41:40 Launchpad Janitor linux-intel (Ubuntu): status New Confirmed
2021-09-05 11:41:40 Launchpad Janitor linux-intel (Ubuntu Focal): status New Confirmed
2021-09-05 11:43:00 Tilman Schmidt bug added subscriber Tilman Schmidt
2021-09-07 13:48:28 Launchpad Janitor linux (Ubuntu Focal): status Fix Committed Fix Released
2021-09-07 13:48:28 Launchpad Janitor cve linked 2021-3653
2021-09-07 13:48:28 Launchpad Janitor cve linked 2021-3656
2021-09-07 13:53:28 Launchpad Janitor linux (Ubuntu Hirsute): status Fix Committed Fix Released
2021-09-07 13:53:28 Launchpad Janitor cve linked 2020-26541
2021-09-15 19:08:57 Launchpad Janitor linux (Ubuntu): status Incomplete Fix Released
2021-11-09 08:49:18 Anthony Wong bug task added linux-intel-5.13 (Ubuntu)
2021-11-09 08:50:16 Anthony Wong linux-intel-5.13 (Ubuntu Hirsute): status New Invalid
2021-11-09 08:50:50 Anthony Wong linux-intel-5.13 (Ubuntu Focal): assignee Jesse Sung (wenchien)
2021-11-09 08:57:51 Anthony Wong linux-intel-5.13 (Ubuntu Focal): status New Fix Released
2021-11-09 08:58:04 Anthony Wong linux-intel-5.13 (Ubuntu): status New Fix Released
2021-11-16 18:09:21 Jarkko Toivonen bug added subscriber Jarkko Toivonen
2022-03-25 15:13:53 Dries Oeyen bug added subscriber Dries Oeyen
2022-04-01 09:31:52 Tilman Schmidt attachment added dmesg output https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1939638/+attachment/5575563/+files/dmesg.log
2022-04-02 16:42:43 Dries Oeyen attachment added dmesg output https://bugs.launchpad.net/hwe-next/+bug/1939638/+attachment/5576184/+files/dmesg.log
2022-04-04 01:08:22 Luke Nowakowski-Krijger bug watch added https://bugzilla.kernel.org/show_bug.cgi?id=214021
2022-09-02 12:55:54 Timo Aaltonen hwe-next: importance Undecided Low
2022-09-05 10:57:04 Timo Aaltonen linux-intel (Ubuntu): status Confirmed Invalid
2022-09-05 10:57:12 Timo Aaltonen hwe-next: status New Fix Released