The keyboard does not have responeded when boot system into Ubuntu 18.04.4 with HWE(Legacy Mode) on Quanta server
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.
Zhanglei Mao (zhanglei-mao) wrote : | #1 |
Zhanglei Mao (zhanglei-mao) wrote : | #2 |
Also, it was said that this issues didn't found on rhel.
Zhanglei Mao (zhanglei-mao) wrote : | #3 |
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
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
$ grep -i keybaord kernel.log|tail -n15
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:04:45 user-QuantaGrid
Feb 26 10:05:08 user-QuantaGrid
Feb 26 10:05:08 user-QuantaGrid
Feb 26 10:05:08 user-QuantaGrid
Feb 26 10:06:26 user-QuantaGrid
Feb 26 10:06:26 user-QuantaGrid
Feb 26 10:06:26 user-QuantaGrid
Zhanglei Mao (zhanglei-mao) wrote : | #4 |
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
Zhanglei Mao (zhanglei-mao) wrote : | #5 |
The boot with keyboard detected logs as below:
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Feb 25 20:30:37 user-QuantaGrid
Zhanglei Mao (zhanglei-mao) wrote : | #6 |
The boot which failed to detected keyboard are below:
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Feb 25 20:56:06 user-QuantaGrid
Zhanglei Mao (zhanglei-mao) wrote : | #7 |
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
Zhanglei Mao (zhanglei-mao) wrote : | #8 |
The kernel of Linux version 3.10.0-
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-
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-
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 ...
kernel log from testing