From nobody Fri Sep 16 12:18:39 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 4MTY5P296tz4cf1L for ; Fri, 16 Sep 2022 12:18:49 +0000 (UTC) (envelope-from tezeka@hotmail.com) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02olkn2024.outbound.protection.outlook.com [40.92.44.24]) (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 4MTY5M6nKgz4JkX for ; Fri, 16 Sep 2022 12:18:47 +0000 (UTC) (envelope-from tezeka@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fEOd+6W+vIsJkQt2qgSyAdfnsBuSgReg35SBf+YMcxPQyMtvvFCdEdxRTv4HcJ+cEku4OMOM4OffiU2t12lpCeic00HcqZxTPeNat273CmYgXbXvUyLk8jtxUNDynJEQXaladQiLvgUCFrENmhGXjL2s/JMuQZ5I2yQkQS1N7nx2wvNSzU5ywvkRwiAmXaLNLZWkeL29qGkqryx8MzIz/Lu46M0wU8w6TEjncJAgOJVZeKLmUBvH6l399FeF9LKHaEuTIitCbJyY5yXQfPKckJXl6TYDkPEtekWiNdklkqAMYONslHnVfkv1FPm07j9gTCQk6wNTd20lBSkBFR2j3A== 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=fOtfekFfGWWwtabuSIUWbWXSFWhaSw1LxXfFdq/PhUw=; b=SrYIFEy1TvULOrGKpj7+UMzpxYBCXPV1S0Mew6TNIfR6Dd/gbZQYBx5q+ePZPVtZ1bKJvdw/sGP5/NND0Sj3piNDitTmurLS+Xnu5H0rFTyYI9FT/LejIrGW1UdLWWEdATGw9rHPkoM+/673J3Ti760ihhDwJAY5Tr3Zz0rujHR/hlJZDiWW3z6HOhtzOPE7oxmiXaEldA3BKSz/nmfF1DKAt9R7jaNs2h7rQgVbGYGGEy1Omllw/7//XdLTr5mtCXot04YWKmIK/CKQ64TvG54d7uja55G8PQosSmSz+eNXFyDJYOA5ISPeX4D3JILtfOCQs6Qf5SJ2PDhrm12FAg== 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=fOtfekFfGWWwtabuSIUWbWXSFWhaSw1LxXfFdq/PhUw=; b=W9AMo/1OPu+GJHNFaF0pDvJvuqgEFf4tAm1BbpGDx/tOeYlE92X+3OlWDPPI/51+caGyoE6ao45l4/Ma8yvI+tSWnCY61mKnzHNH4FpN9KYwqmRzoezzBmIqnVlbOKam399awOG5apZiymxM5JhNzzusUXXshmPjLho3AQtC/afe+MKJKCxIIrtUAv16QWxjQwePjhHzvTzadhi/WfIXEAIoFDCTylhn9t7TOvhzXhnn+euOFWR1Lt8EJo5sB3x36aJqa4RmSL1J2PuLLltmVfz6g+VyQUwal0n5K8B0PvNJC0Z1olP4TscU8wTtpBLU2Bk46tYvL849/CgxCoKIiw== Received: from CP5P284MB1902.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:f3::5) by ROAP284MB0317.BRAP284.PROD.OUTLOOK.COM (2603:10d6:10:38::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.15; Fri, 16 Sep 2022 12:18:44 +0000 Received: from CP5P284MB1902.BRAP284.PROD.OUTLOOK.COM ([fe80::4f:e243:b3:f536]) by CP5P284MB1902.BRAP284.PROD.OUTLOOK.COM ([fe80::4f:e243:b3:f536%7]) with mapi id 15.20.5632.016; Fri, 16 Sep 2022 12:18:44 +0000 Date: Fri, 16 Sep 2022 09:18:39 -0300 (-03) From: Ivan Quitschal To: Hans Petter Selasky cc: Ivan Quitschal , freebsd-current@freebsd.org Subject: Re: TP-LINK USB no carrier after speed test In-Reply-To: <11b7de01-d95e-5280-2a22-8b17e29c34c0@selasky.org> Message-ID: References: <7d14c045-81dc-fc08-4d62-69fb90a26edb@selasky.org> <9188fd1d-00ae-134b-488a-e75fbd152c98@selasky.org> <5c9c47d6-9e12-ae76-ce67-15aeae1b8636@selasky.org> <11b7de01-d95e-5280-2a22-8b17e29c34c0@selasky.org> Content-Type: multipart/mixed; boundary="3432851520-1025263881-1663330723=:2212" X-TMN: [1vRuoUit4gBhO6QSvppX+hj9stI1W1kH] X-ClientProxiedBy: CPYP284CA0070.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:80::21) To CP5P284MB1902.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:f3::5) X-Microsoft-Original-Message-ID: <3ccb2b53-a5eb-c055-5948-55461e87d4d5@hotmail.com> 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: CP5P284MB1902:EE_|ROAP284MB0317:EE_ X-MS-Office365-Filtering-Correlation-Id: aed9e420-2230-47e8-f42d-08da97dd990e X-MS-Exchange-SLBlob-MailProps: C/ir7cSdGlvfvB+aWLoH0RMQISXNbg+SXfi5z+k0U0YEkSScSE93iU4XmJkGCNxYOX4QKeonKAgojX6SwmAnmtm/uSD3YhOkP2eiCG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FV0QkxLbUdVVGZPTXk4TUMyc3ZkZEd2VkNZRDFD?= =?utf-8?B?d2hFeCtlR3E0T3BJczNXY1g5bHFtcTR5cU1VbmwxazVBQmNHTUhxMEZ5cWU4?= =?utf-8?B?VkRRN2hsRC9DcE81cVhCYXFWS2dCVEw4UHJLQmxrSWVhWEd5b2RWQzNudmNx?= =?utf-8?B?UzNrZEUzK3ZqYzVnTU9MdW9vZFZHK2UzaHhvYzhKSXluT1FNeCtFcktwdTFs?= =?utf-8?B?Q1Z1dnFSRnpSZTZhUnJkZDR3YktUNWFNRmNRWFIyVzNVcVNmVlJQQVh3PT0=?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-7dc52.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: aed9e420-2230-47e8-f42d-08da97dd990e X-MS-Exchange-CrossTenant-AuthSource: CP5P284MB1902.BRAP284.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2022 12:18:44.3759 (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: ROAP284MB0317 X-Rspamd-Queue-Id: 4MTY5M6nKgz4JkX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b="W9AMo/1O"; 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.44.24 as permitted sender) smtp.mailfrom=tezeka@hotmail.com X-Spamd-Result: default: False [-3.60 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; CTYPE_MIXED_BOGUS(1.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.979]; NEURAL_HAM_LONG(-0.96)[-0.961]; NEURAL_HAM_MEDIUM(-0.66)[-0.660]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; 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]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_IN_DNSWL_NONE(0.00)[40.92.44.24:from]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FREEMAIL_CC(0.00)[hotmail.com,freebsd.org]; RCPT_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --3432851520-1025263881-1663330723=:2212 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Fri, 16 Sep 2022, Hans Petter Selasky wrote: > On 9/16/22 08:34, Hans Petter Selasky wrote: >> On 9/16/22 08:20, Hans Petter Selasky wrote: >>> On 9/15/22 17:36, Ivan Quitschal wrote: >>>> >>>> >>>> On Thu, 15 Sep 2022, Ivan Quitschal wrote: >>>> >>>>> >>>>> >>>>> On Thu, 15 Sep 2022, Hans Petter Selasky wrote: >>>>> >>>>>> On 9/15/22 17:18, Hans Petter Selasky wrote: >>>>>>> On 9/15/22 17:16, Ivan Quitschal wrote: >>>>>>>> >>>>>>>> Hi All >>>>>>>> >>>>>>>> Does anybody have any idea what could be happening here?. >>>>>>>> I have a laptop DELL INSPIRON 3511 and everything works just fine, >>>>>>>> literally everything. even the iwlwifi0. >>>>>>>> >>>>>>>> But in order to use my full 600mbps, i dont use the wireless but a >>>>>>>> TP-LINK USB ethernet connected on "ue0" >>>>>>>> >>>>>>>> ugen0.6: at usbus0, cfg=0 md=HOST >>>>>>>> spd=HIGH (480Mbps) pwr=ON (200mA) >>>>>>>> >>>>>>>> >>>>>>>> but something really strange is happening .. everytime i open the >>>>>>>> chromium e do a speedtest (could be speedtest.net or any other) , at >>>>>>>> the end of the test the eth interface dies .. it changes from >>>>>>>> full-duplex to half-duplex/no carrier and the only way to get the >>>>>>>> internet back thru ue0 is by rebooting the whole thing. >>>>>>>> not even a "service netif restart" does anything >>>>>>>> >>>>>>>> if anyone has any ideas why is that , would be appreciated >>>>>>>> >>>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> I think it some new features they use in the USB data protocol which >>>>>>> we don't support. Check the Linux code. >>>>>>> >>>>>>> Between does: >>>>>>> >>>>>>> usbconfig -d 0.6 reset >>>>>>> >>>>>>> recover the device? >>>>>>> >>>>>>> --HPS >>>>>>> >>>>>> >>>>>> Hi, >>>>>> >>>>>> Search for axge on bugzilla: >>>>>> >>>>>> I suspect you are using this chipset: >>>>>> >>>>>> Try: >>>>>> >>>>>> usbconfig show_ifdrv >>>>>> >>>>>> To know for sure. >>>>>> >>>>>> Also see: >>>>>> >>>>>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.freebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D210488&data=05%7C01%7C%7C266a987745fc4f2d0b9008da97ae1d13%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637989071335334015%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zKuhXtYc%2FG3qpRtU%2FZNr5uEeQARsGudcWIlC1bVOsLE%3D&reserved=0 >>>>>> >>>>>> --HPS >>>>>> >>>>> >>>>> >>>>> Hi Hans, >>>>> >>>>> actually the driver i use is not agxe (i thought it would be by the time >>>>> i >>>>> bought the usbcard) >>>>> >>>>> this is the module im using >>>>> >>>>> if_ure.ko >>>>> >>>>> and thank you , yes, reseting the usb entry with your command worked >>>>> just fine. >>>>> i got the internet back after doing this >>>>> >>>>> usbconfig -d 0.6 reset >>>>> >>>>> do we have a bug here then? >>>>> >>>>> thank you >>>>> >>>>> --tzk >>>>> >>>> >>>> oh, i forgot to mention that the ure driver freezes not during the >>>> download test but in the middle of the upload, always >>>> >>>> dont know if that helps >>>> >>>> thanks >>>> >>>> --tzk >>> >>> Hi Ivan, >>> >>> Yes, there seems to be problem there. I need to look at the driver. Maybe >>> it is simply sending too much data, than the device can handle! >>> >>> --HPS >>> >> >> Hi, >> >> Try lowering this constant to 8192: >> >> sys/dev/usb/net/if_urereg.h:#define    URE_TX_BUFSZ        16384 >> >> Then recompile and install if_ure: >> >> make -C sys/modules/usb/ure KMODDIR=/boot/kernel all install >> >> --HPS >> > > You can also try other values, like subtracting one. > > --HPS > hi Hans, it worked but with a cost. i tried 8192 and it works 5 tests (5 speed tests in a row). freezes on the 6th. then i tried 4096 no success then i tried bufsize 2048 and its working now, i did several tests in a row and the internet keeps working just fine. but i noticed that the speed also dropped. with the same server , testing on windows, it goes like: 600 download / 300 upload and on freebsd with 2048 bufsiz it goes like: 300 download / 150 upload so it worked with a cost like i said, i had to give up half of my bandwitch what do you think ? and thank you again --tzk --3432851520-1025263881-1663330723=:2212--