From owner-freebsd-mobile@FreeBSD.ORG Thu Aug 26 21:19:16 2004 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01F1416A4CE for ; Thu, 26 Aug 2004 21:19:16 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id D746643D2D for ; Thu, 26 Aug 2004 21:19:15 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i7QLL90s016352; Thu, 26 Aug 2004 14:21:09 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i7QLL9Sv016351; Thu, 26 Aug 2004 14:21:09 -0700 Date: Thu, 26 Aug 2004 14:21:09 -0700 From: Brooks Davis To: Brian Reichert Message-ID: <20040826212109.GF14825@odin.ac.hmc.edu> References: <20040826211006.GA90604@numachi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="juZjCTNxrMaZdGZC" Content-Disposition: inline In-Reply-To: <20040826211006.GA90604@numachi.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-mobile@freebsd.org Subject: Re: how to I know if I've got USB 2.0? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 21:19:16 -0000 --juZjCTNxrMaZdGZC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 26, 2004 at 09:10:07PM +0000, Brian Reichert wrote: > Many moons ago, I got an eMachines M5305: >=20 > >=20 > I know it's USB ports work, generally, but now I was chasing a umass > devices with sub-par thoughput. I've mucking with a LaCie drive: >=20 > >=20 > Some specifics: FreeBSD 5.2.1-RELEASE, with USB_DEBUG in the kernel. >=20 > >From a dmesg after a boot -v: >=20 > ohci0: mem 0xf0004000-0xf0004fff irq 11 a= t device 13.0 on pci0 > usb0: OHCI version 1.0, legacy support > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 3 ports with 3 removable, self powered > ohci1: mem 0xf0005000-0xf0005fff irq 11 a= t device 13.1 on pci0 > usb1: OHCI version 1.0, legacy support > usb1: on ohci1 > usb1: USB revision 1.0 > uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered >=20 > And when I plug in a LaCie drive: >=20 > usbd_new_device: addr=3D2, getting first desc failed > uhub_explore: usb_new_device failed, error=3DIOERROR > uhub0: device problem, disabling port 3 > uhub0: port error, restarting port 3 > umass0: LaCie USB 2.0 LaCie Big Disk, rev 2.00/9a.bc, addr 2 > umass0: SCSI over Bulk-Only; quirks =3D 0x0000 > umass0: Get Max Lun not supported (STALLED) > umass0:0:0:-1: Attached to scbus0 > GEOM: create disk da0 dp=3D0xc4620c50 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-4 device=20 > da0: 1.000MB/s transfers > da0: 381564MB (781443935 512 byte sectors: 255H 63S/T 48642C) >=20 > A crude thoughput test with 'dd' on a ufs fs with softupdates: >=20 > # dd if=3D/dev/zero of=3D/new/junk bs=3D4k count=3D125000 > 125000+0 records in > 125000+0 records out > 512000000 bytes transferred in 619.612531 secs (826323 bytes/sec) >=20 > The box claims 'up to 480 M bits/sec', which, if arithmetic serves > me, should map to 60 M bytes/sec. I know there's overhead for the > fs and so forth, but I'm seeing on the order of 75x reduction here. >=20 > Have I misunderstood the problem? You need to enable the USB 2.0 controler ehci(4). USB is weird in that you actually have a USB 1.1 and USB 2.0 controler on the same bus. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --juZjCTNxrMaZdGZC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBLlRFXY6L6fI4GtQRAtR4AJ4t9mUXzkrwHuLri6+YzsTxD28c0gCdFF4q 0fxeTW0aXdVZjVMQ61HAr6w= =kIdA -----END PGP SIGNATURE----- --juZjCTNxrMaZdGZC--