From owner-freebsd-usb@FreeBSD.ORG Fri Apr 11 04:33:50 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3D79D213 for ; Fri, 11 Apr 2014 04:33:50 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BF28103B for ; Fri, 11 Apr 2014 04:33:48 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.34]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id s3B4XKIW011936 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 11 Apr 2014 14:03:25 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" Content-Type: multipart/signed; boundary="Apple-Mail=_79B1425C-0D81-41BA-8272-00A14CFA3852"; protocol="application/pgp-signature"; micalg=pgp-sha1 Date: Fri, 11 Apr 2014 14:03:19 +0930 Subject: USB 3 devices not reliably connecting at 5Gbps To: freebsd-usb@freebsd.org Message-Id: Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-Mailer: Apple Mail (2.1874) X-Spam-Score: -3.551 () ALL_TRUSTED,BAYES_00,RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 04:33:50 -0000 --Apple-Mail=_79B1425C-0D81-41BA-8272-00A14CFA3852 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I have a FreeBSD 9.2 system on which I am developing a USB3 data = acquisition card (based on the Cypress FX3) and I have found that it = doesn't reliably connect at 5GBps - quite often it seems to only connect = at 480MBps. If I connect it to my macbook pro (running OSX) it reliably connects at = 5Gbps. Since the FreeBSD system doesn't have onboard USB3 I purchased 2 PCIe = USB3 cards. I wanted to see if there was a difference in behaviour = between the 2 cards but that doesn't seem to be the case. xhci0@pci0:3:0:0: class=3D0x0c0330 card=3D0x34321106 = chip=3D0x34321106 rev=3D0x03 hdr=3D0x00 xhci1@pci0:5:0:0: class=3D0x0c0330 card=3D0x70521b6f = chip=3D0x70521b6f rev=3D0x00 hdr=3D0x00 xhci0: mem 0xfbeff000-0xfbefffff irq = 17 at device 0.0 on pci3 xhci0: 32 byte context size. usbus1 on xhci0 xhci1: mem 0xfbcf8000-0xfbcfffff irq = 17 at device 0.0 on pci5 xhci1: 64 byte context size. usbus2 on xhci1 Also, when it does connect at 5Gbps the speed seems quite slow - on my = laptop (with USB controller VID 0x8086 PID 0x9c31 - Lynx point I think) = I get 225MB/sec using libusb. On FreeBSD I get around 92MB/sec although = only after lowering(!!) the amount read per transfer. I booted a 10.0 DVD and it seems to behave the same way. I also tried a USB 3 HD enclosure and it frequently connects at 480MBit = as well so I don't think it's an issue with the firmware I wrote. Does anyone have a recommendation, or a path to debugging it? Thanks. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail=_79B1425C-0D81-41BA-8272-00A14CFA3852 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iD8DBQFTR3CP5ZPcIHs/zowRAv32AJ4zm7gxTVIRRi2pJ7mZq4gwwdt8ugCgobdB dGberYwIXgzltDc8adNlHKM= =/XXs -----END PGP SIGNATURE----- --Apple-Mail=_79B1425C-0D81-41BA-8272-00A14CFA3852--