Re: xhci problem on UEFI boot MacBookPro 11,3
FYI This issue was fixed by: https://svnweb.freebsd.org/changeset/base/272589 --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 10/03/14 05:55, Huang Wen Hui wrote: 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 Hi, Sounds good! Thanks for figuring this out. At least I found one or two minors in the XHCI driver while debugging this :-) --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
But xhci should works under freebsd,like Linux without this trick. If you want to debug this further, ping me , I will be free after 2 hours;) Huang Wen Hui 在 2014年10月3日,14:15,Hans Petter Selasky h...@selasky.org 写道: On 10/03/14 05:55, Huang Wen Hui wrote: 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 Hi, Sounds good! Thanks for figuring this out. At least I found one or two minors in the XHCI driver while debugging this :-) --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
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 huang...@gmail.com: 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: Embedded Controller: GPE 0x17, ECDT port 0x62,0x66 on acpi0 ACPI Error: No handler for Region [CMS0] (0xf80008948e00) [SystemCMOS] (20130823/evregion-178) ACPI Error: Region SystemCMOS (ID=5) has no handler (20130823/exfldio-320) ACPI Error: Method parse/execution failed [\134RUSB] (Node 0xf8000895db80), AE_NOT_EXIST (20130823/psparse-553) ACPI Error: Method parse/execution failed [\134_SB_._INI] (Node 0xf8000895e000), AE_NOT_EXIST (20130823/psparse-553) acpi0: Power Button (fixed) ... xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: 32 byte context size. xhci0: Port routing mask set to 0x usbus0 on xhci0 pci0: simple comms at device 22.0 (no driver attached) ehci0: Intel Lynx Point USB 2.0 controller USB-B mem 0xc1e19400-0xc1e197ff at device 26.0 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 ... ehci1: Intel Lynx Point USB 2.0 controller USB-A mem 0xc1e19000-0xc1e193ff at device 29.0 on pci0 usbus2: EHCI version 1.0 usbus2 on ehci1 isab0: PCI-ISA bridge at device 31.0 on pci0 isa0: ISA bus 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: Intel at usbus1 uhub1: Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus1 ugen2.1: Intel at usbus2 uhub2: Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 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 0x usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: Unknown at usbus0 (disconnected) uhub_reattach_port: could not allocate new device ugen1.2: vendor 0x8087 at usbus1 uhub3: vendor 0x8087 product 0x8008, class 9/0, rev 2.00/0.05, addr 2 on usbus1 ugen2.2: vendor 0x8087 at usbus2 uhub4: vendor 0x8087 product 0x8000, class 9/0, rev 2.00/0.05, addr 2 on usbus2 uhub3: 6 ports with 6 removable, self powered Root mount waiting for: usbus2 usbus1 usbus0 xhci0: Port routing mask set to 0x usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: Unknown at usbus0 (disconnected) uhub_reattach_port: could not allocate new device uhub4: 8 ports with 8 removable, self powered ugen1.3: Generic at usbus1 umass0: Generic Mass Storage, class 0/0, rev 2.00/1.12, addr 3 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: Generic Flash Disk 8.07 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=0x2NO_6_BYTE ugen1.4: Apple Inc. at usbus1 uhub5: Apple Inc. BRCM20702 Hub, class 9/0, rev 2.00/1.00, addr 4 on usbus1 Root mount waiting for: usbus1 uhub5: 3 ports with 0 removable, self powered ugen1.5: vendor 0x05ac at usbus1 ukbd0: vendor 0x05ac product 0x820a, class 0/0, rev 2.00/1.00, addr 5 on usbus1 kbd1 at ukbd0 Root mount waiting for: usbus1 ugen1.6: vendor 0x05ac at usbus1 ugen1.7: Apple Inc. at usbus1 Root mount waiting for: usbus1 ugen1.8: Apple Inc. at usbus1 ukbd1: Apple Internal Keyboard 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 huang...@gmail.com: 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 h...@selasky.org: 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
Re: xhci problem on UEFI boot MacBookPro 11,3
On 09/30/14 16:12, Huang Wen Hui wrote: http://sw.gddsn.org.cn/freebsd/hps-bios-message.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message.txt Hi, Can you try the attached patch again, and send verbose dmesg including xhci debug on? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
verbose dmesg with patch, hw.usb.xhci.debug=16 and hw.usb.xhci.use_polling=1 http://sw.gddsn.org.cn/freebsd/hps-bios-message2.txt http://sw.gddsn.org.cn/freebsd/hps-bios-message.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message2.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message.txt 2014-10-01 14:34 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/30/14 16:12, Huang Wen Hui wrote: http://sw.gddsn.org.cn/freebsd/hps-bios-message.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message.txt Hi, Can you try the attached patch again, and send verbose dmesg including xhci debug on? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 10/01/14 09:24, Huang Wen Hui wrote: verbose dmesg with patch, hw.usb.xhci.debug=16 and hw.usb.xhci.use_polling=1 http://sw.gddsn.org.cn/freebsd/hps-bios-message2.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message2.txt Hi, Can you join #bsdusb on EF-net? BTW: Why are the time-stamps so different in the two logs above? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
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: Embedded Controller: GPE 0x17, ECDT port 0x62,0x66 on acpi0 ACPI Error: No handler for Region [CMS0] (0xf80008948e00) [SystemCMOS] (20130823/evregion-178) ACPI Error: Region SystemCMOS (ID=5) has no handler (20130823/exfldio-320) ACPI Error: Method parse/execution failed [\134RUSB] (Node 0xf8000895db80), AE_NOT_EXIST (20130823/psparse-553) ACPI Error: Method parse/execution failed [\134_SB_._INI] (Node 0xf8000895e000), AE_NOT_EXIST (20130823/psparse-553) acpi0: Power Button (fixed) ... xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: 32 byte context size. xhci0: Port routing mask set to 0x usbus0 on xhci0 pci0: simple comms at device 22.0 (no driver attached) ehci0: Intel Lynx Point USB 2.0 controller USB-B mem 0xc1e19400-0xc1e197ff at device 26.0 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 ... ehci1: Intel Lynx Point USB 2.0 controller USB-A mem 0xc1e19000-0xc1e193ff at device 29.0 on pci0 usbus2: EHCI version 1.0 usbus2 on ehci1 isab0: PCI-ISA bridge at device 31.0 on pci0 isa0: ISA bus 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: Intel at usbus1 uhub1: Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus1 ugen2.1: Intel at usbus2 uhub2: Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 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 0x usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: Unknown at usbus0 (disconnected) uhub_reattach_port: could not allocate new device ugen1.2: vendor 0x8087 at usbus1 uhub3: vendor 0x8087 product 0x8008, class 9/0, rev 2.00/0.05, addr 2 on usbus1 ugen2.2: vendor 0x8087 at usbus2 uhub4: vendor 0x8087 product 0x8000, class 9/0, rev 2.00/0.05, addr 2 on usbus2 uhub3: 6 ports with 6 removable, self powered Root mount waiting for: usbus2 usbus1 usbus0 xhci0: Port routing mask set to 0x usb_alloc_device: device init 2 failed (USB_ERR_IOERROR, ignored) ugen0.2: Unknown at usbus0 (disconnected) uhub_reattach_port: could not allocate new device uhub4: 8 ports with 8 removable, self powered ugen1.3: Generic at usbus1 umass0: Generic Mass Storage, class 0/0, rev 2.00/1.12, addr 3 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: Generic Flash Disk 8.07 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=0x2NO_6_BYTE ugen1.4: Apple Inc. at usbus1 uhub5: Apple Inc. BRCM20702 Hub, class 9/0, rev 2.00/1.00, addr 4 on usbus1 Root mount waiting for: usbus1 uhub5: 3 ports with 0 removable, self powered ugen1.5: vendor 0x05ac at usbus1 ukbd0: vendor 0x05ac product 0x820a, class 0/0, rev 2.00/1.00, addr 5 on usbus1 kbd1 at ukbd0 Root mount waiting for: usbus1 ugen1.6: vendor 0x05ac at usbus1 ugen1.7: Apple Inc. at usbus1 Root mount waiting for: usbus1 ugen1.8: Apple Inc. at usbus1 ukbd1: Apple Internal Keyboard 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 huang...@gmail.com: 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 h...@selasky.org: 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 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
Hi, Can you get output from pciconf -lv from the non-working MBP, in both UEFI and BIOS mode? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
Exactly same: http://sw.gddsn.org.cn/freebsd/non-working-mac-bios-pciconf.txt http://sw.gddsn.org.cn/freebsd/non-working-mac-uefi-pciconf.txt and working-mac: http://sw.gddsn.org.cn/freebsd/working-mac-bios-pciconf.txt http://sw.gddsn.org.cn/freebsd/working-mac-uefi-pciconf.txt 2014-09-30 19:23 GMT+08:00 Hans Petter Selasky h...@selasky.org: Hi, Can you get output from pciconf -lv from the non-working MBP, in both UEFI and BIOS mode? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 09/30/14 14:25, Huang Wen Hui wrote: Exactly same: http://sw.gddsn.org.cn/freebsd/non-working-mac-bios-pciconf.txt http://sw.gddsn.org.cn/freebsd/non-working-mac-uefi-pciconf.txt and working-mac: http://sw.gddsn.org.cn/freebsd/working-mac-bios-pciconf.txt http://sw.gddsn.org.cn/freebsd/working-mac-uefi-pciconf.txt 2014-09-30 19:23 GMT+08:00 Hans Petter Selasky h...@selasky.org: Hi, Can you get output from pciconf -lv from the non-working MBP, in both UEFI and BIOS mode? --HPS Hi, It looks like you are missing an EHCI controller. What happens if you boot having: hw.pci.do_power_nodriver=1 In /boot/loader.conf ? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
Hi, Both bios and uefi are same as before. I never see EHCI controller from dmesg when I got this MBP:( Thanks, Huang Wen Hui 2014-09-30 20:50 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/30/14 14:25, Huang Wen Hui wrote: Exactly same: http://sw.gddsn.org.cn/freebsd/non-working-mac-bios-pciconf.txt http://sw.gddsn.org.cn/freebsd/non-working-mac-uefi-pciconf.txt and working-mac: http://sw.gddsn.org.cn/freebsd/working-mac-bios-pciconf.txt http://sw.gddsn.org.cn/freebsd/working-mac-uefi-pciconf.txt 2014-09-30 19:23 GMT+08:00 Hans Petter Selasky h...@selasky.org: Hi, Can you get output from pciconf -lv from the non-working MBP, in both UEFI and BIOS mode? --HPS Hi, It looks like you are missing an EHCI controller. What happens if you boot having: hw.pci.do_power_nodriver=1 In /boot/loader.conf ? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 09/30/14 15:10, Huang Wen Hui wrote: Hi, Both bios and uefi are same as before. I never see EHCI controller from dmesg when I got this MBP:( Thanks, Huang Wen Hui Can you try the attached patch for xhci.c ? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
I manually patch on STABLE, Both bios and uefi still are same as before:( 2014-09-30 21:23 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/30/14 15:10, Huang Wen Hui wrote: Hi, Both bios and uefi are same as before. I never see EHCI controller from dmesg when I got this MBP:( Thanks, Huang Wen Hui Can you try the attached patch for xhci.c ? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 09/30/14 15:50, Huang Wen Hui wrote: I manually patch on STABLE, Both bios and uefi still are same as before:( Hi, Can you get verbose dmesg with patch, hw.usb.xhci.debug=16 in /boot/loader.conf ? Also set: hw.usb.xhci.use_polling=1 in /boot/loader.conf Thank you! --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
http://sw.gddsn.org.cn/freebsd/hps-bios-message.txt http://sw.gddsn.org.cn/freebsd/hps-uefi-message.txt 2014-09-30 21:52 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/30/14 15:50, Huang Wen Hui wrote: I manually patch on STABLE, Both bios and uefi still are same as before:( Hi, Can you get verbose dmesg with patch, hw.usb.xhci.debug=16 in /boot/loader.conf ? Also set: hw.usb.xhci.use_polling=1 in /boot/loader.conf Thank you! --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
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 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
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 h...@selasky.org: 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 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 09/27/14 00:59, Huang Wen Hui wrote: Just for Ref, xhci works in UEFI mode of Fedora 20: http://sw.gddsn.org.cn/freebsd/linux-dmesg.txt http://sw.gddsn.org.cn/freebsd/linux-lspci.txt Hi, The Root ACPI descriptor has wrong address? FreeBSD UEFI: kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) FreeBSD BIOS: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) Linux UEFI: mbp kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) static int elf64_exec(struct preloaded_file *fp) { struct file_metadata*md; Elf_Ehdr*ehdr; vm_offset_t modulep, kernend, trampcode, trampstack; int err, i; ACPI_TABLE_RSDP *rsdp; charbuf[24]; int revision; EFI_STATUS status; rsdp = efi_get_table(acpi20_guid); if (rsdp == NULL) { rsdp = efi_get_table(acpi_guid); } Try swapping order of efi_get_table() ? rsdp = efi_get_table(acpi_guid); if (rsdp == NULL) { rsdp = efi_get_table(acpi20_guid); } In sys/boot/amd64/efi/elf64_freebsd.c. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
From dmesg, RSDP should like these: FreeBSD UEFI: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) FreeBSD BIOS: kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) Anyway I swapped order of efi_get_table(), I got the result: Sep 27 07:49:33 mbp kernel: ACPI: RSDP 0x7ad8e000 00014 (v00 APPLE ) Sep 27 07:49:33 mbp kernel: ACPI: RSDT 0x7ad8e038 0005C (v01 APPLE Apple00 0113) Sep 27 07:49:33 mbp kernel: ACPI: FACP 0x7ad8d000 00074 (v01 APPLE Apple00 Loki 005F) Sep 27 07:49:33 mbp kernel: ACPI: DSDT 0x7ad8 06BF9 (v03 APPLE MacBookP 00110002 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: FACS 0x7ad1c000 00040 Sep 27 07:49:33 mbp kernel: ACPI: HPET 0x7ad8b000 00038 (v01 APPLE Apple00 0001 Loki 005F) Sep 27 07:49:33 mbp kernel: ACPI: APIC 0x7ad8a000 000BC (v02 APPLE Apple00 0001 Loki 005F) Sep 27 07:49:33 mbp kernel: ACPI: SBST 0x7ad88000 00030 (v01 APPLE Apple00 0001 Loki 005F) Sep 27 07:49:33 mbp kernel: ACPI: ECDT 0x7ad87000 00053 (v01 APPLE Apple00 0001 Loki 005F) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad7f000 0010B (v01 APPLE SataAhci 1000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad7e000 00024 (v01 APPLE SmcDppt 1000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad7c000 00688 (v01 APPLE SDUsbLpt 1000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad65000 09CE3 (v01 APPLE TbtPEG11 1000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad64000 000B8 (v01 APPLE Sdxc 1000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad62000 0065A (v01 PmRef Cpu0Ist 3000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: SSDT 0x7ad61000 00B83 (v01 PmRef CpuPm 3000 INTL 20100915) Sep 27 07:49:33 mbp kernel: ACPI: MCFG 0x7ad89000 0003C (v01 APPLE Apple00 0001 Loki 005F) Sep 27 07:49:33 mbp kernel: ACPI: DMAR 0x7ad6 00088 (v01 APPLE HSW 0001 AAPL 0001) But xhci still not work. 2014-09-27 15:09 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/27/14 00:59, Huang Wen Hui wrote: Just for Ref, xhci works in UEFI mode of Fedora 20: http://sw.gddsn.org.cn/freebsd/linux-dmesg.txt http://sw.gddsn.org.cn/freebsd/linux-lspci.txt Hi, The Root ACPI descriptor has wrong address? FreeBSD UEFI: kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) FreeBSD BIOS: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) Linux UEFI: mbp kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) static int elf64_exec(struct preloaded_file *fp) { struct file_metadata*md; Elf_Ehdr*ehdr; vm_offset_t modulep, kernend, trampcode, trampstack; int err, i; ACPI_TABLE_RSDP *rsdp; charbuf[24]; int revision; EFI_STATUS status; rsdp = efi_get_table(acpi20_guid); if (rsdp == NULL) { rsdp = efi_get_table(acpi_guid); } Try swapping order of efi_get_table() ? rsdp = efi_get_table(acpi_guid); if (rsdp == NULL) { rsdp = efi_get_table(acpi20_guid); } In sys/boot/amd64/efi/elf64_freebsd.c. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
Hi, Can you try the attached patch? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
No lucky. dmesg aslo no change, I could not found Skipped. Cheers, Huang Wen Hui 2014-09-28 2:31 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/27/14 20:29, Hans Petter Selasky wrote: Hi, Can you try the attached patch? --HPS === dev/pci/pci.c == --- dev/pci/pci.c (revision 272064) +++ dev/pci/pci.c (local) @@ -3025,7 +3025,10 @@ /* Update the config register if it changed. */ if (irq != cfg-intline) { cfg-intline = irq; - pci_write_config(dev, PCIR_INTLINE, irq, 1); + if (irq != 255) + pci_write_config(dev, PCIR_INTLINE, irq, 1); + else + printf(Skipped\n); } /* Add this IRQ as rid 0 interrupt resource. */ ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
Just for Ref, xhci works in UEFI mode of Fedora 20: http://sw.gddsn.org.cn/freebsd/linux-dmesg.txt http://sw.gddsn.org.cn/freebsd/linux-lspci.txt 2014-09-22 17:08 GMT+08:00 Huang Wen Hui huang...@gmail.com: xhci still not work, usbconfig list show: ugen0.1: XHCI root HUB 0x8086 at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) Detail log: http://sw.gddsn.org.cn/freebsd/messages-uefi-poll.txt 2014-09-22 16:29 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/22/14 10:26, Huang Wen Hui wrote: Hi, For xhci, this is intpin=a, irq=255, no change. vmstat -i show almost same result: interrupt total rate irq9: acpi0 887 0 irq16: ahci0 119840 20 cpu0:timer 61017 10 irq264: hdac0 11 0 irq265: bge0 100509 16 irq266: xhci0 10 0 irq267: hdac1 1651 0 cpu1:timer 45710 7 cpu7:timer 41966 7 cpu6:timer 43753 7 cpu2:timer 39606 6 cpu3:timer 49974 8 cpu4:timer 46549 7 cpu5:timer 29639 4 irq268: vgapci042382 7 Total 623504104 But these message are UEFI only: Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed Cheers, Huang Wen Hui Can you try setting: hw.usb.xhci.use_polling=1 in /boot/loader.conf Does it make any difference? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 09/22/14 07:42, Huang Wen Hui wrote: verbose log with hw.usb.xhci.debug=15 in BIOS mode: http://sw.gddsn.org.cn/freebsd/messages-bios.txt verbose log with hw.usb.xhci.debug=15 in UEFI mode: http://sw.gddsn.org.cn/freebsd/messages-uefi.txt Hi, It might look as if the XHCI is receiving no interrupts, which is not an XHCI fault. When removing the timestamps and diffing I see changes like: intpin=c, irq=11 - kernel: intpin=c, irq=255 And one ACPI change: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) vs kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
Hi, For xhci, this is intpin=a, irq=255, no change. vmstat -i show almost same result: interrupt total rate irq9: acpi0 887 0 irq16: ahci0 119840 20 cpu0:timer 61017 10 irq264: hdac0 11 0 irq265: bge0 100509 16 irq266: xhci0 10 0 irq267: hdac1 1651 0 cpu1:timer 45710 7 cpu7:timer 41966 7 cpu6:timer 43753 7 cpu2:timer 39606 6 cpu3:timer 49974 8 cpu4:timer 46549 7 cpu5:timer 29639 4 irq268: vgapci042382 7 Total 623504104 But these message are UEFI only: Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed Cheers, Huang Wen Hui 2014-09-22 14:10 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/22/14 07:42, Huang Wen Hui wrote: verbose log with hw.usb.xhci.debug=15 in BIOS mode: http://sw.gddsn.org.cn/freebsd/messages-bios.txt verbose log with hw.usb.xhci.debug=15 in UEFI mode: http://sw.gddsn.org.cn/freebsd/messages-uefi.txt Hi, It might look as if the XHCI is receiving no interrupts, which is not an XHCI fault. When removing the timestamps and diffing I see changes like: intpin=c, irq=11 - kernel: intpin=c, irq=255 And one ACPI change: kernel: ACPI: RSDP 0x7ad8e014 00024 (v02 APPLE ) vs kernel: ACPI: RSDP 0xfe020 00024 (v02 APPLE ) --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
On 09/22/14 10:26, Huang Wen Hui wrote: Hi, For xhci, this is intpin=a, irq=255, no change. vmstat -i show almost same result: interrupt total rate irq9: acpi0 887 0 irq16: ahci0 119840 20 cpu0:timer 61017 10 irq264: hdac0 11 0 irq265: bge0 100509 16 irq266: xhci0 10 0 irq267: hdac1 1651 0 cpu1:timer 45710 7 cpu7:timer 41966 7 cpu6:timer 43753 7 cpu2:timer 39606 6 cpu3:timer 49974 8 cpu4:timer 46549 7 cpu5:timer 29639 4 irq268: vgapci042382 7 Total 623504104 But these message are UEFI only: Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed Cheers, Huang Wen Hui Can you try setting: hw.usb.xhci.use_polling=1 in /boot/loader.conf Does it make any difference? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
xhci still not work, usbconfig list show: ugen0.1: XHCI root HUB 0x8086 at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) Detail log: http://sw.gddsn.org.cn/freebsd/messages-uefi-poll.txt 2014-09-22 16:29 GMT+08:00 Hans Petter Selasky h...@selasky.org: On 09/22/14 10:26, Huang Wen Hui wrote: Hi, For xhci, this is intpin=a, irq=255, no change. vmstat -i show almost same result: interrupt total rate irq9: acpi0 887 0 irq16: ahci0 119840 20 cpu0:timer 61017 10 irq264: hdac0 11 0 irq265: bge0 100509 16 irq266: xhci0 10 0 irq267: hdac1 1651 0 cpu1:timer 45710 7 cpu7:timer 41966 7 cpu6:timer 43753 7 cpu2:timer 39606 6 cpu3:timer 49974 8 cpu4:timer 46549 7 cpu5:timer 29639 4 irq268: vgapci042382 7 Total 623504104 But these message are UEFI only: Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 8 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 12 changed Sep 21 10:37:34 mbp kernel: xhci_root_intr: port 19 changed Cheers, Huang Wen Hui Can you try setting: hw.usb.xhci.use_polling=1 in /boot/loader.conf Does it make any difference? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: xhci problem on UEFI boot MacBookPro 11,3
verbose log with hw.usb.xhci.debug=15 in BIOS mode: http://sw.gddsn.org.cn/freebsd/messages-bios.txt verbose log with hw.usb.xhci.debug=15 in UEFI mode: http://sw.gddsn.org.cn/freebsd/messages-uefi.txt 2014-09-20 20:03 GMT+08:00 Huang Wen Hui huang...@gmail.com: I try to UEFI boot 10-STABLE on MacBookPro 11,3, found that xhci does not work anymore, It works in BIOS boot. also try to set hw.usb.xhci.msi=0 and hw.usb.xhci.xhci_port_route=-1, no lucky. verbose boot log can be found at : http://sw.gddsn.org.cn/freebsd/uefi-messages.txt usbconfig list show: ugen0.1: XHCI root HUB 0x8086 at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) In BIOS boot, usbconfig list show: ugen0.1: XHCI root HUB 0x8086 at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: BRCM20702 Hub Apple Inc. at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (94mA) ugen0.3: product 0x820a vendor 0x05ac at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen0.4: product 0x820b vendor 0x05ac at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen0.5: Bluetooth USB Host Controller Apple Inc. at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen0.6: Apple Internal Keyboard Trackpad Apple Inc. at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (40mA) ugen0.7: Card Reader Apple at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (224mA) Cheers, Huang Wen Hui ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org