From owner-freebsd-usb@FreeBSD.ORG Fri Oct 3 03:55:05 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45933D29 for ; Fri, 3 Oct 2014 03:55:05 +0000 (UTC) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC085DDD for ; Fri, 3 Oct 2014 03:55:04 +0000 (UTC) Received: by mail-lb0-f176.google.com with SMTP id p9so339813lbv.7 for ; Thu, 02 Oct 2014 20:55:02 -0700 (PDT) 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=G7sHnYKsv1XBXFnV1lYNCkQX9qWXw4+eK+br2dxNhy8=; b=MVoumei2Pp1bTaHIoFzDIsXfv1dhFGdvsTuKN4jRWOFpAHdjAtRB4G7RSE40vBBOHM KOvrYqc5ISanLgi+eejFcRlrTWndAchWOs0+gW0luRqwSkdgGzc97hPlsAsMD9l1hJBm BSP+nGGY93Io09fr2Tk1/SSD8W/2lUAbA6tQWlQFd2cWGIxRkxKhENeyAJW7OgnNZkXF oGiSA2R/kbTYiHqvwQN8QPS+qIs0NSrNW4xHbpXc3G3R/1w51siDF+tJGGei+lnd/wL+ JMCAB8amd32ZCecrhlM7VviAmo0sSbswTB2t+Q7iHvUf2u3SkF15J//NLYJ56k8MZDJy 6KJw== MIME-Version: 1.0 X-Received: by 10.112.55.7 with SMTP id n7mr2781379lbp.16.1412308502428; Thu, 02 Oct 2014 20:55:02 -0700 (PDT) Received: by 10.112.218.101 with HTTP; Thu, 2 Oct 2014 20:55:02 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: References: <541FBD6F.2080507@selasky.org> <541FDDF0.90502@selasky.org> <542662BE.5050908@selasky.org> <542701FA.2000408@selasky.org> <5427029B.3060502@selasky.org> <5427AC46.3040707@selasky.org> Date: Fri, 3 Oct 2014 11:55:02 +0800 Message-ID: Subject: Re: xhci problem on UEFI boot MacBookPro 11,3 From: Huang Wen Hui To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2014 03:55:05 -0000 I found that how to connect EHCI controller, use "bless" command in MacOSX with --legacy option: 1. open MacOSX terminal, mkdir /Volumes/EFI 2. mount -t msdos /dev/disk0s1 /Volumes/EFI 3. bless --setBoot --mount /Volumes/EFI --legacy 4. reboot MacOSX, press "option" key, you can feel firmware start a little slow than without --legacy. I think firmware do some extra things:( 5. select both UEFI and BIOS boot FreeBSD, system can connect EHCI and XHCI controller. 6. I think BootCamp assistant also add --legacy option. Cheers, Huang Wen Hui 2014-09-30 18:19 GMT+08:00 Huang Wen Hui : > Hi, > I got the exactly same MBP 2013 11,3 from my colleague, also same time to > buy it. > USB driver works on this in UEFI mode. Both xhci and ehci found in this > mac, and these > dmesg only show in this mac: > > acpi_ec0: port 0x62,0x66 on acpi0 > ACPI Error: No handler for Region [CMS0] (0xfffff80008948e00) [SystemCMOS] > (20130823/evregion-178) > ACPI Error: Region SystemCMOS (ID=5) has no handler (20130823/exfldio-320) > ACPI Error: Method parse/execution failed [\134RUSB] (Node > 0xfffff8000895db80), AE_NOT_EXIST (20130823/psparse-553) > ACPI Error: Method parse/execution failed [\134_SB_._INI] (Node > 0xfffff8000895e000), AE_NOT_EXIST (20130823/psparse-553) > acpi0: Power Button (fixed) > ... > xhci0: mem 0xc1e00000-0xc1e0ffff at > device 20.0 on pci0 > xhci0: 32 byte context size. > xhci0: Port routing mask set to 0xffffffff > usbus0 on xhci0 > pci0: at device 22.0 (no driver attached) > ehci0: mem > 0xc1e19400-0xc1e197ff at device 26.0 on pci0 > usbus1: EHCI version 1.0 > usbus1 on ehci0 > ... > ehci1: mem > 0xc1e19000-0xc1e193ff at device 29.0 on pci0 > usbus2: EHCI version 1.0 > usbus2 on ehci1 > isab0: at device 31.0 on pci0 > isa0: on isab0 > ... > usbus0: 5.0Gbps Super Speed USB v3.0 > usbus1: 480Mbps High Speed USB v2.0 > usbus2: 480Mbps High Speed USB v2.0 > ugen0.1: <0x8086> at usbus0 > uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > ugen1.1: at usbus1 > uhub1: on usbus1 > ugen2.1: at usbus2 > uhub2: on usbus2 > ... > Timecounter "TSC-low" frequency 1297021897 Hz quality 1000 > Root mount waiting for: usbus2 usbus1 usbus0 > uhub1: 2 ports with 2 removable, self powered > uhub0: 21 ports with 21 removable, self powered > uhub2: 2 ports with 2 removable, self powered > Root mount waiting for: usbus2 usbus1 usbus0 > xhci0: Port routing mask set to 0x00000000 > usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) > ugen0.2: at usbus0 (disconnected) > uhub_reattach_port: could not allocate new device > ugen1.2: at usbus1 > uhub3: on > usbus1 > ugen2.2: at usbus2 > uhub4: on > usbus2 > uhub3: 6 ports with 6 removable, self powered > Root mount waiting for: usbus2 usbus1 usbus0 > xhci0: Port routing mask set to 0x00000000 > usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) > ugen0.2: at usbus0 (disconnected) > uhub_reattach_port: could not allocate new device > uhub4: 8 ports with 8 removable, self powered > ugen1.3: at usbus1 > umass0: on usbus1 > umass0: SCSI over Bulk-Only; quirks = 0x4101 > umass0:1:0:-1: Attached to scbus1 > da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 > da0: Removable Direct Access SCSI-4 device > da0: Serial Number E0629276 > da0: 40.000MB/s transfers > da0: 3870MB (7925760 512 byte sectors: 255H 63S/T 493C) > da0: quirks=0x2 > ugen1.4: at usbus1 > uhub5: on > usbus1 > Root mount waiting for: usbus1 > uhub5: 3 ports with 0 removable, self powered > ugen1.5: at usbus1 > ukbd0: on > usbus1 > kbd1 at ukbd0 > Root mount waiting for: usbus1 > ugen1.6: at usbus1 > ugen1.7: at usbus1 > Root mount waiting for: usbus1 > ugen1.8: at usbus1 > ukbd1: on usbus1 > Root mount waiting for: usbus1 > kbd2 at ukbd1 > > Full dmesg is http://sw.gddsn.org.cn/freebsd/uefi-ehci-dmesg.txt > > > > > 2014-09-28 15:35 GMT+08:00 Huang Wen Hui : > >> I found some similar problem of Linux: >> https://bugzilla.kernel.org/show_bug.cgi?id=52591 >> https://lkml.org/lkml/2013/3/9/134 >> >> >> 2014-09-28 14:35 GMT+08:00 Hans Petter Selasky : >> >>> On 09/28/14 06:26, Huang Wen Hui wrote: >>> >>>> No lucky. dmesg aslo no change, I could not found "Skipped". >>>> >>>> Cheers, >>>> Huang Wen Hui >>>> >>> >>> Did you try searching if Linux users had such a problem already? >>> >>> --HPS >>> >>> >> >