From owner-freebsd-usb@FreeBSD.ORG Fri Oct 18 06:22:59 2013 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 ESMTP id A1381980 for ; Fri, 18 Oct 2013 06:22:59 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 34413207C for ; Fri, 18 Oct 2013 06:22:58 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 5E81F7A234; Fri, 18 Oct 2013 08:22:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id B3B6E8FA845; Fri, 18 Oct 2013 08:23:23 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GFPhUTBihHdL; Fri, 18 Oct 2013 08:23:22 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id B0A6B8FA84B; Fri, 18 Oct 2013 08:23:21 +0200 (CEST) Message-ID: <5260D409.5070906@bitfrost.no> Date: Fri, 18 Oct 2013 08:24:09 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Doug White Subject: Re: xhci on Intel Lynx Point still broke References: <7CFE54E6-7FD5-40C5-B1FC-BBF46134A6AE@gumbysoft.com> <525F7B60.6030102@bitfrost.no> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: sarah.a.sharp@linux.intel.com, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 06:22:59 -0000 On 10/18/13 03:23, Doug White wrote: > > On Oct 16, 2013, at 10:53 PM, Hans Petter Selasky wrote: > >> Is the problem fixed if you set: >> >> hw.usb.xhci.xhci_port_route=-1 >> >> in /boot/loader.conf > > No, no change in (lack of) functionality. > > I uploaded these bootverbose-enabled dmesg outputs: > > With XHCI Mode = Disabled in BIOS (reverts ports to EHCI control): > > http://people.freebsd.org/~dwhite/dmesg.xhci_off_in_bios.20131017 > > With XHCI Mode = Enabled in BIOS and with tunable hw.usb.xhci.xhci_port_route=-1 set: > > http://people.freebsd.org/~dwhite/dmesg.xhci_on.with_routing.20131017 > >> XHCI is a more high-level controller, and I suspect that the makers have added some propritary glue to switch ports back and forth between XHCI and EHCI which is not documented anywhere. > > On the first board (X10SLM-F), XHCI Mode is a BIOS setting and affects all USB ports. I haven't experimented with settings on the Atom yet. The Atom uses a Renesas chip for its USB ports, though, and no USB from the SoC itself, that I can tell. > Hi Doug, It looks like the XHCI controller is not getting any port events, like it should. Basically the XHCI controller you've got does not behave like I would expect, according to the XHCI specification from INTEL. I've CC'ed Sarah Sharp @ Intel which is working on the Linux XHCI driver. --HPS Hi Sarah! We FreeBSD guys have seen several oddities regarding the Lynx Point Intel based controllers, and would like to know if some additional datasheets exist regarding how ports switch actually works. The last issue on the block was that the Lynx Point's returned a invalid parameter error on the set address command which configures the device context (no set address sent), if a USB device was plugged into the XHCI controller, and the port routing was enabled. If the command was issued when no USB device was plugged in by faking a port connection status change, then it would succeed. > http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?r1=255356&r2=255768 I'm sorry to say I fear this extra magic about the port routing for Lynx Points is not working like expected. Sarah, do you have any more clues for us FreeBSD USB guys? Thank you! --HPS