Bug 1222404

Summary: Kernel 6.8.2_1 stuck resetting HID USB device
Product: [openSUSE] openSUSE Tumbleweed Reporter: Diego Ercolani <diego.ercolani>
Component: Kernel:DriversAssignee: Kernel Bugs <kernel-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: diego.ercolani, oneukum, tiwai
Version: CurrentFlags: tiwai: needinfo? (diego.ercolani)
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Diego Ercolani 2024-04-07 10:22:45 UTC
Only a brief observation as yesterday I upgraded from 6.8.1 to 6.8.2_1 and the boot fails during the USB bus initialization, booting with plymouth.enable=0 I could see that the problem is regarding a device (KVM) that presumibly is KVM switch that works with 6.8.2- kernels
How can provide you some useful informations?
Thank you
Comment 1 Diego Ercolani 2024-04-07 10:27:58 UTC
This is the "related part on kernel 6.8.1" that works:
[...]
[    7.304118]  sdb: sdb1 sdb2 sdb3
[    7.304360] sd 5:0:0:0: [sdb] Attached SCSI disk
[    7.349305] usbcore: registered new interface driver usbhid
[    7.349311] usbhid: USB HID core driver
[    7.352026] input: USBKBM USBKBM as /devices/pci0000:00/0000:00:01.2/0000:01:00.0/usb1/1-7/1-7:1.0/0003:045E:008A.0001/input/input0
[    7.393349] sr 1:0:0:0: [sr0] scsi3-mmc drive: 48x/12x writer dvd-ram cd/rw xa/form2 cdda tray
[    7.393355] cdrom: Uniform CD-ROM driver Revision: 3.20
[    7.407259] hid-generic 0003:045E:008A.0001: input,hidraw0: USB HID v1.11 Keyboard [USBKBM USBKBM] on usb-0000:01:00.0-7/input0
[    7.407410] input: USBKBM USBKBM as /devices/pci0000:00/0000:00:01.2/0000:01:00.0/usb1/1-7/1-7:1.1/0003:045E:008A.0002/input/input1
[    7.407516] hid-generic 0003:045E:008A.0002: input,hidraw1: USB HID v1.11 Mouse [USBKBM USBKBM] on usb-0000:01:00.0-7/input1
[    7.437970] sr 1:0:0:0: Attached scsi CD-ROM sr0
[    9.482344] [drm] amdgpu kernel modesetting enabled.
[    9.489005] PM: Image not found (code -22)
[    9.495705] amdgpu: Virtual CRAT table created for CPU
[    9.495727] amdgpu: Topology: Add CPU node
[...]

This is my architecture:
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/10p, 480M
    |__ Port 007: Dev 002, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 007: Dev 002, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 5000M
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
    |__ Port 004: Dev 002, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 003: Dev 003, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 003: Dev 003, If 1, Class=Video, Driver=uvcvideo, 480M
        |__ Port 003: Dev 003, If 2, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 003: Dev 003, If 3, Class=Audio, Driver=snd-usb-audio, 480M
        |__ Port 004: Dev 004, If 0, Class=Hub, Driver=hub/4p, 480M
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 10000M
    |__ Port 004: Dev 002, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 004: Dev 003, If 0, Class=Hub, Driver=hub/4p, 5000M
/:  Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
/:  Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M


00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:01.6 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0]
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 61)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7
01:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 xHCI Compliant Host Controller (rev 01)
01:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller (rev 01)
01:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge (rev 01)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
02:01.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
02:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
02:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
02:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port (rev 01)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)
06:00.0 PCI bridge: PLX Technology, Inc. PEX 8114 PCI Express-to-PCI/PCI-X Bridge (rev bd)
07:04.0 SCSI storage controller: Adaptec ASC-29320ALP U320 (rev 10)
09:00.0 Non-Volatile memory controller: Phison Electronics Corporation E12 NVMe Controller (rev 01)
0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso/Raven 2 [Radeon Vega Series / Radeon Vega Mobile Series] (rev c8)
0a:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
0a:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
0a:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
0a:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1
0a:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
Comment 2 Diego Ercolani 2024-04-07 10:38:15 UTC
This is the OCR of the screenshot during boot of 6.8.2,  usbkem is usbkBm:


on hub 8 1 on hub 8

4.45711911 13991 amdypu 8880:82:80.8: amdgpu: ring sdmaß uses UM inu eng 8 4.45712511 13991 amdgpu 8888:Ba:80.8: amdgpu: ring van dec uses UM Inu eng

