[Bug 268956] USB controller / port random resets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Jan 2023 17:30:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268956 Bug ID: 268956 Summary: USB controller / port random resets Product: Base System Version: 13.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: tomek@cedro.info Hello world :-) I have ASUS Sabertooth 990FX R2.0 mainboard woth AMD FX-3200 CPU and I have noticed random USB resets since I switched to this hardware. Both 3.0 and 2.0 are affected, but it happens on single ports rather than all ports (i.e. keyboard attached to USB2.0 port disappears and reappears, video grabber on 3.0 port disappears then reappears, USB 3.0 HUB connected to 3.0 port disappears and reappears, etc, but at the same time other ports may work fine i.e. USB BT dongle). At first I thought this may be faulty USB 3.0 HUB. But I have tried two different devices with standalone power supply and the problem persists. So it also does not seem to come from port overpower. Then I have attached USB 2.0 and USB 3.0 KVM switches (for mouse and keyboard to share among different computers). Both have the same problem. Now I can see the problem while video grabbing with USB3.0 HDMI grabber that breaks after some time (i.e. two hours) making full grab impossible. The same happens to USB web cam breaking in the middle of videocall. Maybe there is some sort of IRQ conflict? Any hints appreciated on what may be the problem? :-) Tomek # uname -a FreeBSD octagon 13.1-STABLE FreeBSD 13.1-STABLE #3 stable/13-n253362-1149f0ec2b18: Fri Jan 6 21:15:32 CET 2023 root@octagon:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 # pciconf -lv hostb0@pci0:0:0:0: class=0x060000 rev=0x02 hdr=0x00 vendor=0x1002 device=0x5a14 subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD9x0/RX980 Host Bridge' class = bridge subclass = HOST-PCI none0@pci0:0:0:2: class=0x080600 rev=0x00 hdr=0x00 vendor=0x1002 device=0x5a23 subvendor=0x1002 subdevice=0x5a23 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890S/RD990 I/O Memory Management Unit (IOMMU)' class = base peripheral subclass = IOMMU pcib1@pci0:0:2:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a16 subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0)' class = bridge subclass = PCI-PCI pcib2@pci0:0:4:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a18 subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0)' class = bridge subclass = PCI-PCI pcib3@pci0:0:5:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a19 subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 1)' class = bridge subclass = PCI-PCI pcib4@pci0:0:9:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1c subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 4)' class = bridge subclass = PCI-PCI pcib5@pci0:0:10:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1d subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 5)' class = bridge subclass = PCI-PCI pcib6@pci0:0:11:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1f subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890/RD990 PCI to PCI bridge (PCI Express GFX2 port 0)' class = bridge subclass = PCI-PCI pcib10@pci0:0:13:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x5a1e subvendor=0x1002 subdevice=0x5a14 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP2 Port 0)' class = bridge subclass = PCI-PCI ahci2@pci0:0:17:0: class=0x010601 rev=0x40 hdr=0x00 vendor=0x1002 device=0x4391 subvendor=0x1043 subdevice=0x84dd vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]' class = mass storage subclass = SATA ohci0@pci0:0:18:0: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1002 subdevice=0x4397 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller' class = serial bus subclass = USB ehci0@pci0:0:18:2: class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1002 subdevice=0x4396 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller' class = serial bus subclass = USB ohci1@pci0:0:19:0: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1002 subdevice=0x4397 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller' class = serial bus subclass = USB ehci1@pci0:0:19:2: class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1002 subdevice=0x4396 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller' class = serial bus subclass = USB intsmb0@pci0:0:20:0: class=0x0c0500 rev=0x42 hdr=0x00 vendor=0x1002 device=0x4385 subvendor=0x1002 subdevice=0x4385 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SBx00 SMBus Controller' class = serial bus subclass = SMBus isab0@pci0:0:20:3: class=0x060100 rev=0x40 hdr=0x00 vendor=0x1002 device=0x439d subvendor=0x1002 subdevice=0x439d vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 LPC host controller' class = bridge subclass = PCI-ISA pcib11@pci0:0:20:4: class=0x060401 rev=0x40 hdr=0x01 vendor=0x1002 device=0x4384 subvendor=0x0000 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SBx00 PCI to PCI Bridge' class = bridge subclass = PCI-PCI ohci2@pci0:0:20:5: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4399 subvendor=0x1002 subdevice=0x4399 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 USB OHCI2 Controller' class = serial bus subclass = USB pcib12@pci0:0:21:0: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x43a0 subvendor=0x1002 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)' class = bridge subclass = PCI-PCI pcib13@pci0:0:21:2: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x43a2 subvendor=0x1002 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB900 PCI to PCI bridge (PCIE port 2)' class = bridge subclass = PCI-PCI pcib14@pci0:0:21:3: class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x43a3 subvendor=0x1002 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB900 PCI to PCI bridge (PCIE port 3)' class = bridge subclass = PCI-PCI ohci3@pci0:0:22:0: class=0x0c0310 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4397 subvendor=0x1002 subdevice=0x4397 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 USB OHCI0 Controller' class = serial bus subclass = USB ehci2@pci0:0:22:2: class=0x0c0320 rev=0x00 hdr=0x00 vendor=0x1002 device=0x4396 subvendor=0x1002 subdevice=0x4396 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'SB7x0/SB8x0/SB9x0 USB EHCI Controller' class = serial bus subclass = USB hostb1@pci0:0:24:0: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1600 subvendor=0x0000 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Family 15h Processor Function 0' class = bridge subclass = HOST-PCI hostb2@pci0:0:24:1: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1601 subvendor=0x0000 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Family 15h Processor Function 1' class = bridge subclass = HOST-PCI hostb3@pci0:0:24:2: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1602 subvendor=0x0000 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Family 15h Processor Function 2' class = bridge subclass = HOST-PCI hostb4@pci0:0:24:3: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1603 subvendor=0x0000 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Family 15h Processor Function 3' class = bridge subclass = HOST-PCI hostb5@pci0:0:24:4: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1604 subvendor=0x0000 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Family 15h Processor Function 4' class = bridge subclass = HOST-PCI hostb6@pci0:0:24:5: class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1605 subvendor=0x0000 subdevice=0x0000 vendor = 'Advanced Micro Devices, Inc. [AMD]' device = 'Family 15h Processor Function 5' class = bridge subclass = HOST-PCI vgapci0@pci0:1:0:0: class=0x030000 rev=0xe7 hdr=0x00 vendor=0x1002 device=0x67df subvendor=0x1462 subdevice=0x3418 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]' class = display subclass = VGA hdac0@pci0:1:0:1: class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xaaf0 subvendor=0x1462 subdevice=0xaaf0 vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]' device = 'Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]' class = multimedia subclass = HDA ahci0@pci0:2:0:0: class=0x010601 rev=0x01 hdr=0x00 vendor=0x1b21 device=0x0612 subvendor=0x1043 subdevice=0x84b7 vendor = 'ASMedia Technology Inc.' device = 'ASM1062 Serial ATA Controller' class = mass storage subclass = SATA ahci1@pci0:3:0:0: class=0x010601 rev=0x01 hdr=0x00 vendor=0x1b21 device=0x0612 subvendor=0x1043 subdevice=0x84b7 vendor = 'ASMedia Technology Inc.' device = 'ASM1062 Serial ATA Controller' class = mass storage subclass = SATA xhci0@pci0:4:0:0: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1b21 device=0x1042 subvendor=0x1043 subdevice=0x8488 vendor = 'ASMedia Technology Inc.' device = 'ASM1042 SuperSpeed USB Host Controller' class = serial bus subclass = USB nvme0@pci0:5:0:0: class=0x010802 rev=0x00 hdr=0x00 vendor=0x144d device=0xa809 subvendor=0x144d subdevice=0xa801 vendor = 'Samsung Electronics Co Ltd' device = 'NVMe SSD Controller 980' class = mass storage subclass = NVM pcib7@pci0:6:0:0: class=0x060400 rev=0x0e hdr=0x01 vendor=0x111d device=0x8018 subvendor=0x0000 subdevice=0x0000 vendor = 'Microsemi / PMC / IDT' device = 'PES12N3A 12-lane 3-Port PCI Express Switch' class = bridge subclass = PCI-PCI pcib8@pci0:7:2:0: class=0x060400 rev=0x0e hdr=0x01 vendor=0x111d device=0x8018 subvendor=0x0000 subdevice=0x0000 vendor = 'Microsemi / PMC / IDT' device = 'PES12N3A 12-lane 3-Port PCI Express Switch' class = bridge subclass = PCI-PCI pcib9@pci0:7:4:0: class=0x060400 rev=0x0e hdr=0x01 vendor=0x111d device=0x8018 subvendor=0x0000 subdevice=0x0000 vendor = 'Microsemi / PMC / IDT' device = 'PES12N3A 12-lane 3-Port PCI Express Switch' class = bridge subclass = PCI-PCI em0@pci0:8:0:0: class=0x020000 rev=0x06 hdr=0x00 vendor=0x8086 device=0x10bc subvendor=0x103c subdevice=0x704b vendor = 'Intel Corporation' device = '82571EB/82571GB Gigabit Ethernet Controller (Copper)' class = network subclass = ethernet em1@pci0:8:0:1: class=0x020000 rev=0x06 hdr=0x00 vendor=0x8086 device=0x10bc subvendor=0x103c subdevice=0x704b vendor = 'Intel Corporation' device = '82571EB/82571GB Gigabit Ethernet Controller (Copper)' class = network subclass = ethernet em2@pci0:9:0:0: class=0x020000 rev=0x06 hdr=0x00 vendor=0x8086 device=0x10bc subvendor=0x103c subdevice=0x704b vendor = 'Intel Corporation' device = '82571EB/82571GB Gigabit Ethernet Controller (Copper)' class = network subclass = ethernet em3@pci0:9:0:1: class=0x020000 rev=0x06 hdr=0x00 vendor=0x8086 device=0x10bc subvendor=0x103c subdevice=0x704b vendor = 'Intel Corporation' device = '82571EB/82571GB Gigabit Ethernet Controller (Copper)' class = network subclass = ethernet aac0@pci0:10:0:0: class=0x010400 rev=0x09 hdr=0x00 vendor=0x9005 device=0x0285 subvendor=0x9005 subdevice=0x02d5 vendor = 'Adaptec' device = 'AAC-RAID' class = mass storage subclass = RAID emu10kx0@pci0:11:5:0: class=0x040100 rev=0x04 hdr=0x00 vendor=0x1102 device=0x0004 subvendor=0x1102 subdevice=0x2002 vendor = 'Creative Labs' device = 'EMU10k2/CA0100/CA0102/CA10200 [Sound Blaster Audigy Series]' class = multimedia subclass = audio none1@pci0:11:5:1: class=0x098000 rev=0x04 hdr=0x00 vendor=0x1102 device=0x7003 subvendor=0x1102 subdevice=0x0040 vendor = 'Creative Labs' device = 'SB Audigy Game Port' class = input device none2@pci0:11:5:2: class=0x0c0010 rev=0x04 hdr=0x00 vendor=0x1102 device=0x4001 subvendor=0x1102 subdevice=0x0010 vendor = 'Creative Labs' device = 'SB Audigy FireWire Port' class = serial bus subclass = FireWire xhci1@pci0:13:0:0: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1b21 device=0x1042 subvendor=0x1043 subdevice=0x8488 vendor = 'ASMedia Technology Inc.' device = 'ASM1042 SuperSpeed USB Host Controller' class = serial bus subclass = USB xhci2@pci0:14:0:0: class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1b21 device=0x1042 subvendor=0x1043 subdevice=0x8488 vendor = 'ASMedia Technology Inc.' device = 'ASM1042 SuperSpeed USB Host Controller' class = serial bus subclass = USB Disconnects can be seen is dmesg as: ugen4.2: <vendor 0x1a40 USB 2.0 Hub> at usbus4 (disconnected) uhub12: at uhub9, port 2, addr 2 (disconnected) ugen4.3: <Logitech USB Receiver> at usbus4 (disconnected) usbhid1: at uhub12, port 1, addr 3 (disconnected) hidraw1: detached hkbd0: detached hidbus1: detached usbhid1: detached usbhid2: at uhub12, port 1, addr 3 (disconnected) hidraw2: detached hsctrl0: detached hcons0: detached hms0: detached hidbus2: detached usbhid2: detached usbhid3: at uhub12, port 1, addr 3 (disconnected) hidraw3: detached hidbus3: detached usbhid3: detached ugen4.4: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard> at usbus4 (disconnected) usbhid4: at uhub12, port 4, addr 4 (disconnected) hidraw4: detached hkbd1: detached hidbus4: detached usbhid4: detached usbhid5: at uhub12, port 4, addr 4 (disconnected) hidraw5: detached hidbus5: detached usbhid5: detached usbhid6: at uhub12, port 4, addr 4 (disconnected) hidraw6: detached hkbd2: detached hms1: detached hcons1: detached hsctrl1: detached hidbus6: detached usbhid6: detached uhub12: detached uhub_reattach_port: giving up port 2 reset - device vanished: change 0x1 status 0x501 uhub_reattach_port: giving up port 2 reset - device vanished: change 0x1 status 0x501 ugen4.2: <vendor 0x1a40 USB 2.0 Hub> at usbus4 uhub12 on uhub9 uhub12: <vendor 0x1a40 USB 2.0 Hub, class 9/0, rev 2.00/1.11, addr 2> on usbus4 uhub12: 4 ports with 4 removable, self powered ugen4.3: <Logitech USB Receiver> at usbus4 usbhid1 on uhub12 usbhid1: <Logitech USB Receiver, class 0/0, rev 2.00/12.11, addr 3> on usbus4 hidbus1: <HID bus> on usbhid1 hkbd0: <Logitech USB Receiver Keyboard> on hidbus1 kbd2 at hkbd0 hidraw1: <Logitech USB Receiver Raw HID Device> on hidbus1 usbhid2 on uhub12 usbhid2: <Logitech USB Receiver, class 0/0, rev 2.00/12.11, addr 3> on usbus4 hidbus2: <HID bus> on usbhid2 hms0: <Logitech USB Receiver Mouse> on hidbus2 hms0: 16 buttons and [XYWH] coordinates ID=2 hcons0: <Logitech USB Receiver Consumer Control> on hidbus2 hsctrl0: <Logitech USB Receiver System Control> on hidbus2 hidraw2: <Logitech USB Receiver Raw HID Device> on hidbus2 usbhid3 on uhub12 usbhid3: <Logitech USB Receiver, class 0/0, rev 2.00/12.11, addr 3> on usbus4 hidbus3: <HID bus> on usbhid3 hidraw3: <Logitech USB Receiver Raw HID Device> on hidbus3 ugen4.4: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard> at usbus4 usbhid4 on uhub12 usbhid4: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard, class 0/0, rev 2.00/1.10, addr 4> on usbus4 hidbus4: <HID bus> on usbhid4 hkbd1: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard> on hidbus4 kbd3 at hkbd1 hidraw4: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard Raw HID Device> on hidbus4 usbhid5 on uhub12 usbhid5: <CY040334014A0118> on usbus4 hidbus5: <HID bus> on usbhid5 hidraw5: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard Raw HID Device> on hidbus5 usbhid6 on uhub12 usbhid6: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard, class 0/0, rev 2.00/1.10, addr 4> on usbus4 hidbus6: <HID bus> on usbhid6 hsctrl1: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard System Control> on hidbus6 hcons1: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard Consumer Control> on hidbus6 hms1: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard Mouse> on hidbus6 hms1: 8 buttons and [XYWH] coordinates ID=3 hkbd2: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard> on hidbus6 kbd4 at hkbd2 hidraw6: <Micro-Star INTL CO., LTD. MSI GK50 LOW PROFILE Gaming Keyboard Raw HID Device> on hidbus6 -- You are receiving this mail because: You are the assignee for the bug.