From nobody Mon Sep 26 23:33:36 2022 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 4Mbzbc6PMSz4YKg6; Mon, 26 Sep 2022 23:33:48 +0000 (UTC) (envelope-from tezeka@hotmail.com) Received: from BRA01-CPZ-obe.outbound.protection.outlook.com (mail-cpzbra01olkn2048.outbound.protection.outlook.com [40.92.97.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mbzbb34pZz41d1; Mon, 26 Sep 2022 23:33:47 +0000 (UTC) (envelope-from tezeka@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KLvXHFJr2jEwdmS7VeUB9bzMX3RdE/483mTgtmG1+y4cw1jd4cXN4nUHhZMhq3vvwUQgOqiGGYa4kyVVLw0aMgwglOmxG5TszJ9JxK0PMgYRpZ6UwYEykH9GYP9HabyHN14+tSHebCd2bDphG4MieIhm2XSrkT/KGA4tVR13ULjfzuP8XbgCyMw24cnEHFCgSMuz4Sqsg5nPUl+r5DAbMK6pVCBluaOvknvIGqKcImAM25mSUzRzKKsabl4/dNxrAYaCAvZVjGtpmEJTo7ToxPQ6CfppSz5G6EKTJqzYCEjb8g+X3yC3DdVsiugKG+LNJYh7nqegkU03jLW1ZNKOIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vrXlc8knbXyQ/7nb/3hb7yzeRS1+xZHSW9srlDn1dn0=; b=lJKEJTyONz9G4U7gT00M1OrgWd+18WTM2WiN1nD2dyhkZf0rJHMVzvXY+ssnm5XWrmIn/3qvYkXKfe95cEowY2cJdY5M6jcOw3Fgh7/XtpCYMrUOJQnv/5W2RkxhLBHNNh18wVtpK3Cxykjfn4uQk9qFfZHc5Xuv3YoeHzPQl3rYn8IRzVz0d5deQUTz2634x9bmm/qMvRBZ2UZ3vquzh+fscqJ6+qUsvQbYCIyl5sGHpchNjIGZeiQgQqTYGT2jiLosV9B1k7JQ48uqw+lJOdw7fKhNSlQMSXTbxG6KY1FUYdM5iWVr866QpBlcz2co8OtK5/1NreW0RtPoOMrWGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vrXlc8knbXyQ/7nb/3hb7yzeRS1+xZHSW9srlDn1dn0=; b=G2TQaXPPU10uyaC3w2CcDJB5ps456D+EmJ1ivwXiDgbJu7ul3aC6cZqhW6mLuiwOCJI7yZbJwP7xNuTJmfbFLwswtYgUU/X+DxePvjzsXSBSIAndN1xKDdY8bYWW6+ATEqCpDqyotINS2ISQzbGrxjOMrAo7VrgMYSdIZtB/kWhXOjUxOHdddOSU+ZxnDoIrYc/GVsLwpAceZ4OErF1dH5S0WSTnWfJXlqFHjuhgh99X8pMeTpoquzBoaq+n8ye8nl4xGiyukLgVyxr/zUqTUNJSV8tSjJdMPlCuRVU6znQSvafDpI51DLlSut1z8/CAopE+N+hZFYimoTJaQ3sBIA== Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:118::12) by CPZP284MB0214.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:38::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.14; Mon, 26 Sep 2022 23:33:42 +0000 Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::97ca:1c5:b250:8f79]) by CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::97ca:1c5:b250:8f79%7]) with mapi id 15.20.5654.025; Mon, 26 Sep 2022 23:33:42 +0000 Date: Mon, 26 Sep 2022 20:33:36 -0300 (-03) From: Ivan Quitschal To: Hans Petter Selasky cc: Alexander Motin , Ivan Quitschal , "freebsd-current@freebsd.org" , "freebsd-usb@FreeBSD.org" Subject: Re: RES: TP-LINK USB no carrier after speed test In-Reply-To: <1f11b131-7031-60db-4331-d95159c5b373@selasky.org> Message-ID: 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> Content-Type: multipart/mixed; boundary="3432851520-1520251259-1664235221=:1871" X-TMN: [Z9r7HdgSaFFZp+uXvZu14unQq2BW0D6q] X-ClientProxiedBy: CP3P284CA0114.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:6f::29) To CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:118::12) X-Microsoft-Original-Message-ID: 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 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CP6P284MB1900:EE_|CPZP284MB0214:EE_ X-MS-Office365-Filtering-Correlation-Id: 31fd4c94-a48a-4c09-de0e-08daa0178c00 X-MS-Exchange-SLBlob-MailProps: CLk2x5O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iNkxxWnVpVm5yNVRxQmt1YVA2a0VJdGdaN0lj?= =?utf-8?B?U3RYTnZ0aFB1OXlqNXFrL2hsZG1lbTM1V0hlei9oQzZlYWttbzFvbTJ6VDNv?= =?utf-8?B?VnFyYi9IQWVOUExJMUZXcitkQ1FYMlo4UUtBd1FHTUl3NDJuckNYcTVSWDU0?= =?utf-8?B?Q2dHWnhKSHkwSjRyRzU2ZnpDbG9aT0J6L3FRRDEzN0VsRmRNOXIxWlZzblJ2?= =?utf-8?B?VmZVTFFvWUVyWGhCd0FoODd3ZmJKS1NlcFdyYklKQnFtWlJnaGhtVU00TXdP?= =?utf-8?B?WVhzRXZHK3FlY01PZGV3QmlDeVgzR2hnd0F4N0JRSlBMb1FVUGo0amN3PT0=?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-7dc52.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 31fd4c94-a48a-4c09-de0e-08daa0178c00 X-MS-Exchange-CrossTenant-AuthSource: CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 23:33:42.8028 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CPZP284MB0214 X-Rspamd-Queue-Id: 4Mbzbb34pZz41d1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=G2TQaXPP; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of tezeka@hotmail.com designates 40.92.97.48 as permitted sender) smtp.mailfrom=tezeka@hotmail.com X-Spamd-Result: default: False [-2.76 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; CTYPE_MIXED_BOGUS(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; NEURAL_SPAM_SHORT(0.24)[0.241]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[40.92.97.48:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-usb@FreeBSD.org]; RCPT_COUNT_FIVE(0.00)[5]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; MIME_TRACE(0.00)[0:+,1:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[FreeBSD.org,hotmail.com,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N --3432851520-1520251259-1664235221=:1871 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Mon, 26 Sep 2022, Hans Petter Selasky wrote: > On 9/26/22 21:28, Alexander Motin wrote: >> Ivan, >> >> On 26.09.2022 13:11, Ivan Quitschal wrote: >>> bad news im afraid, problem occurred at the first attempt on >>> speedtest.net. >>> and I'm really trying to help you analizying this code here myself, but >>> problem is: im far from expert on network protocol business. if it is a >>> network problem at all. seems to me more like a USB protocol limit issue >>> or something ..  just FYI , limiting that first constant to 2048 still >>> limits my  upload to 90mbps , and also still solves the issue .. there has >>> to be something about it obviously >> >> On my tests I found that reduction of URE_MAX_TX from 4 to 1 actually help >> a lot more without so dramatic performance decrease.  Though it is likely >> only a workaround and does not explain the cause, so I hope Hans more ideas >> for us to test. ;) >> > > Hi, > > 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? > > 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? > > --HPS > hi Hans without any patch , the actual code on repository pciconf -lv xhci0@pci0:0:20:0: class=0x0c0330 rev=0x20 hdr=0x00 vendor=0x8086 device=0xa0ed subvendor=0x1028 subdevice=0x0ab0 vendor = 'Intel Corporation' device = 'Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller' class = serial bus subclass = USB did the stress test, got the problem, then i tried the below [root@tzk-inspiron ~ ]# usbconfig -d ugen0.6 dump_string 0 STRING_0x00 = 0x04, 0x03, 0x09, 0x04 [root@tzk-inspiron ~ ]# nothing happened, still no carrier. in order to get back the internet i had to [root@tzk-inspiron ~ ]# usbconfig -d ugen0.6 reset --tzk --3432851520-1520251259-1664235221=:1871--