From nobody Fri Sep 16 14:31:16 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 4MTc2K1CpWz4c4RK for ; Fri, 16 Sep 2022 14:31:21 +0000 (UTC) (envelope-from tezeka@hotmail.com) Received: from BRA01-CPZ-obe.outbound.protection.outlook.com (mail-cpzbra01olkn2069.outbound.protection.outlook.com [40.92.97.69]) (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 4MTc2H75W3z3WQp for ; Fri, 16 Sep 2022 14:31:19 +0000 (UTC) (envelope-from tezeka@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MMevikk8jFLSsF6A2VDslP3UUh2MGRkF5Pq09GxuE15eO5HaNkZXNM4gc0HldZFyfcFTIiyzfkvezg3T7X452pYswLhaUyk5wuXOSub27FCAYa56Qe4gJAM6j7JAs0txF5RoLNMbnw4okvlbo6Chg8cOSGx1cz6CcUiLMdzsR6kZd+HTzCav5DTg48YickUdC0sERBNISaaVZr06mMouPjSo4egEs9xIUDQYY/X8igB1DfYtzWXfAA+K9QOGKjuN70+0viG4jnwwcz121mxw1ZCyM08LQ+gEKmy+smvO978j3emB+SuE9XHI5DdY//v8rTPWU2EFwwowL4SMHG1ynA== 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=CWKsE5m/W5pzwEs2+MOXr95rDDiujbTCBc4BccPqzHQ=; b=Ns+AhXQCUKNGwCku3Rt3nDkexm286qrxK4DRDuqOB5YD6uzVw9Dh6Dh5dPI8/CWYcxZJXAyCfJ2iv0o3sbj9j/rYjEIzicJb9x+k4pkAyozbm8xADg+VQYkzSaPBIKV8kFQs0g8TVcEj+iNGEgMAW+ufGaJJu4wACuIZXMmbTrQR9AmmOG5Bkz8shsQyPrcVpTxtxP0D/iGtpMoX0hyQgA3rp23cwdwingYNhCa9EidJb7DFo+VkkGw8e3h1ZZDTxBq1tXMtxSFYW6IhXYKriQ8PwKV2qcb4KTW4mD7iZoragcm0Zm+0QTfEX4xf/QnMu8PC03Qfg9CfYsRKzCQrlQ== 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=CWKsE5m/W5pzwEs2+MOXr95rDDiujbTCBc4BccPqzHQ=; b=JKnONeYnH64Ac+OdQevU6zbr/AoQp8ZK0pIdqB4bFk8+9RK4NyWzxf9gsfP/C5RyM/WTE35ykxHIMFyjaaPoe1OibUUimT3VpmTXeStt/dPLjM2/f5DqAhDV7mX+4kqSu48V3rC0YC6+mYFd2g03sZP+LNt8wncLcocpr4fX75HqqRNn1bEHZ7X00nS/NPIK1mkEmaiPr3ZwLewO9sQeIHoyKMWaIAEQQ8UmWA1sHtfWxMfr5tNLlhlrIHlQ4bD3Pzdnh3/Xj44aFOs6grbDLwZhBWt+zUtO+wa+wgH1pJrofK7NE9F83nBoNetg0gg/0OInISPgpV7gKNto6DlA1g== Received: from CP5P284MB1902.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:f3::5) by CPYP284MB0164.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:76::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5612.19; Fri, 16 Sep 2022 14:31:16 +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 14:31:16 +0000 From: Ivan Quitschal To: Hans Petter Selasky CC: "freebsd-current@freebsd.org" Subject: RES: TP-LINK USB no carrier after speed test Thread-Topic: TP-LINK USB no carrier after speed test Thread-Index: AQHYyRYh90zfGba+7EWJS9V+b+FDta3gmrWAgAABUgCAAALNAIAAAPyAgAD2/ICAAAOngIAAAU8AgABe+YCAABa8gIAADhYQ Date: Fri, 16 Sep 2022 14:31:16 +0000 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> <5f646a9a-2885-05af-9ff1-ef4c4446f365@selasky.org> In-Reply-To: <5f646a9a-2885-05af-9ff1-ef4c4446f365@selasky.org> Accept-Language: pt-BR, en-US Content-Language: pt-BR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [Z8P7yPYxrzpGzwjC6RYvvyv7aU0uDQoJaRGqmMEwRLdnAO9mUs1PaD4sNgLmRS8l] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CP5P284MB1902:EE_|CPYP284MB0164:EE_ x-ms-office365-filtering-correlation-id: a2e62400-6d51-4cad-22cb-08da97f01d1a x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OBp5SSf1rXt+/dNCBENQQo1DrHSf30p17SmbapwU+CJat7HV3C0husI4mGNokRNx+GIDbnTlDm6aNBiF97DrkwjYPoisREU04dcHl8f2gLt+RcsyQUMECVE/lVfABWSfLyNfTx7lMbzg9Q8GymSau2KPl0aHATwlgwPdlt+G8HbfM6DY58lUqJsv7fXe56Dn1XD74AeO39jj+/VBGpMRy3hJy18eDk+pn449CaSQ3MbCz934zy81ti9D1GT3BDCWIrrVJBJDVlRmp10ZpoYd32OpqroGwV/9NFL5QJv5DfnoOhxRCAlXl+VJV/hSL6t1ukeBDCVYCA3GK/ix8g3NZshs8WixEJ9cXHWJINH4HI9QujwYfeRgugFfWO4JCU09G+E643AW2bZ8o5pt4oQl5P9o3G9aJ+cvgksBf5a1aEvorvv9zZh5D68AFtYN6HgvUeRKZvqADt+0tVPIexsyTww6CgN/C29LeC/Ca3xqQbGZDRr6ucZbspqRmk4w5WF/dA8NoDBxoz30nJx0uoBLzXQ+4IAazARF86FVACuul4O3pVe0iKNlkJP2HSO/8nndZ4tpiqOuGii07+fRD6Bx6ndK/cxs87FuvlarRkGuz6Y4J5U+5kCjUJPfalRXMAfV x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?FfCFlYYQ3tdVNMjhVp74Ec8IU+VElGwvVKE2R2FTk+oLcGHUlJL40UEagQ?= =?iso-8859-1?Q?iennRoh+lULE+290Q2rdCayPfpB85BAnCdio3GiOijRRSCsXXPx3P9nLTq?= =?iso-8859-1?Q?8azxwp4IMoamrtupZHlqFIeEbUG4vspKG2ssgwoAEQXq+dx+EILnJiCt15?= =?iso-8859-1?Q?cAIYXbVIgPQvaTxOqytprSmHz3jyO9WNfjCcx40weWgR+AfkMLaDv7fGM1?= =?iso-8859-1?Q?xn34Kybd74buO4Eqj1ws1aACRKoyEil0HqmvbzFl9gpBrwY2VOi6EHcqBM?= =?iso-8859-1?Q?/WxEu56ZHaiA29EGIzh6uDIHRppz3QzM4mDMswDJPAEzpu8BNW6gChQUem?= =?iso-8859-1?Q?TXPOiIrHHImDsRMfaSRwzglwBFOt8U49ywd/J4oZY9CWw4k+oMwzGf2UX7?= =?iso-8859-1?Q?DINSEmB0TZ/AYp7au/D6xpeEroCenhGIIOemvF3KPWRKagBKX+FC4kupfq?= =?iso-8859-1?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amOoQSO+6Ci+N?= =?iso-8859-1?Q?O9JniiS90Z?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-7dc52.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CP5P284MB1902.BRAP284.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a2e62400-6d51-4cad-22cb-08da97f01d1a X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2022 14:31:16.1364 (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: CPYP284MB0164 X-Rspamd-Queue-Id: 4MTc2H75W3z3WQp X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=JKnONeYn; 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.69 as permitted sender) smtp.mailfrom=tezeka@hotmail.com X-Spamd-Result: default: False [-4.90 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.98)[-0.981]; NEURAL_HAM_LONG(-0.92)[-0.921]; 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)[text/plain]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[40.92.97.69:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[hotmail.com]; RCVD_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; RCVD_TLS_LAST(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > -----Mensagem original----- > De: Hans Petter Selasky > Enviada em: sexta-feira, 16 de setembro de 2022 10:40 > Para: Ivan Quitschal > Cc: freebsd-current@freebsd.org > Assunto: Re: TP-LINK USB no carrier after speed test >=20 > On 9/16/22 14:18, Ivan Quitschal wrote: > > > > > > 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=3D0 > >>>>>>>>> md=3DHOST spd=3DHIGH (480Mbps) pwr=3DON (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=3Dhttps%3A%2F= % > >>>>>>> > 2Fbugs.freebsd.org%2Fbugzilla%2Fshow_bug.cgi%3Fid%3D210488&d > >>>>>>> > ata=3D05%7C01%7C%7C7d0b875611fa4c22aa6808da97e8f75a%7C84df9e7fe9f6 > >>>>>>> > 40afb435aaaaaaaaaaaa%7C1%7C0%7C637989324107373931%7CUnknown%7C > TW > >>>>>>> > FpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLC > >>>>>>> > JXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3Do%2B12TNKJ4bcBBj1b4r4TT > 1f > >>>>>>> xyEalCMDMjOepy3MZm5c%3D&reserved=3D0 > >>>>>>> > >>>>>>> --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=A0=A0=A0 URE_TX_BUFSZ=A0=A0=A0=A0= =A0=A0=A0 16384 > >>> > >>> Then recompile and install if_ure: > >>> > >>> make -C sys/modules/usb/ure KMODDIR=3D/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 >=20 > Hi, >=20 > Can you try this instead: >=20 > usbconfig -d X.Y set_config 1 >=20 > X.Y are the numbers after ugenX.Y >=20 > Then it will use a different driver. >=20 > --HPS Hi Hans,=20 After the usbconfig -d X.Y set_config 1, the interface doesn't work anymore= , how can I undo this? Thanks Ivan