From owner-freebsd-usb@FreeBSD.ORG Sun Feb 10 13:01:40 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5C888F62; Sun, 10 Feb 2013 13:01:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id AD7AEB7E; Sun, 10 Feb 2013 13:01:39 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 375686925; Sun, 10 Feb 2013 14:01:31 +0100 From: Hans Petter Selasky To: Konstantin Belousov Subject: Re: some usb troubles Date: Sun, 10 Feb 2013 14:02:43 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130209180124.GA1783@dchagin.static.corbina.net> <201302101203.36647.hselasky@c2i.net> <20130210112044.GL2522@kib.kiev.ua> In-Reply-To: <20130210112044.GL2522@kib.kiev.ua> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org, Chagin Dmitry 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: Sun, 10 Feb 2013 13:01:40 -0000 On Sunday 10 February 2013 12:20:44 Konstantin Belousov wrote: > On Sun, Feb 10, 2013 at 12:03:36PM +0100, Hans Petter Selasky wrote: > > On Saturday 09 February 2013 19:01:25 Chagin Dmitry wrote: > > > Hi all, > > > > > > trying to run macbookpro10,1 on HEAD: > > > > > > 1) usb3.0 does not work at 9.1 and HEAD (r246587) > > > 2) Between stable/9 and HEAD (r246587) we are lost uhid devices > > > (external keyboard and mouse) and umass. dmesg on the same hw can find > > > here: > > > > > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.stable9.txt > > > http://people.freebsd.org/~dchagin/macbookpro/dmesg.generic.HEAD.txt > > > > > > pciconf: > > > > > > http://people.freebsd.org/~dchagin/macbookpro/pciconf.txt > > > > > > any help would be greatly apprecated. > > > > Hi, > > > > This error is not directly USB related. It means probably that ACPI or > > the PCI subsystem is not finding an IRQ for the XHCI driver. This might > > be the reason USB is not working properly. > > > > xhci0: Could not allocate IRQ > > device_attach: xhci0 attach returned 6 > > It seems that apple firmware assumes that USB host controller driver > will use MSI. FreeBSD drivers tries to set up the legacy IRQ, and fails > because apple tables do not describe this set-up. Hi, Would someone be kind enough to provide a patch for that for sys/dev/usb/controller/xhci_pci.c ? I'm currently not in possession of such hardware. --HPS