From nobody Tue Sep 27 00:24:08 2022 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 4Mc0jp12FJz4cf32; Tue, 27 Sep 2022 00:24:14 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 4Mc0jm56XZz455S; Tue, 27 Sep 2022 00:24:12 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: by mail-qv1-xf30.google.com with SMTP id i15so5346604qvp.5; Mon, 26 Sep 2022 17:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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; bh=P2xnKOfbMmkRs5+M4hB1w4HsdvkiEzihniPW7wU6QvU=; b=mi8PytvZZ3tuSt8epA2h85h1/vmqwah1qoe2K1ClMxg6k4Ny34VGDREIuEHvZIaBZa pXpOJ+tW+OuOunEOMnsXdNwmpqJ2kNSsNQWa/DkBadb2sjaWS2pMkdOjV2JnEIgjerPI DuyHS1gmgeXFANOUMgHEri6GYQ6wpwKjnJzyKxcCHwsks66mPWMC1RswOrOHqiJQoBqV RJ11OeBdc7cKc29S6BKcadScdusYP5dxEIEC1KWEJUIEoLJNNtRKxDKmjtWV3H1iXdUP DKC9MMJJypMdFEVTZuFTeyL5VeLemKQTM4rQtyelgZ930fU+p2Ylc//W5C3QKcsJUPE9 wzWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=P2xnKOfbMmkRs5+M4hB1w4HsdvkiEzihniPW7wU6QvU=; b=bkJUIkQW8wKGBD/AVEv1iSiTE4bGuBTnFDpee5N6g1gqzfUeXkyy1sgq2a76uePS72 88pi3A6KRuDaOiO4Q0m8UVz16W0L8bu5jhR8FZl4Nf5+MJMYYEfKet6SKxgl8QIpgeiR UB771lfJL61CQ3RnsdBRILamii5KEKpkc/0xPkBDCrGi7c5fJiYLpHnHlfIQdKsRNLFB L8pNDPiJZe3X6VL2jNK9XbiAP5IWOjKSnQzl5ANYZA66Qg/pMAbEgtMqrD9iQ3g8sXW1 D1vnAPTDe/uNaH3jDslBGydgUolBFYVobvlZTyD5+pbnW+CiWqDShIFANZrkeCEszpWw z0fQ== X-Gm-Message-State: ACrzQf0EK+fFIxXjbQarVszRMJl/sRxlZ2j02oUkWMr7RcM5+yeaWBm/ tFDcwslgKpEisFRpjxU4Pf0= X-Google-Smtp-Source: AMsMyM5HKTUn4VIL2iObmViPhTFILq6vDZqvprZTvRs/ap8WMBrjF+kxtDcKPPTwBSaSmiLqHiFhCA== X-Received: by 2002:a05:6214:29c3:b0:4ad:8c17:885 with SMTP id gh3-20020a05621429c300b004ad8c170885mr17842513qvb.98.1664238250098; Mon, 26 Sep 2022 17:24:10 -0700 (PDT) Received: from [192.168.1.66] (104-55-12-234.lightspeed.knvltn.sbcglobal.net. [104.55.12.234]) by smtp.gmail.com with ESMTPSA id f3-20020ac81343000000b00346414a0ca1sm11527724qtj.1.2022.09.26.17.24.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Sep 2022 17:24:09 -0700 (PDT) Message-ID: Date: Mon, 26 Sep 2022 20:24:08 -0400 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.3.0 Subject: Re: RES: TP-LINK USB no carrier after speed test Content-Language: en-US To: Hans Petter Selasky , Ivan Quitschal Cc: "freebsd-current@freebsd.org" , "freebsd-usb@FreeBSD.org" References: <5c9c47d6-9e12-ae76-ce67-15aeae1b8636@selasky.org> <11b7de01-d95e-5280-2a22-8b17e29c34c0@selasky.org> <5f646a9a-2885-05af-9ff1-ef4c4446f365@selasky.org> <9c370afb-1931-f977-16a9-4915a82ec773@selasky.org> <5bf98c30-c00f-7e7a-3a3d-c0bd5862fb97@selasky.org> <1f11b131-7031-60db-4331-d95159c5b373@selasky.org> From: Alexander Motin In-Reply-To: <1f11b131-7031-60db-4331-d95159c5b373@selasky.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Mc0jm56XZz455S X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=mi8PytvZ; dmarc=none; spf=pass (mx1.freebsd.org: domain of mavbsd@gmail.com designates 2607:f8b0:4864:20::f30 as permitted sender) smtp.mailfrom=mavbsd@gmail.com X-Spamd-Result: default: False [-3.19 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.990]; FORGED_SENDER(0.30)[mav@FreeBSD.org,mavbsd@gmail.com]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[freebsd.org]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_NEQ_ENVFROM(0.00)[mav@FreeBSD.org,mavbsd@gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f30:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[selasky.org,hotmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-usb@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 26.09.2022 17:29, Hans Petter Selasky wrote: > I've got a supposedly "broken" if_ure dongle from Alexander, but I'm > unable to reproduce the if_ure hang on two different pieces of XHCI > hardware, Intel based and AMD based, which I've got. > > This leads me to believe there is a bug in the XHCI driver or hardware > on your system. > > Can you share the pciconfig -lv output for your XHCI controllers? I have two laptops of different generations reproducing this problem, but both are having Thunderbolt on the USB-C ports: This is one (7th Gen Core i7): xhci1@pci0:56:0:0: class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x8086 device=0x15d4 subvendor=0x2222 subdevice=0x1111 vendor = 'Intel Corporation' device = 'JHL6540 Thunderbolt 3 USB Controller (C step) [Alpine Ridge 4C 2016]' class = serial bus subclass = USB bar [10] = type Memory, range 32, base 0xc3f00000, size 65536, enabled cap 01[80] = powerspec 3 supports D0 D1 D2 D3 current D0 cap 05[88] = MSI supports 8 messages, 64 bit enabled with 1 message cap 10[c0] = PCI-Express 2 endpoint max data 128(128) RO NS max read 512 link x4(x4) speed 2.5(2.5) ASPM disabled(L0s/L1) ClockPM disabled ecap 0003[100] = Serial 1 20ff910876f10c00 ecap 0001[200] = AER 1 0 fatal 0 non-fatal 1 corrected ecap 0002[300] = VC 1 max VC0 ecap 0004[400] = Power Budgeting 1 ecap 000b[500] = Vendor [1] ID 1234 Rev 1 Length 216 ecap 0018[600] = LTR 1 ecap 0019[700] = PCIe Sec 1 lane errors 0 This is another (11th Gen Core i7); xhci0@pci0:0:13:0: class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x8086 device=0x9a13 subvendor=0x1028 subdevice=0x0991 vendor = 'Intel Corporation' device = 'Tiger Lake-LP Thunderbolt 4 USB Controller' class = serial bus subclass = USB bar [10] = type Memory, range 64, base 0x60552c0000, size 65536, enabled cap 01[70] = powerspec 2 supports D0 D3 current D0 cap 05[80] = MSI supports 8 messages, 64 bit enabled with 1 message cap 09[90] = vendor (length 20) Intel cap 15 version 0 cap 09[b0] = vendor (length 0) Intel cap 0 version 1 Does the system you also has Thunderbolt chip, or you use native Intel chipet's XHCI? > Also, when running the stress test and you see the traffic stops, what > happens if you run this command as root on the ugen which the if_ure > belongs to: > > usbconfig -d ugenX.Y dump_string 0 > > Does the traffic resume? Nope. Out of 4 times when traffic stopped 2 times it reported and 2 times it completed successfully, but it neither case it recovered traffic. Only reset recovered it. -- Alexander Motin