4.45713110 73991 amdgpu 0888:Ba:08.0: amdgpu: ring ven_ence uses UM inv en 4 on hub 8

4.45713811 95 on hub 8

13991 amdgpu 8888:Ba:08.8: amdgpu: ring van enci uses UM Inu en

t 4.45714411 96 on hub B 4.46225711

73991 amdypu 8888:08:00.8: amdgpu: ring jpeg dec uses UM inu en

73991 amdgpu: pp_dpm_get_sclk_od was not implemented. 4.46226511 T3991 amdgpu: pp_dpm_get_mclk_od was not implemented.

4.46273411 T399] [drm) Initialized amdgpu 3.57.0 28158181 for 8888:8a:08.8

on minor 1

E

4.46834711 7399] fbcon: amdypudrmfb (fb8) is primary device

4.51817711 1399] Console: switching to colour frame buffer device 248x67 4.52768511 73991 amdgpu 0088:8a:88.8: [drm] fbe: amdgpudrufh frame buffer device

DJ Stopped Virtual Console Setup. Stopping Virtual Console Setup...

Starting Virtual Console Setup... OK Finished Virtual Console Setup.

5.184396 5.104487][

][

Cil clocksource: timekeeping watchdog on CPUI: Marking clocksource 'tsc' as unstable because the skew is too large: 'hpet ud nsec: 586137822 wd now: 44dbech ud last: 3df2a4f mask: ffffffff

C11 clocksource:

C1] clocksource:

5.19468711 Cil clocksource: 5.18467211

5.18454611

C11 clocksource: 'tsc' is current clocksource.

5.184714][

tsc cs_nsec: 587819518

cs_now: 2c4b213748 cs_last: 2bdb85f292 mask: ffffffffffffeeer Clocksource 'tsc' skewed 882496 ns (8 ms) over watchdog 'hpet' interval of 586137822 mς (586 m)

Cil tac: Marking TSC unstable due to clocksource watchdog T76) TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc-unstable'.

5.18551931 5.185542][

T76] sched_clock: Marking unstable (5184818911, 698987)<-(5118145469, -4627648)

5.18571631 75231 clocksource: Checking clocksource tsc synchronization from CPU 2 to CPUs 8,3-4,7. clocksource: Switched to clocksource hpet

5.18582411 7523) 7.79538931

125] usb usbi-port7: disabled by hub (EMI?), re-enabling... 7.795451][ T25] usb 1-7: USB disconnect, device number 2

8.854519][

T251 usb 1-7: new low-speed USB device number 3 using xhei hed

8.38686811 T25 8.38693631

] usb 1-7: New USB device found, idVendor-845e, idProduct=888a, bodDevice 73.73 ] usb 1-7: New USB device strings: Mr-1, Product-2, SerialNumber-8

T25

8.38697911 T25] usb 1-7: Product: USBKEM

8.38788711 725] usb 1-7: Manufacturer: USBKEM

13.53171631 1524] usb usb1-port?: disabled by hub (EMI?), re-enabling... 13.53177531 15243 usb 1-7: USB disconnect, device number 3

13.7911841 7524 ] usb 1-7: new low-speed USB device number 4 using xhci hed 14.04354131 7524] usb 1-7: New USB device found, idVendor-845e, idProduct=888a, bcdDevice-73.73

14.84368931 1524] usb 1-7: New USB device strings: Mr-1, Product-2, SerialNumber-8 14.04365211 75241 usb 1-7: Product: USBKEM

14.04368811 75241 usb 1-7: Manufacturer: USBKIM T25) usb usb1-port7: disabled by hub (EPMI?), re-enabling...

19.268353][ 19.2684133

19.527848][

T251 usb 1-7: USB discomect, device number 4 1251

usb 1-7: new low-speed USB device number 5 using xhci hod

19.779249][ T253 usb 1-7: New USB device found, idVendor-845e, idProduct=888a, bcdDevice 73.73 19.77931731 725] usb 1-7: New USB device strings: Mr-1, Product 2, SerialNumber 8

19.77936831 T25] usb 1-7: Product: USBKBM 19.77938811 T25] usb 1-7: Manufacturer: USBKEM

25.80462631 75241 usb usbi-port7: disabled by hub (EMIT), re-enabling.…… 25.88468111 75241 usb 1-7: USB disconnect, device number 5

ing ahci hod
Comment 3 Takashi Iwai 2024-04-29 14:26:10 UTC
Is it still a problem with the very latest 6.8.x kernel?  You can try the kernel in OBS Kernel:stable repo:
  http://download.opensuse.org/repositories/Kernel:/stable/standard/