From nobody Mon Mar 04 20:33:06 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 4TpVl13zTPz5DFH4; Mon, 4 Mar 2024 20:33:17 +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 4TpVl11vLzz4pTN; Mon, 4 Mar 2024 20:33:17 +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 1rhExk-0008iD-04; Mon, 04 Mar 2024 21:31:04 +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=R0GWLAECAHTwG0mqQb+NTB031gfBJ4NU7UcO9wh83GU=; b=nNm8gAXLES8ReS41lnanwVD8gl FgLX6WPKbh1HUXONjVvOmLlZ2u9FDU+Y7Q7JMsWWnlMutzzSCDlC2y3SToj5UZPA+vWqnlLoDCmIp Q+L5ipviwq1TiWwiUUu6TDTF2p0EWWtPYiq6XYlwg/MOz7btHSNN5NUS7pRrEH1LbfkWLVD+aEYEf yJAv+ePGNjth0Fh3AjnfyDIjUlrEEa1keK0L0yuNqk2h5uSUyatSMZyvCu5GE5n5g5xf7ymJCr3JA r2kbiC6kHZxMQDvTkuZVlqM+yG/jV0Mq+xNXmCWO26ccQkRz4+Gze0nLJe+poOdh49YHJPwZrcipb eCWNkcJQ==; Received: from [192.168.67.48] by mail.alvermark.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91 (FreeBSD)) (envelope-from ) id 1rhEzj-0000fM-8N; Mon, 04 Mar 2024 21:33:07 +0100 Message-ID: Date: Mon, 4 Mar 2024 21:33:06 +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> Content-Language: en-US From: Jakob Alvermark In-Reply-To: <42786924-babe-da63-b672-d546c41327c6@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: 4TpVl11vLzz4pTN 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 >> >> 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: >> >>          /* This works much better with if_cdce than if_ure */ >>          USB_QUIRK(LENOVO, TBT3LAN,  0x0000, 0xffff, UQ_CFG_INDEX_1), > > 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. 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 Jakob