From nobody Mon Mar 04 22:49:09 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TpYm51nhyz5DRZ3 for ; Mon, 4 Mar 2024 22:49:25 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic317-21.consmr.mail.gq1.yahoo.com (sonic317-21.consmr.mail.gq1.yahoo.com [98.137.66.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TpYm441Byz4612 for ; Mon, 4 Mar 2024 22:49:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1709592562; bh=vHK/rR2nY5OaYOaiM/n4D7xT5tDfHPYPRw3/LtWrs2I=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=G9mX7YgAG/xbHB/3yzI5XskJ0GhYAWNFdI9QOulfGfFADOWxdJ/QDOB5Q1IUPNp1l6DL6MCpFGj9h7uJWrGKrULqvFE4MnpOirq2UWoCkM55R3Udh2YFHytv8EKxg8S5qL4TiAFkJIo2bh+pO/VPWDIAp5Yf1Hl0cDPLuMxKIICSr2ko0LZChMMNyeKMw8+7yxOHNYYxpiQJDBRf9KL1hyii0TIXAqLrp1xInxXHiAACITJTz+3Q2lss5p+QYC68l9uKryJnLd07WSOt6xRT9A0/m3Ry0wqUX+nkmh7VGmgRpebRH1I53SR2G6NbBs2xpl7XaonHFbPW34FU/6XI+w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1709592562; bh=v43QGk270d4AR3jTqR6FlWjvAF8k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IYfeqM9id UeNwB05fSIvPJF9TAMtx1sBrfUqWdm2CeqnezsPBLtpjHdjckYeo1.zeJyzvzg8cyHw0_CUb21w_ _xaUjCKzMnN3mi4Ujr2t13.la3.HLwHCGI6lQX42jxdpktZ4QPQUAYykGy5rtsxGlVOUtI8A3FyK 4NfgPjVGaRYl8afKdj54pRDXKvWNxN7RKaykkaq9f8YMCW4grZt08B8z7ebiq34.b4BsPk6yzcp3 YKNVx3gbKdrvLoQv5ZQ.nt6SYXlY0CmqBwZGZtNf0yDPvGxQADEQKXEjJpmw9srmHk3xcjgTWz4x b.nK2_49F1LzWgLFCMU_7_Z7u0VDtZunWeg8wM.HRhO1jRTrS6uv9G47MlTq1SQo3FiD6Frr7Tkb 4mTPkddTaPfhXJJTvjyRTE4371tvv2xg3GEySVGfjyphh7MTCC8RDcaDQGjsqZ4aeG0oXG3vl3y0 DCFHxG7gajzFz6aB1neJArUHIW8T5PIgG9WDPPoLkmx16E35vWEcIb18D.Ozqs16qZlvARM.djIJ 1pWxq.jKWycJf98bB7jU6nDQlGazOZKnl26ThHTnmyIhaVi3YfJTTGnWPkkQoxA3LUkLR52qGzrd _ X-Sonic-MF: X-Sonic-ID: 929a8fb8-c5a7-4a40-818d-76b437581f14 Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Mon, 4 Mar 2024 22:49:22 +0000 Received: by hermes--production-gq1-5c57879fdf-4h5cs (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 57ae5c409700701e5a8057cd0d7e3b3e; Mon, 04 Mar 2024 22:49:20 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.400.31\)) Subject: Re: main [so: 15] context, 7950X3D and RTL8251/8153 based Ethernet dongle: loss of state, example log information From: Mark Millard In-Reply-To: <87db86a3-55a3-7d55-63a6-0058e0f98c2b@FreeBSD.org> Date: Mon, 4 Mar 2024 14:49:09 -0800 Cc: Jakob Alvermark , Poul-Henning Kamp , Current FreeBSD , FreeBSD-USB Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <41913B2D-381A-4EEC-9B37-531445645F71.ref@yahoo.com> <41913B2D-381A-4EEC-9B37-531445645F71@yahoo.com> <202403042000.424K0nnR083667@critter.freebsd.dk> <42786924-babe-da63-b672-d546c41327c6@FreeBSD.org> <87db86a3-55a3-7d55-63a6-0058e0f98c2b@FreeBSD.org> To: Alexander Motin X-Mailer: Apple Mail (2.3774.400.31) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4TpYm441Byz4612 On Mar 4, 2024, at 12:39, Alexander Motin 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: at usbus4, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen4.1.0: uhub0: ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen0.1.0: uhub1: ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen1.1.0: uhub3: ugen2.1: at usbus2, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen2.1.0: uhub4: ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DSUPER = (5.0Gbps) pwr=3DSAVE (0mA) ugen3.1.0: uhub2: ugen3.2: at usbus3, cfg=3D0 md=3DHOST = spd=3DSUPER (5.0Gbps) pwr=3DON (72mA) ugen3.2.0: ure0: . . ugen1.2: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL= (12Mbps) pwr=3DON (500mA) ugen1.2.0: ubt0: . . . (I omitted the CORSAIR related lines.) >> USB ID 0x17ef/0x7205 >> rgephy1: 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