The keyboard does not have responeded when boot system into Ubuntu 18.04.4 with HWE(Legacy Mode) on Quanta server

Bug #1869138 reported by Zhanglei Mao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-hwe (Ubuntu)
New
Undecided
Unassigned

Bug Description

In Quanta server testing for 18.04.3 hwe-kernel 18.04.4 hwe-kernel and 20.04 daily build, it seems usb keyboard would:
1.Same OS would lost keybord and record usb usbx-portx: couldn't allocate usb_device log.
2.It is easy to reproduce the issue if add "open initcall debug" in grub.cfg.

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

kernel log from testing

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

Also, it was said that this issues didn't found on rhel.

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :
Download full text (3.6 KiB)

From the kernel log, beside below errors, there are no errors for usb or keryboard, it also show correctly dectected keyboard for every reboot.

$ grep -i error kern.log | tail -n5
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 4.321273] ERST: Error Record Serialization Table (ERST) support is initialized.
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 21.017745] RAS: Correctable Errors collector initialized.
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 28.579403] calling init_error_injection+0x0/0x6f @ 1
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 28.639458] initcall init_error_injection+0x0/0x6f returned 0 after 160 usecs
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 61.697880] EXT4-fs (nvme0n1p1): re-mounted. Opts: errors=remount-ro

$ grep -i keybaord kernel.log|tail -n15
 Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 14.154902] usb 1-2: Product: USB Multimedia Keyboard
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 36.585889] input: Lite-On Technology Corp. USB Multimedia Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:04CA:0027.0001/input/input1
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 36.642395] hid-generic 0003:04CA:0027.0001: input,hidraw0: USB HID v1.10 Keyboard [Lite-On Technology Corp. USB Multimedia Keyboard] on usb-0000:00:14.0-2/input0
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 36.642705] input: Lite-On Technology Corp. USB Multimedia Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:04CA:0027.0002/input/input2
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 36.702392] input: Lite-On Technology Corp. USB Multimedia Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:04CA:0027.0002/input/input3
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 36.702495] input: Lite-On Technology Corp. USB Multimedia Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:04CA:0027.0002/input/input4
Feb 26 10:04:45 user-QuantaGrid-D52PL-4U kernel: [ 36.702653] hid-generic 0003:04CA:0027.0002: input,hiddev0,hidraw1: USB HID v1.10 Device [Lite-On Technology Corp. USB Multimedia Keyboard] on usb-0000:00:14.0-2/input1
Feb 26 10:05:08 user-QuantaGrid-D52PL-4U kernel: [ 88.768902] usb 1-1: Product: Logitech USB Keyboard
Feb 26 10:05:08 user-QuantaGrid-D52PL-4U kernel: [ 88.773167] input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C315.0003/input/input5
Feb 26 10:05:08 user-QuantaGrid-D52PL-4U kernel: [ 88.830768] hid-generic 0003:046D:C315.0003: input,hidraw0: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:14.0-1/input0
Feb 26 10:06:26 user-QuantaGrid-D52PL-4U kernel: [ 167.205004] usb 1-2: Product: Logitech USB Keyboard
Feb 26 10:06:26 user-QuantaGrid-D52PL-4U kernel: [ 167.209006] input: Logitech Logitech USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.0/0003:046D:C315.0005/input/input7
Feb 26 10:06:26 user-QuantaGrid-D52PL-4U kernel: [ 167.266672] hid-generic 0003:046D:C315.0005: input,hidraw0: USB HID v1.10 Keyboard [Logitech Logitech USB Keyboard] on usb-0000:00:14.0-2/inpu...

Read more...

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

The Quanta give me hits about error and it seems that in 68 reboot cycles there are 11 times which can't detected out the usb keyboard.

$ grep 'Command line' kern.log |wc
     68 952 12988
$ grep "usb1-port2: couldn't allocate usb_device" kern.log |wc
     11 132 1199

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

