From owner-freebsd-usb@FreeBSD.ORG Sun Jul 6 03:24:00 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 13B40E06 for ; Sun, 6 Jul 2014 03:24:00 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90F182A09 for ; Sun, 6 Jul 2014 03:23:58 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 2ABD21FE02D; Sun, 6 Jul 2014 05:23:50 +0200 (CEST) Message-ID: <53B8C153.3040603@selasky.org> Date: Sun, 06 Jul 2014 05:24:03 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Tur-Wei Chan , 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> <53B843EB.3000904@singnet.com.sg> In-Reply-To: <53B843EB.3000904@singnet.com.sg> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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: Sun, 06 Jul 2014 03:24:00 -0000 On 07/05/14 20:28, Tur-Wei Chan wrote: > 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: 2.00/1.00, addr 1> 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); > } > Hi, Thank you for input. Does: hw.usb.xhci.xhci_port_route="0xFFFFFFFC" work for you instead of fixing xhci.c ? --HPS > 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)" Is this information available in the PCI address space? --HPS