From nobody Mon Mar 4 20:39:39 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 4TpVtx5nGdz5DFtW; Mon, 4 Mar 2024 20:40:09 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TpVtx43K1z4qjH; Mon, 4 Mar 2024 20:40:09 +0000 (UTC) (envelope-from mavbsd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-21fd278aa74so2915028fac.3; Mon, 04 Mar 2024 12:40:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709584807; x=1710189607; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=udVaEEgECnW+wHpyXpjUR4VNP4SBoZ7kmzCOavO23Hs=; b=lnA6yLliUggNA7AXxnztxmNQ9SdBGb7npLrRPAetIRzZbr3OnRVqWjNXCDLF9Qztkf 8/mmuszSSQsAjW95RdmGohaclq0Zl7yKJTrfsK+uqEt4KX+04gAA25lBtzpJNtYhPck7 Acz+IvfYgcogxVcF6YcU57nYDCecd/J6Hh0X8ZdZ9mLUksNlAX0DPrY2GC7F52GW984w pn6lv1/rBj2KC1nXmR8c7Eb7JPBL1O4gsiOgeduWU6t5zYoGFKp0Uy8nxjuHFNKoJzPb iRotLt1jheKBnBjyWkmoF5iRIt2x3knGuwOCyWCv/U6AT17O8M7pMvuaEpqxr+uifgT6 wENw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709584807; x=1710189607; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=udVaEEgECnW+wHpyXpjUR4VNP4SBoZ7kmzCOavO23Hs=; b=oGjgEM3tQZdXahZmsweAiTNZi++Jh7oA+14XgYCrnrlwGYnHDWneHsMP319Bw6Lrnu ++O9vxqf00uetRXCDv3Z2f9vV25mgqv2kFashOlydAHiIIyfEL9J8N3ujBibR4t0VqAA 2SbktxQGf+he1Ofx8r4ZSbOzpas1/xuFW+T3hrmhxKMpkZqrPy6UyKEFc3w1MDfH2XqM 1YI/tAQAMCM/eLMPgGF2mSYHuELM3Dj9AO075eY0tvyDMbhKEVZ1jU6g0Rgsbjzg5Imw RQCXP/UiO3bPaBR/gcAMbzdPAJ2B5YA5Z3FVte6iGXnd4EtlSzGa4xHPvxPp2OIMISW8 IByw== X-Forwarded-Encrypted: i=1; AJvYcCVq0R2SQv4LzKc8L1OdfJcms0XBkvTUA8K7kEv2dNCGS2glZgaQ6rrYIUnhNgpd0eoPyo0/q7sOAvTWcsTztiKxwoyRrL+k1g== X-Gm-Message-State: AOJu0YwgA023qSt6MLtuvz4UiGpDlWNHd9wNAlq1U9Rcq/qyalK2uO6J AhSBduCwJv+wVd4TTetQYByqQcZw9KKiH9Xp0DcQkiXfjsOreEmxlF69OrcT X-Google-Smtp-Source: AGHT+IFL7/ptt7zhh6VDsrqG0xVld2rKKS7SMacutY/1jTed9mNp7xTU+OckSYM80K54UhbbN+Y3Tg== X-Received: by 2002:a05:6870:c6a0:b0:220:bb45:21b9 with SMTP id cv32-20020a056870c6a000b00220bb4521b9mr11664609oab.6.1709584807371; Mon, 04 Mar 2024 12:40:07 -0800 (PST) Received: from [10.230.45.5] ([38.32.73.2]) by smtp.gmail.com with ESMTPSA id ns7-20020a056870ac8700b00220a0b057f4sm2303940oab.10.2024.03.04.12.40.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 12:40:07 -0800 (PST) Message-ID: <87db86a3-55a3-7d55-63a6-0058e0f98c2b@FreeBSD.org> Date: Mon, 4 Mar 2024 15:39:39 -0500 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/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: main [so: 15] context, 7950X3D and RTL8251/8153 based Ethernet dongle: loss of state, example log information Content-Language: en-US To: Jakob Alvermark , 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> From: Alexander Motin In-Reply-To: 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:15169, ipnet:2001:4860:4864::/48, country:US] X-Rspamd-Queue-Id: 4TpVtx43K1z4qjH 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 >>> >>> 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. 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. > 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. -- Alexander Motin