From owner-freebsd-usb@FreeBSD.ORG Sat Jul 5 18:29:08 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 930EF987 for ; Sat, 5 Jul 2014 18:29:08 +0000 (UTC) Received: from smtp17.singnet.com.sg (smtp17.singnet.com.sg [165.21.6.27]) by mx1.freebsd.org (Postfix) with ESMTP id 19F5920E1 for ; Sat, 5 Jul 2014 18:29:07 +0000 (UTC) Received: from zaapth.zeepster.org (bb219-74-56-103.singnet.com.sg [219.74.56.103]) by smtp17.singnet.com.sg (8.14.1/8.14.1) with ESMTP id s65ISwCW017427; Sun, 6 Jul 2014 02:28:58 +0800 Received: from zaapedy.zeepster.org ([192.168.187.42]) by zaapth.zeepster.org with esmtpa (Exim 4.82 (FreeBSD)) (envelope-from ) id 1X3Uhm-0000FL-FG; Sun, 06 Jul 2014 02:28:58 +0800 Message-ID: <53B843EB.3000904@singnet.com.sg> Date: Sun, 06 Jul 2014 02:28:59 +0800 From: Tur-Wei Chan User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-usb@FreeBSD.org Subject: Re: Zotac ID91 USB3 devices attach as USB2 (Solved) References: <53B025AF.3010602@singnet.com.sg> <53B046A0.4010102@selasky.org> <53B18D8C.3080401@singnet.com.sg> In-Reply-To: <53B18D8C.3080401@singnet.com.sg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 5.5.2.363555, Antispam-Engine: 2.6.1.350677, Antispam-Data: 2014.7.5.182118 X-PMX-AS: AS-Check X-PMX-Score: Probability=12% X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2014 18:29:08 -0000 Hi, On 1/7/2014 12:17 AM, Tur-Wei Chan wrote: > Hi, > On 30/6/2014 1:02 AM, Hans Petter Selasky wrote: >> On 06/29/14 16:41, Tur-Wei Chan wrote: >>> Hi, >>> >>> Got a Zotac ID91 mini-PC >>> (http://www.zotac.com/products/mini-pcs/zbox/product/zbox/detail/zbox-id91-1.html) >>> >>> recently and installed FreeBSD (10-STABLE, r267719) on it. >>> >>> Hooking up my Mediasonic ProRaid HUR3-SU3S3 to the USB3 ports however >>> showed the drives up at only USB2.0 speeds: >>> >> >> Hi, >> >> What does "pciconf -lv" say? >> >> I see you have a Lynx Point USB 3.0. They are a bit troublesome. Have >> you played with the port routing mask under hw.usb.xhci ? >> >> --HPS >> > > pciconf -lv said (as attached previously): > > xhci0@pci0:0:20:0: class=0x0c0330 card=0xb20619da chip=0x8c318086 > rev=0x05 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Lynx Point USB xHCI Host Controller' > class = serial bus > subclass = USB > > I got the disks to attach at USB3.0: Jul 6 02:00:41 z2 kernel: xhci0: mem 0xf7d00000-0xf7d0ffff irq 16 at Jul 6 02:00:41 z2 kernel: xhci0: 32 byte context size. Jul 6 02:00:41 z2 kernel: xhci0: Port routing mask set to 0x00000003 Jul 6 02:00:41 z2 kernel: usbus0 on xhci0 ... Jul 6 02:00:41 z2 kernel: uhub0: on usbus1 Jul 6 02:00:41 z2 kernel: ugen0.1: <0x8086> at usbus0 ... Jul 6 02:02:15 z2 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 Jul 6 02:02:15 z2 kernel: da0: Fixed Direct Access SCSI-6 device Jul 6 02:02:15 z2 kernel: da0: Serial Number 00000000000000000000 Jul 6 02:02:15 z2 kernel: da0: 400.000MB/s transfers Jul 6 02:02:15 z2 kernel: da0: 1907729MB (3907029168 512 byte sectors: 255H 63S/T 243201C) Jul 6 02:02:15 z2 kernel: da0: quirks=0x2 Jul 6 02:02:15 z2 kernel: da1 at umass-sim0 bus 0 scbus2 target 0 lun 1 Jul 6 02:02:15 z2 kernel: da1: Fixed Direct Access SCSI-6 device Jul 6 02:02:15 z2 kernel: da1: Serial Number 00000000000000000000 Jul 6 02:02:15 z2 kernel: da1: 400.000MB/s transfers Jul 6 02:02:15 z2 kernel: da1: 1907729MB (3907029168 512 byte sectors: 255H 63S/T 243201C) Jul 6 02:02:15 z2 kernel: da1: quirks=0x2 usbconfig list: ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen2.3: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA) What I did: a) Set hw.usb.xhci.xhci_port_route="0x3" in /boot/loader.conf b) Fixed /sys/dev/usb/controller/xhci.c as follows: --- dev/usb/controller/xhci.c (revision 268290) +++ dev/usb/controller/xhci.c (working copy) @@ -567,7 +567,7 @@ if (sc->sc_port_route != NULL) { /* Route all ports to the XHCI by default */ sc->sc_port_route(sc->sc_bus.parent, - ~xhciroute, xhciroute); + xhciroute, ~xhciroute); } return (0); } Previously when I set the port route mask to -1, the xhci init would fail. It seems for my H81 board that only ports 1 and 2 are available for USB 3.0 [1] so only the value 0x03 for the port route would work for me. Regards -T.W.Chan- [1] From the document "Intel® 8 Series/C220 Series Chipset Family Platform Controller Hub(PCH)" > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"