bmc virtual usb keyboard/mouse can't be detected when resting bmc

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

Bug Description

In zte server, when reseting bmc or reload virtual keyboard/mouse driver in BMC, the keyboard/mouse on KVM will be hanged, it can resume working after reboot host OS which is Ubuntu 20.04 ga-kernel.

This wouldn't happen on CentOS with kernel of 3.10.0-1160.317.x86_64, the keyboard/mouse of KVM keeps working when resting ibm.

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

During testing, we can found disconnect log in dmesg and not plugin/connect info:

Feb 19 21:14:16 sysadmin kernel: [ 1156.328006] usb 1-7.1: USB disconnect, device number 3
Feb 19 21:17:01 sysadmin CRON[6201]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 19 21:22:15 sysadmin systemd-sysctl[1446]: Not setting net/ipv4/conf/all/promote_secondaries (explicit setting exists).
Feb 19 21:22:15 sysadmin systemd-sysctl[1446]: Not setting net/ipv4/conf/default/promote_secondaries (explicit setting exists).
Feb 19 21:22:15 sysadmin kernel: [ 0.000000] Linux version 5.4.0-26-generic (buildd@lcy01-amd64-029) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)) #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020 (Ubuntu 5.4.0-26.30-generic 5.4.30)

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

The dmesg for virutal keyboad/mouse when reset os:

Feb 19 20:55:17 sysadmin kernel: [ 4.904530] usb 1-7.1: New USB device found, idVendor=046b, idProduct=ff10, bcdDevice= 1.00
Feb 19 20:55:17 sysadmin kernel: [ 4.904955] usb 1-7.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb 19 20:55:17 sysadmin kernel: [ 4.905370] usb 1-7.1: Product: Virtual Keyboard and Mouse
Feb 19 20:55:17 sysadmin kernel: [ 4.905779] usb 1-7.1: Manufacturer: American Megatrends Inc.
Feb 19 20:55:17 sysadmin kernel: [ 4.916508] nouveau 0000:17:00.0: fb: 15360 MiB GDDR6
Feb 19 20:55:17 sysadmin kernel: [ 4.917164] hidraw: raw HID events driver (C) Jiri Kosina
Feb 19 20:55:17 sysadmin kernel: [ 4.922070] usbcore: registered new interface driver usbhid
Feb 19 20:55:17 sysadmin kernel: [ 4.922534] usbhid: USB HID core driver
Feb 19 20:55:17 sysadmin kernel: [ 4.924758] input: American Megatrends Inc. Virtual Keyboard and Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.1/1-7.1:1.0/0003:046B:FF10.
0001/input/input1
Feb 19 20:55:17 sysadmin kernel: [ 4.925350] nouveau 0000:17:00.0: DRM: VRAM: 15360 MiB
Feb 19 20:55:17 sysadmin kernel: [ 4.925677] hid-generic 0003:046B:FF10.0001: input,hidraw0: USB HID v1.10 Keyboard [American Megatrends Inc. Virtual Keyboard and Mouse] on usb-000
0:00:14.0-7.1/input0
Feb 19 20:55:17 sysadmin kernel: [ 4.926066] nouveau 0000:17:00.0: DRM: GART: 536870912 MiB
Feb 19 20:55:17 sysadmin kernel: [ 4.927045] input: American Megatrends Inc. Virtual Keyboard and Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.1/1-7.1:1.1/0003:046B:FF10.
0002/input/input2

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

We also tested virtual CD, it seems worked fine. Below is udevadm monitor output:

KERNEL[310.544164] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
KERNEL[310.544206] remove /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
KERNEL[310.544691] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
KERNEL[310.544737] remove /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
UDEV [310.545677] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
UDEV [310.546176] remove /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
UDEV [310.547452] unbind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
UDEV [310.547917] remove /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
KERNEL[324.302442] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
KERNEL[324.303754] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
KERNEL[324.304074] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14 (scsi)
KERNEL[324.304193] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/scsi_host/host14 (scsi_host)
KERNEL[324.304238] bind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
KERNEL[324.304384] bind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
UDEV [324.306827] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
UDEV [324.308683] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
UDEV [324.309922] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14 (scsi)
UDEV [324.311232] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/scsi_host/host14 (scsi_host)
UDEV [324.312534] bind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0 (usb)
UDEV [324.314064] bind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3 (usb)
KERNEL[325.337392] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0 (scsi)
KERNEL[325.337466] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0/14:0:0:0 (scsi)
UDEV [325.338773] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0 (scsi)
UDEV [325.340412] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0/14:0:0:0 (scsi)
KERNEL[325.388105] add /devices/virtual/bdi/11:0 (bdi)
KERNEL[325.388215] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0/14:0:0:0/block/sr0 (block)
UDEV [325.388841] add /devices/virtual/bdi/11:0 (bdi)
KERNEL[325.389407] add /kernel/slab/bdev_cache/cgroup/bdev_cache(310:systemd-udevd.service) (cgroup)
KERNEL[325.389936] bind /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0/14:0:0:0 (scsi)
KERNEL[325.389997] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0/14:0:0:0/scsi_device/14:0:0:0 (scsi_device)
KERNEL[325.390106] add /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7.3/1-7.3:1.0/host14/target14:0:0/14:0:0:0/scsi_generic/sg7 (scsi_generic)
UDEV [325.390135] add /ker...

Read more...

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

Tried to reload hid and xhci_pic and seems no chance too

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

Summary for more testing results from zte:
1. All works for 20.04.2-20.4.5 hwe-kernel(v5.8.0-41, v5.11.0-27, v5.13.0-30, v5.15.0-46), which we tested boot from iso.

2. It works too if we detach KVM (close browser)before reset BMC.

3. After reset BMC, to unbind "echo '1-7' | sudo tee /sys/bus/usb/drivers/usb/unbind" virtual hub, open KVM can work too.

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

We tested on 20.4.5 iso ga-kernel and the lasted kernel of linux-image-5.4.0-144-generic_5.4.0-144.161_amd64.deb and both them works too.

So this issues have been fixed both on 20.04 ga-kernel and hwe-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.