From owner-freebsd-usb@FreeBSD.ORG Sun Sep 2 19:55:31 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5FE5106566C for ; Sun, 2 Sep 2012 19:55:31 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 7C43E8FC15 for ; Sun, 2 Sep 2012 19:55:30 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 147878097; Sun, 02 Sep 2012 21:55:23 +0200 To: Andrew Beam From: Hans Petter Selasky X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O Date: Sun, 2 Sep 2012 21:56:25 +0200 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201209022156.25632.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: external usb3 disk on usb2 port full spd only X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2012 19:55:32 -0000 On Sunday 02 September 2012 21:35:57 Andrew Beam wrote: > Hello, > > > Do you have a XHCI controller on your computer which is capable of USB > > 3.0 ? > > No, i have only USB 2.0 port in my computer. HDD is 3.0 and 2.0 > compatible of course. > > Under Ubuntu on same hardware, disk is connected as USB 2.0, spd > profile HIGH / 480Mbit. > Under FreeBSD, disk is connected as USB 1.1, spd profile FULL / 12Mbit > only. > > > This question you need to forward to the manufacturer of your drive! > > I don't know what to ask them. It's FreeBSD problem i think. > Question is: Is it posible force FreeBSD to use profile HIGH and > connect HDD as USB 2.0 device? Hi, I cannot tell exactly why your device is not detected as HIGH speed. You will need to connect a USB analyzer to know the cause exactly. Please be aware that FreeBSD is complying to USB.org and not MS nor Linux. Does the manufacturer of your USB device put a certified USB.org logo on the product? Back to what you're asking for: The enumeration sequence works like this: 1) EHCI owns the port and tries High-Speed USB. 2) If a valid so-called CHIRP sequence is successful the EHCI software will select high speed USB. Else the EHCI ask the OHCI or UHCI to handle the FULL speed USB device. Code is here: sys/dev/usb/controller/ehci.c case UHF_PORT_RESET: DPRINTFN(6, "reset port %d\n", index); #if 0 /* ADD THIS COMMENT OUT TO FORCE ALL DEVICES HIGH SPEED: */ #ifdef USB_DEBUG if (ehcinohighspeed) { /* * Connect USB device to companion * controller. */ ehci_disown(sc, index, 1); break; } #endif if (EHCI_PS_IS_LOWSPEED(v) && (sc->sc_flags & EHCI_SCFLG_TT) == 0) { /* Low speed device, give up ownership. */ ehci_disown(sc, index, 1); break; } #endif /* END */ --HPS