From owner-freebsd-current@FreeBSD.ORG Tue Jan 7 02:30:11 2014 Return-Path: Delivered-To: freebsd-current@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 9083ECD4; Tue, 7 Jan 2014 02:30:11 +0000 (UTC) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CCF5F14F6; Tue, 7 Jan 2014 02:30:10 +0000 (UTC) Received: by mail-lb0-f174.google.com with SMTP id y6so10366792lbh.19 for ; Mon, 06 Jan 2014 18:30:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=2XlcatidAxpE1MQndCWdzREXUTzeCptdvypp2NH8/dU=; b=LjzoNw/oF4SlxZWYx5Rtr2iDpZyaE6G9HBom1EIKz/uDyaSjgUoE5zzIgHJtStPy25 TC6fpvBqjCv9qVNYAyEV1nDpYzs1N1PYWD9IBksx2x8bBEVfAeUPDWoYwwlKQhvyOuPD 2CDURyq9b+fm0gWSsLnZX3j8pzfD2AjVWbjS+MNbnUYVt8Nr0cKGZQLgDnFvp/6Eb6xU ygYwSHNarDdrunTKy7GdciA+vFPCGHbOs4/zLRSy+UamJ+9in0ilh+eJU8GqHkAJcTWS 4GDNUsBlR+Uh83HizBv2H4Q8y7d0PyA2eM3jAVmFWovtonm5eiZUSCtqCeECt//6M55N BPbg== MIME-Version: 1.0 X-Received: by 10.152.204.39 with SMTP id kv7mr2371623lac.42.1389061808875; Mon, 06 Jan 2014 18:30:08 -0800 (PST) Received: by 10.112.135.195 with HTTP; Mon, 6 Jan 2014 18:30:08 -0800 (PST) In-Reply-To: <52CB2591.9050401@bitfrost.no> References: <52CA56E5.8030101@bitfrost.no> <52CA6E3F.9000301@bitfrost.no> <52CA7CE0.7070202@bitfrost.no> <52CACBB8.1020905@bitfrost.no> <52CB2591.9050401@bitfrost.no> Date: Tue, 7 Jan 2014 10:30:08 +0800 Message-ID: Subject: Re: Install 10.0-RC3 on MacBookPro Late 2013 From: Huang Wen Hui To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: Adrian Chadd , freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: huanghwh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 02:30:11 -0000 Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 ** introduce the bug.* revert to r345731 fixed this USB problem in 9.2R I also copy xhci_interrupt(struct xhci_softc *sc) from 9.1R to CURRENT, CURRENT also works! Cheers, Huang Wen Hui. 2014/1/7 Hans Petter Selasky > On 01/06/14 16:28, Hans Petter Selasky wrote: > >> On 01/06/14 15:17, Adrian Chadd wrote: >> >>> Right, but it used to work. That's the confusing bit. How'd you make >>> it not work? :) >>> >> >> Binary sect the sys/dev/usb/controller/xhci.c revision history? There >> has been several bug reports for the Lynx point, and others XHCI >> chipsets are working just fine. >> >> > A wild guess: > > Copy the USB-code from -current. > > Add "#if 0" as shown sys/dev/usb/controller/xhci_pci.c > > static int > xhci_pci_port_route(device_t self, uint32_t set, uint32_t clear) > { > #if 0 > uint32_t temp; > > temp = pci_read_config(self, PCI_XHCI_INTEL_USB3_PSSEN, 4) | > pci_read_config(self, PCI_XHCI_INTEL_XUSB2PR, 4); > > temp |= set; > temp &= ~clear; > > pci_write_config(self, PCI_XHCI_INTEL_USB3_PSSEN, temp, 4); > pci_write_config(self, PCI_XHCI_INTEL_XUSB2PR, temp, 4); > > device_printf(self, "Port routing mask set to 0x%08x\n", temp); > #endif > return (0); > } > > --HPS >