The boot with keyboard detected logs as below:

Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.242592] hub 1-0:1.0: 16 ports detected
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.308359] probe of 1-0:1.0 returned 1 after 129930 usecs
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.372798] probe of usb1 returned 1 after 194395 usecs
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.437456] xhci_hcd 0000:00:14.0: xHCI Host Controller
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.502175] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.541288] usb usb1-port1: couldn't allocate usb_device
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.567309] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.567341] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.03
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.757241] usb 1-2: new low-speed USB device number 2 using xhci_hcd
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.764290] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.764291] usb usb2: Product: xHCI Host Controller
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.764292] usb usb2: Manufacturer: Linux 5.3.0-28-generic xhci-hcd
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.764295] usb usb2: SerialNumber: 0000:00:14.0
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 13.986189] usb 1-2: New USB device found, idVendor=04ca, idProduct=0027, bcdDevice= 1.18
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.004749] hub 2-0:1.0: USB hub found
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.056592] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.109726] hub 2-0:1.0: 10 ports detected
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.161986] usb 1-2: Product: USB Multimedia Keyboard
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.161988] usb 1-2: Manufacturer: Lite-On Technology Corp.
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.215697] usb: port power management may be unreliable
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.269095] probe of 1-2 returned 1 after 1173 usecs
Feb 25 20:30:37 user-QuantaGrid-D52PL-4U kernel: [ 14.320539] probe of 2-0:1.0 returned 1 after 315796 usecs

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :
Download full text (3.2 KiB)

The boot which failed to detected keyboard are below:

Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 12.688666] xhci_hcd 0000:00:14.0: xHCI Host Controller
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 12.739684] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 12.796396] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000000009810
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 12.860304] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 12.924653] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.03
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 12.989809] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.055002] usb usb1: Product: xHCI Host Controller
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.119662] usb usb1: Manufacturer: Linux 5.3.0-28-generic xhci-hcd
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.184980] usb usb1: SerialNumber: 0000:00:14.0
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.249663] hub 1-0:1.0: USB hub found
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.313880] hub 1-0:1.0: 16 ports detected
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.379787] probe of 1-0:1.0 returned 1 after 130128 usecs
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.444761] probe of usb1 returned 1 after 195129 usecs
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.509606] xhci_hcd 0000:00:14.0: xHCI Host Controller
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.574399] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.609979] usb usb1-port1: couldn't allocate usb_device
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.639502] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.703568] usb usb1-port2: couldn't allocate usb_device
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.769363] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.03
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.900828] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 13.968612] usb usb2: Product: xHCI Host Controller
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 14.027356] usb usb2: Manufacturer: Linux 5.3.0-28-generic xhci-hcd
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 14.079505] usb usb2: SerialNumber: 0000:00:14.0
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 14.133178] hub 2-0:1.0: USB hub found
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 14.184423] hub 2-0:1.0: 10 ports detected
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 14.235270] usb: port power management may be unreliable
Feb 25 20:56:06 user-QuantaGrid-D52PL-4U kernel: [ 14.287421] probe of 2-0:1.0 returned 1 after 154246 usecs
Feb 25 20:56:06 user-QuantaGrid-D52PL...

Read more...

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :

Compare the kernel related usb logs between keyboard detected and not, all previous logs are no difference, it began difference only from. I personally thought it might not issues from kernel as it likes external device (keyboad) didn't report devices information back and from testing log it sees just 16% reboot were failed to detect keyboard.

no-keyboard:
Feb 25 20:56:06 13.639502] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
*Feb 25 20:56:06 13.703568] usb usb1-port2: couldn't allocate usb_device
*Feb 25 20:56:06 13.769363] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.03
Feb 25 20:56:06 13.900828] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 25 20:56:06 13.968612] usb usb2: Product: xHCI Host Controller
Feb 25 20:56:06 14.027356] usb usb2: Manufacturer: Linux 5.3.0-28-generic xhci-hcd
Feb 25 20:56:06 14.079505] usb usb2: SerialNumber: 0000:00:14.0

