From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11435 invoked from network); 1 Aug 2022 16:29:31 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 1 Aug 2022 16:29:31 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 5B201231E0 for ; Mon, 1 Aug 2022 12:29:30 -0400 (EDT) (envelope-from bounce.mM829ca30175f489f095e58ae9.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 570502F00DC6; Mon, 1 Aug 2022 12:29:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :subject:message-id:in-reply-to:references:date:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1659371370; x=1659457770; bh=BaboK3KsV/u47q5cCaDOKYbH239sBzdY bTcS3PhHsh4=; b=AwhseT52uA0A29xPMRxn80YM1U61D4w09kBBXa4jvusHErWr aMxPdvfE7ipFOQ59phJ4afSjiQMgQan/hJILzQPzm2SLxveDw6MhkjmyI5kjFgcd PTqt7QAtflRJVQFTO3E0eBrrOeX4jSE0kTSIpyEvOaXMW1cHSBseeoGuqt0= From: adr@sdf.org To: 9fans <9fans@9fans.net> Subject: Re: [9fans] USB3 1Gb ethernet card working on 9legacy (rpi 4) Message-Id: <16593713580.F1ef9C5A9.763092@composer.9fans.topicbox.com> In-Reply-To: <093ec4619e7568c054a825f5d5d8cc7f@hamnavoe.com> References: <093ec4619e7568c054a825f5d5d8cc7f@hamnavoe.com> Date: Mon, 1 Aug 2022 12:29:18 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=16593713581.0fBEa3F.763092 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 17a640ea-11b7-11ed-98a6-6bbf232d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNjY4NjQzZDExMTQ5ZmFiNC1NODI5Y2EzMDE3NWY0ODlmMDk1ZTU4?= =?UTF-8?B?YWU5Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M829ca30175f489f095e58ae9:1:olfENz5tSKfKbKhXe4gOhXOiGOxWNzH9Nk2I_0jOorE --16593713581.0fBEa3F.763092 Date: Mon, 1 Aug 2022 12:29:18 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I've been experimenting again. With etherusb in the kernel, usbd is triggering usb/ether and the device is mounted at /dev. I don't know what happened before. But there is no etherusb device. ; echo noauto ether > /dev/usbdctl (unplug and plug again the device) ; sed /ether/q /dev/usb/ctl ... ep9.0 enabled control rw speed super maxpkt 512 pollival 0 samplesz 0 hz 0 = hub 0 port 1 rootport 2 addr 7 idle 255 csp 0x00ffff csp 0x000602 csp 0x00000a vid 0x0bda did 0x8153 Realtek 'U= SB 10/100/1000 LAN' xhci ; usb/ether -ddd /dev/usb/ep9.0 [...] ether: ep in /dev/usb/ep9.1 maxpkt 1024; ep out /dev/usb/ep9.2 maxpkt 1024 usb/ether: etherusb bind #l0: bad process or channel control request usb/ether: etherusb bind #l1: bad maxpkt "bind cdc #u/usb/ep9.1/data #u/usb= /ep9.2/data 00e04c680cfb 2000 1024" usb/ether: etherusb bind #l2: no free devices usb/ether: 1 buffers usb/ether: dev ref 3 usb/ether: etherbread usb/ether: fsadd etherU9 So bad maxpkt... etherusb check for maxpkt < 512 which is the max for bulk transfers in usb2 high speed. Using 1024 instead fixes the problem. Should it chek for the speed of the usb device and set the limit accordingl= y? ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T668643d11149fab4-M829ca= 30175f489f095e58ae9 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --16593713581.0fBEa3F.763092 Date: Mon, 1 Aug 2022 12:29:18 -0400 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've been experimenting again. With etheru= sb in the kernel, usbd is
triggering usb/ether and the devi= ce is mounted at /dev. I don't know
what happened befor= e.

But there is no etherusb device.
<= /div>

; echo noauto ether > /dev/usbdctl
(unplug and plug again the device)
; sed /ether/q /de= v/usb/ctl
...
ep9.0 enabled control rw spee= d super maxpkt 512 pollival 0 samplesz 0 hz 0 hub 0 port 1 rootport 2 addr = 7 idle
255 csp 0x00ffff csp 0x000602 csp 0x00000a vid 0x0bd= a did 0x8153 Realtek 'USB 10/100/1000 LAN' xhci
; u= sb/ether -ddd /dev/usb/ep9.0
[...]
ether: e= p in /dev/usb/ep9.1 maxpkt 1024; ep out /dev/usb/ep9.2 maxpkt 1024
usb/ether: etherusb bind #l0: bad process or channel control reques= t
usb/ether: etherusb bind #l1: bad maxpkt "bind cdc #= u/usb/ep9.1/data #u/usb/ep9.2/data 00e04c680cfb 2000 1024"
=
usb/ether: etherusb bind #l2: no free devices
usb/ethe= r: 1 buffers
usb/ether: dev ref 3
usb/ether= : etherbread
usb/ether: fsadd etherU9
=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

So ba= d maxpkt... etherusb check for maxpkt < 512 which is the max for
bulk transfers in usb2 high speed. Using 1024 instead fixes the pr= oblem.

Should it chek for the speed of the= usb device and set the limit accordingly?


= --16593713581.0fBEa3F.763092--