From nobody Tue Mar 5 19:08:50 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 4Tq4qJ5PfKz5DFBr; Tue, 5 Mar 2024 19:09:00 +0000 (UTC) (envelope-from jakob@alvermark.net) Received: from out.alvermark.net (out.alvermark.net [185.34.136.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4Tq4qJ3Vgzz4YRb; Tue, 5 Mar 2024 19:09:00 +0000 (UTC) (envelope-from jakob@alvermark.net) Authentication-Results: mx1.freebsd.org; none Received: from c-bc4d235c.06-431-73746f70.bbcust.telenor.se ([92.35.77.188] helo=mail.alvermark.net) by out.alvermark.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96 (FreeBSD)) (envelope-from ) id 1rha7k-0009uH-0e; Tue, 05 Mar 2024 20:06:48 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alvermark.net; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UXspc7VsVKAldlfYmINEATN9WJqBEJfgWaB5xb2WVYU=; b=ggs4EoTm9DcJEGvht8qf1s9FTa qskugt7yyyxm7WVcQuz8HFJUaF762A1b3Sg7kMmCprSS3p6lVTvPcyQTQ3aWIKdaB+surDXsa37w1 ALhxN7VdU81NhtCtxt5yDt7SyguIeJHq9EaH0iiPHpkGAT9byXVhNg87UPFx6F5iLhtjoUTQVQxge sPnaov+Y1PW2GmhGmJE7HpgJz4pob9rrnWgENPAf+/J+kwHt68b3xltNm10kY5WwNCKYVLL2GdnR1 9YsS+IDVAJfjnxbJVdiJPbwl03QGLk0gaISG/sR8NotQUcOk5U+jv2RGFIXfWwg5J+YlffEI2pePf zFsaNAkA==; Received: from office.as33885.net ([84.55.65.101] helo=[192.168.10.2]) by mail.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1rha9j-000GIK-9A; Tue, 05 Mar 2024 20:08:51 +0100 Message-ID: Date: Tue, 5 Mar 2024 20:08:50 +0100 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 User-Agent: Mozilla Thunderbird Subject: Re: main [so: 15] context, 7950X3D and RTL8251/8153 based Ethernet dongle: loss of state, example log information To: Alexander Motin , Poul-Henning Kamp , Mark Millard Cc: Current FreeBSD , FreeBSD-USB Mailing List 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> Content-Language: en-US From: Jakob Alvermark In-Reply-To: <87db86a3-55a3-7d55-63a6-0058e0f98c2b@FreeBSD.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:34971, ipnet:185.34.136.0/24, country:IT] X-Rspamd-Queue-Id: 4Tq4qJ3Vgzz4YRb On 3/4/24 21:39, Alexander Motin wrote: > >>> 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. > > 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. I don't think (how do I know?) I have thunderbolt in this Lenovo AMD Ryzen laptop. > >> 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 > > Right, I saw about the same. > Just to try something else, I got another USB dongle, I does the exact same thing: ugen1.10: at usbus1 axge0 on uhub6 axge0: on usbus1 miibus1: on axge0 rgephy1: PHY 3 on miibus1 rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow ue0: on axge0 ue0: Ethernet address: xx:xx:xx:xx:xx:xx ue0: link state changed to DOWN ue0: link state changed to UP ue0: link state changed to DOWN ue0: link state changed to UP ue0: link state changed to DOWN ue0: link state changed to UP ue0: link state changed to DOWN ue0: link state changed to UP ue0: 2 link states coalesced ue0: link state changed to UP