Date: Fri, 19 Jan 2024 14:24:19 +0000 From: Gary Jennejohn <garyj@gmx.de> To: Matthias Apitz <guru@unixarea.de> Cc: freebsd-usb@freebsd.org Subject: Re: USB key is 2.0 or 3.0 Message-ID: <20240119152419.03ddec41@ernst.home> In-Reply-To: <ZalgOl6WJZ7vyXyL@c720-1400094> References: <ZakiueSm0dPskpSr@pureos> <20240118142634.69f7d675@ernst.home> <ZalgOl6WJZ7vyXyL@c720-1400094>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 18 Jan 2024 18:30:34 +0100 Matthias Apitz <guru@unixarea.de> wrote: > I've two new USB keys, both claiming on its wrapping USB 3.0: > > usbconfig -v reads from them: > > ugen0.4: <Generic Mass Storage> at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH = (480Mbps) pwr=3DON (200mA) > ugen0.4.0: umass0: <Generic Mass Storage, class 0/0, rev 2.10/0.02, addr= 5> > > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0210 > bDeviceClass =3D 0x0000 <Probed by interface class> > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x058f > idProduct =3D 0x6387 > bcdDevice =3D 0x0002 > iManufacturer =3D 0x0001 <Generic> > iProduct =3D 0x0002 <Mass Storage> > iSerialNumber =3D 0x0003 <A430786F> > bNumConfigurations =3D 0x0001 > > > ugen0.4: <USB SanDisk 3.2Gen1> at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH (= 480Mbps) pwr=3DON (224mA) > ugen0.4.0: umass0: <USB SanDisk 3.2Gen1, class 0/0, rev 2.10/1.00, addr = 4> > > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0210 > bDeviceClass =3D 0x0000 <Probed by interface class> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20240119152419.03ddec41>