From nobody Fri Jan 19 14:24:19 2024 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 4TGhhC6ZJDz56bQs for ; Fri, 19 Jan 2024 14:24:27 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TGhhC2l7Vz4tvl for ; Fri, 19 Jan 2024 14:24:27 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1705674265; x=1706279065; i=garyj@gmx.de; bh=qoAV//v7QBF8rEqMzstiXgOrGxOn3+4TqcxzW/wNZ7g=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References: Reply-To; b=M4wifqt0XzgIeF0UEpGNGXcUdWiuinsRJISJygi+kbogZl2ZWaNOvbxAlOXU7nuE x2nXaL7X01zV2tWXPypn7CVv0CuyYxrS6ReCgll6wbNLwhP+OazMqzMOynTRbM5Sp 6YL6XMK2tfNQmt1mPIkni5u5lR0ew9sok4CoNRjogZImWGPiaRVkLvZicwoWo1gDd aeFxj4IsE7DbxvBoHH6ovvzLKAKkgnxqDegJPWDh8uXHAfUC+qweyc04Mc4LsEsZX lLs9IlA3IakQGQXMuAdnEQshPZQvlfBWZCtb2627RzoVRW2smIoq2zeedzMSXfD31 dTnWBp/n27XBYdG+yQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([91.59.224.160]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOREc-1rlGsw3T02-00Py8u; Fri, 19 Jan 2024 15:24:24 +0100 Date: Fri, 19 Jan 2024 14:24:19 +0000 From: Gary Jennejohn To: Matthias Apitz Cc: freebsd-usb@freebsd.org Subject: Re: USB key is 2.0 or 3.0 Message-ID: <20240119152419.03ddec41@ernst.home> In-Reply-To: References: <20240118142634.69f7d675@ernst.home> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:o9/qhMls8sPa2gU8yx0tdq4L7l/gYw0HR59mCF2eh6753jtEP4E XDo/LpyEFA4Kupr2RKnLM/HZYN7X5OXiQq9aOMLN8C1fKqMBLa8QiYZMxU4v3ZyJCQFyL4u 5rngBcSaI8J0XB/Ek2G79HKz46qR9DrtGc4s8qBuwjfHspJNJlx4ZZUs0fcDj58O6O5LoVg Mn4N4o1xuVPWUB+zmyS+w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:eIXmbaraXzI=;ikHHodcE2xCCVyWM7aUaT5O0XR3 NmiyYFe5t1qYz68Tihbmep2o7d1rc2TM9WGUaZ2XSadlrjDqoufc85nUgsM/qtg9WwZHINbH0 Vi+pslwM+sneYWwsdRCeivbW2lThr7va+E3HyApZQVpDwnTHL/4qPIZl4ZsVWn//dRJL07oO3 DJO+DsFLQYOb93z8VxIDetg9MLK3Y7H3Sb1Kd+UtZAOT+fWJfQ6HnD56FvicNi9GyDv1+biv6 GLReyN8egSuLS+Plydd4IcdtCtBusPaaSnR866wA8SXL44Vyk34vNCJRnH9eeWvpF3ba3/YLv NHlV519PKEPXNg/fiih3GoNDk/KuikDY6quo0qMuEm8rqembLMN68Q+2tFRuzRLgaMoCuMMhd FJtd6+dAh6JNW1eT5RuSoNcg5kXOPYeJTYM+X08gErMg+TK+BMxgcbO8HSNCnzcVZ6iih0RSG MF6mcfx0Xc6lplFwMfLEAncGuiVCLpdWj0jhiexRgR/x24TxRqqto4hWfXh/5Vd65yVynb0v/ gfLVb0K/oFnvtvyZ67/xGirKQeofkfvYraLzD4FF9gXqHt2sm+dDDh0vyATeqxs+K8tK09STh NJtwUXRPg3iIA2h3ILJqBZd0lFNgRNVB9BbgWRP6iAMTMgJeQiahOc6vKlmeX6BpcflhdGis/ Uw26VLJjlLVGku1zLfpcE48Ku5qXxutto3zfPpPNMV6rjiN31+/uktn99g4ZULELaQhcKO5V/ CGspHKnbiZMgZ8tDRTWQTNZcQpg3kzJRdEGMnK0D4G6IsVAbCHOH+Q/mTWcBQGBWbRPs7pMw8 aWmChmQSikqFKVD58oBcyuLv5O5IU5mZOBUq7grQuF8wKCmhChf4bqTmFQHtbHtJVCcNLOMlC iOVKeIWGslfjjcL01xd0W/AHKMj9a86IWsT7GJi3mfhkf0Fco0IZKuWrZD9q5EVeFEXVaJG/F IsZohv/DhtX4xcfWJ2Rk8gJzjFg= X-Rspamd-Queue-Id: 4TGhhC2l7Vz4tvl X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] On Thu, 18 Jan 2024 18:30:34 +0100 Matthias Apitz wrote: > I've two new USB keys, both claiming on its wrapping USB 3.0: > > usbconfig -v reads from them: > > ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DON (200mA) > ugen0.4.0: umass0: > > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0210 > bDeviceClass =3D 0x0000 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x058f > idProduct =3D 0x6387 > bcdDevice =3D 0x0002 > iManufacturer =3D 0x0001 > iProduct =3D 0x0002 > iSerialNumber =3D 0x0003 > bNumConfigurations =3D 0x0001 > > > ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (= 480Mbps) pwr=3DON (224mA) > ugen0.4.0: umass0: > > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0210 > bDeviceClass =3D 0x0000 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x0781 > idProduct =3D 0x55ab > bcdDevice =3D 0x0100 > > Both say on plugin "da0: 40.000MB/s transfers"; the USB port itself says > on plugin of an external disks "da0: 400.000MB/s transfers", what is > expected for USB 3.0; > > Why both USB keys only reach da0: 40.000MB/s? > You could try running usbdump(8). Be aware that you need device bpf and perhaps options DEV_BPF in your kernel config file if you aren't running a GENERIC kernel. usbdump has to be run as root. I tried it with a USB3 and a USB2 thumb drive, plugging both into a USB3 port. I used this command line: usbdump -d ugenX.Y -s 256 -w /tmp/USB{2,3} to save the output and then usbdump -r /tmp/USB{2,3} to get the user readable text. You'll probably want to use different names for the -w file names. I simply plugged in and unplugged each thumb drive and then stopped usbdump. The USB3 thumb drive always showed SPD=3DSUPER and the USB2 thumb drive always showed SPD=3DHIGH in the user readable text. So, if your disk shows SPD=3DSUPER and the thumb drives show SPD=3DHIGH then the thumb drives are NOT USB3. =2D- Gary Jennejohn