From nobody Mon Mar 04 20:13:13 2024 X-Original-To: freebsd-usb@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 4TpVJQ0rbXz5DD9J; Mon, 4 Mar 2024 20:13:42 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) (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 4TpVJP5ZVFz4lmT; Mon, 4 Mar 2024 20:13:41 +0000 (UTC) (envelope-from mavbsd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3c1f55ba3ecso451001b6e.3; Mon, 04 Mar 2024 12:13:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709583221; x=1710188021; darn=freebsd.org; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :from:to:cc:subject:date:message-id:reply-to; bh=XPl5u1IxpWVs2bv5Jo1UAXSO7U3+o9CGzALaAUnGlFc=; b=jV9GaIuh7/wgrVAX9i99q74vNo4fVZS5Q3m6GQiwcoOr8S7+tsgqKVnO8BdLnJL4ox yYqgxiebuCafDiUBJBDhtV6cppTnjH8L7OdwBrJ/rlVLoI7+AIu+Xl51VycYO0fT5k+/ kLLJYtSxkxDXC9JDp79YEcgDFBNj/Pau2qCZuIJvwPiBRX/RLDgClIbcaDehDo9Bboig f6rABy5g4K0wH5/ZfD0EUEKphWtUm6pwnghXUY6wdfpdO7GRv36m0IQhWiBzAwen0KOu +XI+PP9EEToQtQdBdewKw46iffMak6pCtiu/NFBNjsc2iKgdBO5T2Ko31SnKD1wXcumn WOTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709583221; x=1710188021; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XPl5u1IxpWVs2bv5Jo1UAXSO7U3+o9CGzALaAUnGlFc=; b=tH3ZGVOjXT40av0PI/6fpUQ7BEE02bkR98U3rc3uq8XyIjP+lSTlCEidVPMb2EByQZ NJEWDmZwMP2L1xUrVwaGbTun0XFKuhbUKofh3LACdpJbEwuqpoiCf3bc/srMlIiJdyPb Y0WxQQ0ap/qbCGMAmcPgJrahXZjSX6Nl1/1c/751CP36ERdfXDLsbB8wWH5naLuHvKVp JoY6e6US5cPExpEz+fOhWtp0ge9mGtdENmJYZOgGIRIQjgECd6bmZe37xSao4gkcEiHe DmsyssQPCPPAv/jUWBVQGBvIEFbX/s46WTxgC6kfjEz26rir8TO0PsB1qchtvt4P1Xux 3uCA== X-Forwarded-Encrypted: i=1; AJvYcCW/rvh3MSHQk1OCoRUbKTVjoybZAofaEUj7/RN0j5QKJGUeF7SRs6n9ilfsjaL/+Kn8qT+DP8JEOQEFWLdFXB6GXOk8eeIEidfwCs4SF5gtPhcTtNfs4bXbpl0dwunC3fBstBFs X-Gm-Message-State: AOJu0YxLl7QKbXD/hch+qo7KyX1Tum+vOiEdKXfvHw//YmM2uwfrAxOD 2TDri4OEC4jsSanVqbF8L3oMnFWgafAvquzN1T5TB9YgUgQm0aKM X-Google-Smtp-Source: AGHT+IF1T8ArGDLV5jtlp5FnGhJ7UBvUmjCbzHMljWhXNTL4tCR2kJKXpsmnOPEpac6G6haNGrKarQ== X-Received: by 2002:a05:6870:a18d:b0:220:847a:14e2 with SMTP id a13-20020a056870a18d00b00220847a14e2mr11293477oaf.46.1709583220744; Mon, 04 Mar 2024 12:13:40 -0800 (PST) Received: from [10.230.45.5] ([38.32.73.2]) by smtp.gmail.com with ESMTPSA id gz14-20020a056870280e00b0022008c33ee0sm2591541oab.36.2024.03.04.12.13.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 12:13:40 -0800 (PST) Message-ID: <42786924-babe-da63-b672-d546c41327c6@FreeBSD.org> Date: Mon, 4 Mar 2024 15:13:13 -0500 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: Poul-Henning Kamp , Mark Millard Cc: Jakob Alvermark , 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> From: Alexander Motin Subject: Re: main [so: 15] context, 7950X3D and RTL8251/8153 based Ethernet dongle: loss of state, example log information In-Reply-To: <202403042000.424K0nnR083667@critter.freebsd.dk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4TpVJP5ZVFz4lmT 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. -- Alexander Motin