with-keyboard:
Feb 25 14:58:11 17.021871] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed
*Feb 25 14:58:11 17.021903] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.03
Feb 25 14:58:11 17.212935] usb 1-2: new low-speed USB device number 2 using xhci_hcd
Feb 25 14:58:11 17.220801] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 25 14:58:11 17.220803] usb usb2: Product: xHCI Host Controller
Feb 25 14:58:11 17.220803] usb usb2: Manufacturer: Linux 5.3.0-28-generic xhci-hcd
Feb 25 14:58:11 17.220804] usb usb2: SerialNumber: 0000:00:14.0

Revision history for this message
Zhanglei Mao (zhanglei-mao) wrote :
Download full text (5.9 KiB)

The kernel of Linux version 3.10.0-862.el7.x86_64 which didn't find issues. From the below log of "usb 1-1: Product: Keyboard Hub", it seems ubuntu new hwe kernel can't detected and support this usb hub of the keybaord. The full log about usb 1-1 are below:

usb 1-1: new high-speed USB device number 2 using xhci_hcd
usb 1-1: New USB device found, idVendor=05ac, idProduct=1006
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: Keyboard Hub
usb 1-1: Manufacturer: Apple, Inc.
usb 1-1: SerialNumber: 000000000000
kernel: hub 1-1:1.0: USB hub found

-----------------------------------------------------------------
full log for a reboot crycle via grep usb messages
Feb 17 19:54:41 192-168-129-24 kernel: ACPI: bus type USB registered
Feb 17 19:54:41 192-168-129-24 kernel: usbcore: registered new interface driver usbfs
Feb 17 19:54:41 192-168-129-24 kernel: usbcore: registered new interface driver hub
Feb 17 19:54:41 192-168-129-24 kernel: usbcore: registered new device driver usb
Feb 17 19:54:41 192-168-129-24 kernel: ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Feb 17 19:54:41 192-168-129-24 kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Feb 17 19:54:41 192-168-129-24 kernel: uhci_hcd: USB Universal Host Controller Interface driver
Feb 17 19:54:41 192-168-129-24 kernel: xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
Feb 17 19:54:41 192-168-129-24 kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Feb 17 19:54:41 192-168-129-24 kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 17 19:54:41 192-168-129-24 kernel: usb usb1: Product: xHCI Host Controller
Feb 17 19:54:41 192-168-129-24 kernel: usb usb1: Manufacturer: Linux 3.10.0-862.el7.x86_64 xhci-hcd
Feb 17 19:54:41 192-168-129-24 kernel: usb usb1: SerialNumber: 0000:00:14.0
Feb 17 19:54:41 192-168-129-24 kernel: hub 1-0:1.0: USB hub found
Feb 17 19:54:41 192-168-129-24 kernel: xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
Feb 17 19:54:41 192-168-129-24 kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
Feb 17 19:54:41 192-168-129-24 kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 17 19:54:41 192-168-129-24 kernel: usb usb2: Product: xHCI Host Controller
Feb 17 19:54:41 192-168-129-24 kernel: usb usb2: Manufacturer: Linux 3.10.0-862.el7.x86_64 xhci-hcd
Feb 17 19:54:41 192-168-129-24 kernel: usb usb2: SerialNumber: 0000:00:14.0
Feb 17 19:54:41 192-168-129-24 kernel: hub 2-0:1.0: USB hub found
Feb 17 19:54:41 192-168-129-24 kernel: usb: port power management may be unreliable
Feb 17 19:54:41 192-168-129-24 kernel: usbcore: registered new interface driver usbserial
Feb 17 19:54:41 192-168-129-24 kernel: usbcore: registered new interface driver usbserial_generic
Feb 17 19:54:41 192-168-129-24 kernel: usbserial: USB Serial support registered for generic
Feb 17 19:54:41 192-168-129-24 kernel: usbcore: registered new interface driver usbhid
Feb 17 19:54:41 192-168-129-24 kernel: usbhid: USB HID core driver
Feb 17 19:54:41 192-168-129-24 kernel: usb 1-1: new high-speed USB device number 2 using xhci_hcd
Feb ...

Read more...

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

Other bug subscribers

Bug attachments

Remote bug watches

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