Date: Mon, 4 Mar 2024 14:49:09 -0800 From: Mark Millard <marklmi@yahoo.com> To: Alexander Motin <mav@FreeBSD.org> Cc: Jakob Alvermark <jakob@alvermark.net>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Current FreeBSD <freebsd-current@freebsd.org>, FreeBSD-USB Mailing List <freebsd-usb@freebsd.org> Subject: Re: main [so: 15] context, 7950X3D and RTL8251/8153 based Ethernet dongle: loss of state, example log information Message-ID: <B1FE87F4-1FDD-4D3A-9BCB-656DCA5CB83F@yahoo.com> In-Reply-To: <87db86a3-55a3-7d55-63a6-0058e0f98c2b@FreeBSD.org> References: <41913B2D-381A-4EEC-9B37-531445645F71.ref@yahoo.com> <41913B2D-381A-4EEC-9B37-531445645F71@yahoo.com> <b1ad674d-c32f-42d2-83ff-a5de339c3f4f@alvermark.net> <D7EFA40B-3443-44F9-855D-0F4082375B34@yahoo.com> <202403042000.424K0nnR083667@critter.freebsd.dk> <42786924-babe-da63-b672-d546c41327c6@FreeBSD.org> <c5b47b07-05c8-427a-bf14-abeb01871e11@alvermark.net> <87db86a3-55a3-7d55-63a6-0058e0f98c2b@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 4, 2024, at 12:39, Alexander Motin <mav@FreeBSD.org> wrote: > On 04.03.2024 15:33, Jakob Alvermark wrote: >> On 3/4/24 21:13, Alexander Motin wrote: >>> On 04.03.2024 15:00, Poul-Henning Kamp wrote: >>>>>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to = DOWN >>>>>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to UP >>>>>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to = DOWN >>>>>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to UP >>>>>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to = DOWN >>>>>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to UP >>>>=20 >>>> I consistently had similar problems with my 0x17ef/0x3066 "ThinkPad >>>> Thunderbolt 3 Dock MCU", but they went away after I forced it to >>>> use the if_cdce driver instead with this quirk: >>>>=20 >>>> /* This works much better with if_cdce than if_ure */ >>>> USB_QUIRK(LENOVO, TBT3LAN, 0x0000, 0xffff, = UQ_CFG_INDEX_1), >>>=20 >>> AFAIK it is only a workaround. I saw it myself on number of = different USB dongles and laptops, that USB starting experience some = problems with multiple NIC queues and some other factors. IIRC the = Realtek driver was much more stable once I limited it to one queue and = some other hacks. IIRC if_cdce just has only one queue and other = limitations, that not only makes it more stable, but also much slower. = It would be good to understand what's wrong is there exactly, since IMHO = it is a big problem now. Unfortunately HPS was unable to reproduce it on = his laptop (that makes me wonder if is is specific to chipset(s) or = thunderbolt?), so it ended nowhere so far. >> I have a Lenovo USB 3 dongle, so no thunderbolt. >=20 > I also use USB3 dongles. But in my laptops the USB 3 ports are = provided by Intel Thunderbolt controller, while in HPS' they were plain = from USB3 controller. Though it may be just a coincidence. To my knowledge, no USB4/Thunderbolt controller is present in the PRIME X670-P WIFI system that had been showing the messages and no built-in external port is an example of such. = https://www.asus.com/us/motherboards-components/motherboards/prime/prime-x= 670-p-wifi/techspec/ lists for USB: Rear USB (Total 10 ports) 1 x USB 3.2 Gen 2x2 port (1 x USB Type-C=C2=AE) 3 x USB 3.2 Gen 2 ports (3 x Type-A) 4 x USB 3.2 Gen 1 ports (4 x Type-A) 2 x USB 2.0 ports (2 x Type-A) Front USB (Total 9 ports) 1 x USB 3.2 Gen 1 connector (supports USB Type-C=C2=AE) 2 x USB 3.2 Gen 1 headers support additional 4 USB 3.2 Gen 1 ports 2 x USB 2.0 headers support additional 4 USB 2.0 ports * USB Type-C=C2=AE power delivery output: max. 5V/3A For Miscellaneous it lists: 1 x Thunderbolt=E2=84=A2 (USB4=C2=AE) header But, as I understand, it has to be tied to a PCie Thunderbolt card. For reference for the 7950X3D system: # pciconf -lcv | grep -B4 -A16 "subclass =3D USB" xhci0@pci0:11:0:0: class=3D0x0c0330 rev=3D0x01 hdr=3D0x00 = vendor=3D0x1022 device=3D0x43f7 subvendor=3D0x1b21 subdevice=3D0x1142 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' device =3D '600 Series Chipset USB 3.2 Controller' class =3D serial bus subclass =3D USB cap 05[50] =3D MSI supports 8 messages, 64 bit=20 cap 11[68] =3D MSI-X supports 8 messages, enabled Table in map 0x10[0x2000], PBA in map 0x10[0x2080] cap 01[78] =3D powerspec 3 supports D0 D3 current D0 cap 10[80] =3D PCI-Express 2 legacy endpoint max data 256(512) RO NS max read 512 link x1(x1) speed 2.5(2.5) ASPM L1(L0s/L1) ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected ecap 0018[160] =3D LTR 1 ahci0@pci0:12:0:0: class=3D0x010601 rev=3D0x01 hdr=3D0x00 = vendor=3D0x1022 device=3D0x43f6 subvendor=3D0x1b21 subdevice=3D0x1062 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' device =3D '600 Series Chipset SATA Controller' class =3D mass storage subclass =3D SATA cap 05[50] =3D MSI supports 1 message, 64 bit enabled with 1 message cap 01[70] =3D powerspec 3 supports D0 D3 current D0 -- xhci1@pci0:13:0:0: class=3D0x0c0330 rev=3D0x01 hdr=3D0x00 = vendor=3D0x1022 device=3D0x43f7 subvendor=3D0x1b21 subdevice=3D0x1142 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' device =3D '600 Series Chipset USB 3.2 Controller' class =3D serial bus subclass =3D USB cap 05[50] =3D MSI supports 8 messages, 64 bit=20 cap 11[68] =3D MSI-X supports 8 messages, enabled Table in map 0x10[0x2000], PBA in map 0x10[0x2080] cap 01[78] =3D powerspec 3 supports D0 D3 current D0 cap 10[80] =3D PCI-Express 2 legacy endpoint max data 256(512) RO NS max read 512 link x1(x1) speed 2.5(2.5) ASPM L1(L0s/L1) ecap 0001[100] =3D AER 1 0 fatal 0 non-fatal 0 corrected ecap 0018[160] =3D LTR 1 ahci1@pci0:14:0:0: class=3D0x010601 rev=3D0x01 hdr=3D0x00 = vendor=3D0x1022 device=3D0x43f6 subvendor=3D0x1b21 subdevice=3D0x1062 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' device =3D '600 Series Chipset SATA Controller' class =3D mass storage subclass =3D SATA cap 05[50] =3D MSI supports 1 message, 64 bit enabled with 1 message cap 01[70] =3D powerspec 3 supports D0 D3 current D0 -- P2P Direct Translated unavailable, Enhanced = Capability unavailable xhci2@pci0:16:0:3: class=3D0x0c0330 rev=3D0x00 hdr=3D0x00 = vendor=3D0x1022 device=3D0x15b6 subvendor=3D0x1043 subdevice=3D0x8877 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' class =3D serial bus subclass =3D USB cap 09[48] =3D vendor (length 8) cap 01[50] =3D powerspec 3 supports D0 D3 current D0 cap 10[64] =3D PCI-Express 2 endpoint max data 256(256) RO NS max read 512 link x16(x16) speed 16.0(16.0) ASPM disabled(L0s/L1) cap 05[a0] =3D MSI supports 8 messages, 64 bit=20 cap 11[c0] =3D MSI-X supports 8 messages, enabled Table in map 0x10[0xfe000], PBA in map 0x10[0xff000] ecap 000b[100] =3D Vendor [1] ID 0001 Rev 1 Length 16 ecap 000d[2a0] =3D ACS 1 Source Validation unavailable, Translation = Blocking unavailable P2P Req Redirect unavailable, P2P Cmpl Redirect = unavailable P2P Upstream Forwarding unavailable, P2P Egress = Control unavailable P2P Direct Translated unavailable, Enhanced = Capability unavailable xhci3@pci0:16:0:4: class=3D0x0c0330 rev=3D0x00 hdr=3D0x00 = vendor=3D0x1022 device=3D0x15b7 subvendor=3D0x1043 subdevice=3D0x8877 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' class =3D serial bus subclass =3D USB cap 09[48] =3D vendor (length 8) cap 01[50] =3D powerspec 3 supports D0 D3 current D0 cap 10[64] =3D PCI-Express 2 endpoint max data 256(256) RO NS max read 512 link x16(x16) speed 16.0(16.0) ASPM disabled(L0s/L1) cap 05[a0] =3D MSI supports 8 messages, 64 bit=20 cap 11[c0] =3D MSI-X supports 8 messages, enabled Table in map 0x10[0xfe000], PBA in map 0x10[0xff000] ecap 000b[100] =3D Vendor [1] ID 0001 Rev 1 Length 16 ecap 000d[2a0] =3D ACS 1 Source Validation unavailable, Translation = Blocking unavailable P2P Req Redirect unavailable, P2P Cmpl Redirect = unavailable P2P Upstream Forwarding unavailable, P2P Egress = Control unavailable P2P Direct Translated unavailable, Enhanced = Capability unavailable hdac1@pci0:16:0:6: class=3D0x040300 rev=3D0x00 hdr=3D0x00 = vendor=3D0x1022 device=3D0x15e3 subvendor=3D0x1043 subdevice=3D0x87fb vendor =3D 'Advanced Micro Devices, Inc. [AMD]' device =3D 'Family 17h/19h HD Audio Controller' -- P2P Direct Translated unavailable, Enhanced = Capability unavailable xhci4@pci0:17:0:0: class=3D0x0c0330 rev=3D0x00 hdr=3D0x00 = vendor=3D0x1022 device=3D0x15b8 subvendor=3D0x1043 subdevice=3D0x8877 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' class =3D serial bus subclass =3D USB cap 09[48] =3D vendor (length 8) cap 01[50] =3D powerspec 3 supports D0 D3 current D0 cap 10[64] =3D PCI-Express 2 endpoint max data 256(256) RO NS max read 512 link x16(x16) speed 16.0(16.0) ASPM disabled(L0s/L1) cap 05[a0] =3D MSI supports 8 messages, 64 bit=20 cap 11[c0] =3D MSI-X supports 8 messages, enabled Table in map 0x10[0xfe000], PBA in map 0x10[0xff000] ecap 000b[100] =3D Vendor [1] ID 0001 Rev 1 Length 16 ecap 0019[270] =3D PCIe Sec 1 lane errors 0 ecap 000d[2a0] =3D ACS 1 Source Validation unavailable, Translation = Blocking unavailable P2P Req Redirect unavailable, P2P Cmpl Redirect = unavailable P2P Upstream Forwarding unavailable, P2P Egress = Control unavailable P2P Direct Translated unavailable, Enhanced = Capability unavailable ecap 0026[410] =3D Physical Layer 16.0 GT/s 1 ecap 0027[450] =3D Lane Margining at Receiver 1 # usbconfig show_ifdrv ugen4.1: <AMD XHCI root HUB> at usbus4, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen4.1.0: uhub0: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> ugen0.1: <AMD XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen0.1.0: uhub1: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> ugen1.1: <AMD XHCI root HUB> at usbus1, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen1.1.0: uhub3: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> ugen2.1: <AMD XHCI root HUB> at usbus2, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen2.1.0: uhub4: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> ugen3.1: <AMD XHCI root HUB> at usbus3, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen3.1.0: uhub2: <AMD XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> ugen3.2: <Realtek USB 10/100/1000 LAN> at usbus3, cfg=3D0 md=3DHOST = spd=3DSUPER (5.0Gbps) pwr=3DON (72mA) ugen3.2.0: ure0: <Realtek USB 10/100/1000 LAN, class 0/0, rev = 3.00/30.00, addr 1> . . ugen1.2: <Realtek Bluetooth Radio> at usbus1, cfg=3D0 md=3DHOST spd=3DFULL= (12Mbps) pwr=3DON (500mA) ugen1.2.0: ubt0: <Realtek Bluetooth Radio, class 224/1, rev 1.00/0.00, = addr 1> . . . (I omitted the CORSAIR related lines.) >> USB ID 0x17ef/0x7205 >> rgephy1: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus1 >> I tried using the cdce driver, it gives me < 100Mb/s, while the ure = driver gets > 500Mb/s >=20 > Right, I saw about the same. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B1FE87F4-1FDD-4D3A-9BCB-656DCA5CB83F>