Re: Install 10.0-RC3 on MacBookPro Late 2013
On Tue, 7 Jan 2014, Lundberg, Johannes wrote: I have also experienced random hangs. However, I'm not sure if they are really hangs or just the USB driver stopped working. Since mouse pad, keyboard everything is run through USB I couldn't tell really what happened. It seems that the frequency of these hangs depends on the speed of the CPU. With powerd -a max -b max the machine can last hours without hanging, with the CPU throttled down the machine can hang within seconds. The MBA at least defaults to a CPU speed midway between minimum and maximum. Did you have any problems with the identifier of the ssd? When I first tried FreeBSD on MBA2013 it couldn't identify the ssd because there was some weird characters in the ssd's identifier. Gavin helped me create a patch that solved the problem temporary (by hard coding a different ident) but I'm not sure if a permanent fix has been merged. Yes, mav@ committed the real fix for this in r258683. Thanks, Gavin -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 12:05 PM, Huang Wen Hui huang...@gmail.com wrote: USB problem fixed by revert to r245731, set hint.ahci.0.msi=0 seem to fixed timeout problem of AHCI. Random hang I think still exist, will check later... Cheers, Huang Wen Hui 2014/1/7 Lundberg, Johannes johan...@brilliantservice.co.jp Hi Huang Good job!! By works, which parts do you mean has been fixed? 1. USB problem or 2. AHCI timeout problem or 3. Random hang Best regards! -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 11:30 AM, Huang Wen Hui huang...@gmail.comwrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-current@freebsd.org mailing list
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/11/14 05:14, Huang Wen Hui wrote: Hi, I got one problem when I unplug/plug Buffalo WLI-UC-GNM, it is USB WLAN. All USB devices become to disconnected after unplug and plug: Try this: http://svnweb.freebsd.org/changeset/base/260535 --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
I try many times plug/unplug, this patch basically works, but I still got the previous problem one time. Cheers, Huang Wen Hui 2014/1/11 Hans Petter Selasky h...@bitfrost.no On 01/11/14 05:14, Huang Wen Hui wrote: Hi, I got one problem when I unplug/plug Buffalo WLI-UC-GNM, it is USB WLAN. All USB devices become to disconnected after unplug and plug: Try this: http://svnweb.freebsd.org/changeset/base/260535 --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi, I got one problem when I unplug/plug Buffalo WLI-UC-GNM, it is USB WLAN. All USB devices become to disconnected after unplug and plug: ugen0.9: Ralink at usbus0 run0: 1.0 on usbus0 run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address 4c:e6:76:d4:c9:5e wlan0: Ethernet address: 4c:e6:76:d4:c9:5e run0: firmware RT2870 ver. 0.33 loaded wlan0: link state changed to UP ugen0.9: Ralink at usbus0 (disconnected) run0: at uhub0, port 1, addr 8 (disconnected) wlan0: link state changed to DOWN xhci0: Port routing mask set to 0x usb_alloc_device: device init 9 failed (USB_ERR_IOERROR, ignored) ugen0.9: Unknown at usbus0 (disconnected) uhub_reattach_port: could not allocate new device ugen0.2: Logitech at usbus0 (disconnected) ums0: at uhub0, port 5, addr 1 (disconnected) ugen0.3: Apple Inc. at usbus0 (disconnected) uhub1: at uhub0, port 8, addr 2 (disconnected) ugen0.4: vendor 0x05ac at usbus0 (disconnected) ukbd0: at uhub1, port 1, addr 3 (disconnected) ugen0.5: vendor 0x05ac at usbus0 (disconnected) ums1: at uhub1, port 2, addr 4 (disconnected) ugen0.6: Apple Inc. at usbus0 (disconnected) ugen0.7: Apple Inc. at usbus0 (disconnected) ukbd1: at uhub0, port 12, addr 6 (disconnected) uhid0: at uhub0, port 12, addr 6 (disconnected) ums2: at uhub0, port 12, addr 6 (disconnected) ugen0.8: Apple at usbus0 (disconnected) umass0: at uhub0, port 19, addr 7 (disconnected) da0 at umass-sim0 bus 0 scbus1 target 0 lun 0 da0: APPLE SD Card Reader 3.00 s/n 0820 detached (da0:umass-sim0:0:0:0): Periph destroyed I still revert xhci_interrupt back to 9.1R, unplug/plug this WLAN, xhci driver works perfect. Cheers, Huang Wen Hui 2014/1/7 Hans Petter Selasky h...@bitfrost.no On 01/07/14 08:07, Huang Wen Hui wrote: Hi, This patch fixed my problem! Thanks, Huang Wen Hui. http://svnweb.freebsd.org/changeset/base/260388 --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Huang's MBP: xhci0@pci0:0:20:0:class=0x0c0330 card=0x72708086 chip=0x8c318086 rev=0x05 hdr=0x00 seems to be different from my MBA. Is there any more information I can provide that can help us come closer to finding a solution? -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Wed, Jan 8, 2014 at 9:37 AM, Lundberg, Johannes johan...@brilliantservice.co.jp wrote: Hi Hans Yeah I made sure I got the latest source that contained your latest commit. Sorry no patch at this moment. I've been busy with other things lately so I haven't worked on this for some time now but felt the urge to give it a try when it seemed to be OK on MBP.. Output from pciconf -lv xhci0@pci0:0:20:0: class=0x0c0330 card=0x72708086 chip=0x9c318086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point-LP USB xHCI HC' class = serial bus sublass = USB -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 10:29 PM, Hans Petter Selasky h...@bitfrost.nowrote: On 01/07/14 14:22, Lundberg, Johannes wrote: Lucky you! I tried the latest src just now, made memstick on amd64 and ran on MBA2013 but no luck. Reverting xhci* to 243780 as I've done before made it pass the boot sequence and to the installer. Was hoping the same fix applied to Air as well:( Hi Johannes, Do you have a patch which fixes the problem instead of reverting? You are sure you tested the latest and greatest? Can you show pciconf -lv (only USB controllers) ? --HPS -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/07/14 08:07, Huang Wen Hui wrote: Hi, This patch fixed my problem! Thanks, Huang Wen Hui. http://svnweb.freebsd.org/changeset/base/260388 --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi, After USB problem fixed, I run some test: builworld/builkernel, mate, chrome and eclipse, every thing is fine, no random hang! I guess the hang problem is gone with USB problem fixed... Cheers, Huang Wen Hui 2014/1/7 Huang Wen Hui huang...@gmail.com USB problem fixed by revert to r245731, set hint.ahci.0.msi=0 seem to fixed timeout problem of AHCI. Random hang I think still exist, will check later... Cheers, Huang Wen Hui 2014/1/7 Lundberg, Johannes johan...@brilliantservice.co.jp Hi Huang Good job!! By works, which parts do you mean has been fixed? 1. USB problem or 2. AHCI timeout problem or 3. Random hang Best regards! -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 11:30 AM, Huang Wen Hui huang...@gmail.comwrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Lucky you! I tried the latest src just now, made memstick on amd64 and ran on MBA2013 but no luck. Reverting xhci* to 243780 as I've done before made it pass the boot sequence and to the installer. Was hoping the same fix applied to Air as well :( On Tuesday, January 7, 2014, Huang Wen Hui wrote: Hi, After USB problem fixed, I run some test: builworld/builkernel, mate, chrome and eclipse, every thing is fine, no random hang! I guess the hang problem is gone with USB problem fixed... Cheers, Huang Wen Hui 2014/1/7 Huang Wen Hui huang...@gmail.com USB problem fixed by revert to r245731, set hint.ahci.0.msi=0 seem to fixed timeout problem of AHCI. Random hang I think still exist, will check later... Cheers, Huang Wen Hui 2014/1/7 Lundberg, Johannes johan...@brilliantservice.co.jp Hi Huang Good job!! By works, which parts do you mean has been fixed? 1. USB problem or 2. AHCI timeout problem or 3. Random hang Best regards! -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 11:30 AM, Huang Wen Hui huang...@gmail.com wrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/07/14 14:22, Lundberg, Johannes wrote: Lucky you! I tried the latest src just now, made memstick on amd64 and ran on MBA2013 but no luck. Reverting xhci* to 243780 as I've done before made it pass the boot sequence and to the installer. Was hoping the same fix applied to Air as well:( Hi Johannes, Do you have a patch which fixes the problem instead of reverting? You are sure you tested the latest and greatest? Can you show pciconf -lv (only USB controllers) ? --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi Hans Yeah I made sure I got the latest source that contained your latest commit. Sorry no patch at this moment. I've been busy with other things lately so I haven't worked on this for some time now but felt the urge to give it a try when it seemed to be OK on MBP.. Output from pciconf -lv xhci0@pci0:0:20:0: class=0x0c0330 card=0x72708086 chip=0x9c318086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point-LP USB xHCI HC' class = serial bus sublass = USB -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 10:29 PM, Hans Petter Selasky h...@bitfrost.nowrote: On 01/07/14 14:22, Lundberg, Johannes wrote: Lucky you! I tried the latest src just now, made memstick on amd64 and ran on MBA2013 but no luck. Reverting xhci* to 243780 as I've done before made it pass the boot sequence and to the installer. Was hoping the same fix applied to Air as well:( Hi Johannes, Do you have a patch which fixes the problem instead of reverting? You are sure you tested the latest and greatest? Can you show pciconf -lv (only USB controllers) ? --HPS -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
The xhci code from 9.1R is OK, but there are a lot of USB_ERR_TIMEOUT in 9.2R... 2014/1/6 Adrian Chadd adr...@freebsd.org .. are you getting this USB_ERR_TIMEOUT even with the xhci code from -9? -a On 5 January 2014 23:10, Hans Petter Selasky h...@bitfrost.no wrote: On 01/06/14 05:11, Huang Wen Hui wrote: Hi, USB still have a lot of USB_ERR_TIMEOUT, but Internal keyboard and external keyboard found and works! usb disk also found, but booting stop at: Mounting from ufs:/dev/da0a failed with error 6. or a lot of cam Retrying command. Cheers, Huang Wen Hui Hi, I think there is an IRQ problem. Either some IRQ is not handled or IRQ's are not forwarded to the drivers properly. You might want to compile the XHCI debugging variable to 16 inside dev/usb/controller/xhci.c, and watch what is going on. --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/06/14 09:19, Huang Wen Hui wrote: The xhci code from 9.1R is OK, but there are a lot of USB_ERR_TIMEOUT in 9.2R... Have you copied the USB code from 9.1R to 9.2R and made a build? --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hans, I got this message, and full log in http://sw.gddsn.org.cn/freebsd/dmesg-xhci-debug.txt Cheers, Huang Wen Hui. % grep xhci dmesg-xhci-debug.txt | more xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: attempting to allocate 1 MSI vectors (8 supported) xhci0: using IRQ 266 for MSI xhci0: MSI enabled xhci_halt_controller: xhci_start_controller: xhci_start_controller: CAPLENGTH=0x80 xhci_start_controller: RUNTIMEOFFSET=0x2000 xhci_start_controller: DOOROFFSET=0x3000 xhci_start_controller: xHCI version = 0x0100 xhci_start_controller: HCS0 = 0x200077c1 xhci0: 32 byte context size. xhci_start_controller: CONFIG=0x - 0x0020 xhci_start_controller: Max slots: 32 xhci_start_controller: Max scratch: 16 xhci_start_controller: HCS2=0x8454 xhci_start_controller: ERSTSZ=0x - 0x0001 xhci_start_controller: ERDP(0)=0x06881080 xhci_start_controller: ERSTBA(0)=0x06881000 xhci_start_controller: CRCR=0x06881d80 xhci_interrupt_poll: event[0] = 34 (0x0800 0x0100 0x8801) xhci_interrupt_poll: Unhandled event = 34 xhci_interrupt_poll: event[1] = 34 (0x0c00 0x0100 0x8801) xhci_interrupt_poll: Unhandled event = 34 xhci_interrupt_poll: event[2] = 34 (0x1300 0x0100 0x8801) xhci_interrupt_poll: Unhandled event = 34 xhci0: Port routing mask set to 0x usbus0 on xhci0 xhci0: usbpf: Attached xhci_interrupt: real interrupt (status=0x0008) xhci_interrupt: real interrupt (status=0x0008) xhci_set_hw_power: xhci_ep_init: endpoint=0xf8002f68a0d8, addr=0, endpt=0, mode=0 xhci_roothub_exec: type=0x00 request=0x05 wLen=0x wValue=0x0001 wIndex=0x xhci_roothub_exec: type=0x80 request=0x06 wLen=0x0012 wValue=0x0100 wIndex=0x xhci_roothub_exec: type=0x80 request=0x06 wLen=0x0002 wValue=0x0300 wIndex=0x xhci_roothub_exec: type=0x80 request=0x06 wLen=0x0004 wValue=0x0300 wIndex=0x xhci_roothub_exec: type=0x80 request=0x06 wLen=0x0002 wValue=0x0301 wIndex=0x0001 xhci_roothub_exec: type=0x80 request=0x06 wLen=0x000e wValue=0x0301 wIndex=0x0001 xhci_roothub_exec: type=0x80 request=0x06 wLen=0x0002 wValue=0x0302 wIndex=0x0001 xhci_roothub_exec: type=0x80 request=0x06 wLen=0x001c wValue=0x0302 wIndex=0x0001 xhci_roothub_exec: type=0x80 request=0x06 wLen=0x0009 wValue=0x0200 wIndex=0x xhci_roothub_exec: type=0x80 request=0x06 wLen=0x001f wValue=0x0200 wIndex=0x xhci_roothub_exec: type=0x00 request=0x09 wLen=0x wValue=0x0001 wIndex=0x xhci_ep_init: endpoint=0xf80007407a00, addr=1, endpt=129, mode=0 xhci_roothub_exec: type=0xa0 request=0x06 wLen=0x000c wValue=0x2a00 wIndex=0x xhci_roothub_exec: type=0xa0 request=0x06 wLen=0x000e wValue=0x2a00 wIndex=0x xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0001 xhci_roothub_exec: set port power 1 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0002 xhci_roothub_exec: set port power 2 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0003 xhci_roothub_exec: set port power 3 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0004 xhci_roothub_exec: set port power 4 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0005 xhci_roothub_exec: set port power 5 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0006 xhci_roothub_exec: set port power 6 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0007 xhci_roothub_exec: set port power 7 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0008 xhci_roothub_exec: set port power 8 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0009 xhci_roothub_exec: set port power 9 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x000a xhci_roothub_exec: set port power 10 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x000b xhci_roothub_exec: set port power 11 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x000c xhci_roothub_exec: set port power 12 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x000d xhci_roothub_exec: set port power 13 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x000e xhci_roothub_exec: set port power 14 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x000f xhci_roothub_exec: set port power 15 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0010 xhci_roothub_exec: set port power 16 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0011 xhci_roothub_exec: set port power 17 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0012 xhci_roothub_exec: set port power 18 xhci_roothub_exec: type=0x23 request=0x03 wLen=0x wValue=0x0008 wIndex=0x0013
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/06/14 10:41, Huang Wen Hui wrote: % grep xhci dmesg-xhci-debug.txt | more xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: attempting to allocate 1 MSI vectors (8 supported) xhci0: using IRQ 266 for MSI xhci0: MSI enabled Those USB timeouts are most likely due to port routing not working properly. It is because intel did something special to their lynx point series. Try to set : hw.usb.xhci.xhci_port_route = -1 in /boot/loader.conf --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
2014/1/6 Hans Petter Selasky h...@bitfrost.no On 01/06/14 10:41, Huang Wen Hui wrote: % grep xhci dmesg-xhci-debug.txt | more xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: attempting to allocate 1 MSI vectors (8 supported) xhci0: using IRQ 266 for MSI xhci0: MSI enabled Those USB timeouts are most likely due to port routing not working properly. It is because intel did something special to their lynx point series. Try to set : hw.usb.xhci.xhci_port_route = -1 in /boot/loader.conf Try this before, hw.usb.xhci.xhci_port_route = -1 make almost of all usb devices not found. external mouse seems to no power at all. # usbconfig list ugen0.1: XHCI root HUB 0x8086 at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: product 0x8406 vendor 0x05ac at usbus0, cfg=255 md=HOST spd=SUPER (5.0Gbps) pwr=ON (100mA) --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/06/14 11:15, Huang Wen Hui wrote: 2014/1/6 Hans Petter Selasky h...@bitfrost.no On 01/06/14 10:41, Huang Wen Hui wrote: % grep xhci dmesg-xhci-debug.txt | more xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: attempting to allocate 1 MSI vectors (8 supported) xhci0: using IRQ 266 for MSI xhci0: MSI enabled Those USB timeouts are most likely due to port routing not working properly. It is because intel did something special to their lynx point series. Try to set : hw.usb.xhci.xhci_port_route = -1 in /boot/loader.conf Try this before, hw.usb.xhci.xhci_port_route = -1 make almost of all usb devices not found. external mouse seems to no power at all. # usbconfig list ugen0.1: XHCI root HUB 0x8086 at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: product 0x8406 vendor 0x05ac at usbus0, cfg=255 md=HOST spd=SUPER (5.0Gbps) pwr=ON (100mA) Hi, If you check using pciconf -lv, is there a USB controller which has no driver attached? Typically there should be an EHCI/OHCI/UHCI companion controller. When the port route is set to -1 these devices should attach to the companion controller instead. --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
No, from pciconf -lv, I only found one USB is xhci driver, other none I don't think is a USB controller. # pciconf -lv hostb0@pci0:0:0:0:class=0x06 card=0x012f106b chip=0x0d048086 rev=0x08 hdr=0x00 vendor = 'Intel Corporation' class = bridge subclass = HOST-PCI pcib1@pci0:0:1:0:class=0x060400 card=0x012f106b chip=0x0d018086 rev=0x08 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI pcib2@pci0:0:1:1:class=0x060400 card=0x012f106b chip=0x0d058086 rev=0x08 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI xhci0@pci0:0:20:0:class=0x0c0330 card=0x72708086 chip=0x8c318086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point USB xHCI Host Controller' class = serial bus subclass = USB none0@pci0:0:22:0:class=0x078000 card=0x72708086 chip=0x8c3a8086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point MEI Controller' class = simple comms hdac1@pci0:0:27:0:class=0x040300 card=0x72708086 chip=0x8c208086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point High Definition Audio Controller' class = multimedia subclass = HDA pcib11@pci0:0:28:0:class=0x060400 card=0x72708086 chip=0x8c108086 rev=0xd5 hdr=0x01 vendor = 'Intel Corporation' device = 'Lynx Point PCI Express Root Port' class = bridge subclass = PCI-PCI pcib12@pci0:0:28:2:class=0x060400 card=0x72708086 chip=0x8c148086 rev=0xd5 hdr=0x01 vendor = 'Intel Corporation' device = 'Lynx Point PCI Express Root Port' class = bridge subclass = PCI-PCI pcib13@pci0:0:28:3:class=0x060400 card=0x72708086 chip=0x8c168086 rev=0xd5 hdr=0x01 vendor = 'Intel Corporation' device = 'Lynx Point PCI Express Root Port' class = bridge subclass = PCI-PCI pcib14@pci0:0:28:4:class=0x060400 card=0x72708086 chip=0x8c188086 rev=0xd5 hdr=0x01 vendor = 'Intel Corporation' device = 'Lynx Point PCI Express Root Port' class = bridge subclass = PCI-PCI isab0@pci0:0:31:0:class=0x060100 card=0x72708086 chip=0x8c4b8086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point LPC Controller' class = bridge subclass = PCI-ISA none1@pci0:0:31:3:class=0x0c0500 card=0x72708086 chip=0x8c228086 rev=0x05 hdr=0x00 vendor = 'Intel Corporation' device = 'Lynx Point SMBus Controller' class = serial bus subclass = SMBus vgapci0@pci0:1:0:0:class=0x03 card=0x0130106b chip=0x0fe910de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' class = display subclass = VGA hdac0@pci0:1:0:1:class=0x040300 card=0x0130106b chip=0x0e1b10de rev=0xa1 hdr=0x00 vendor = 'NVIDIA Corporation' class = multimedia subclass = HDA pcib3@pci0:6:0:0:class=0x060400 card=0x chip=0x156d8086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI pcib4@pci0:7:0:0:class=0x060400 card=0x chip=0x156d8086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI pcib5@pci0:7:3:0:class=0x060400 card=0x chip=0x156d8086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI pcib8@pci0:7:4:0:class=0x060400 card=0x chip=0x156d8086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI pcib9@pci0:7:5:0:class=0x060400 card=0x chip=0x156d8086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI pcib10@pci0:7:6:0:class=0x060400 card=0x chip=0x156d8086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' class = bridge subclass = PCI-PCI none2@pci0:8:0:0:class=0x088000 card=0x chip=0x156c8086 rev=0x00 hdr=0x00 vendor = 'Intel Corporation' class = base peripheral pcib6@pci0:9:0:0:class=0x060400 card=0x chip=0x15498086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' device = 'DSL3510 Thunderbolt Controller [Cactus Ridge]' class = bridge subclass = PCI-PCI pcib7@pci0:10:0:0:class=0x060400 card=0x chip=0x15498086 rev=0x00 hdr=0x01 vendor = 'Intel Corporation' device = 'DSL3510 Thunderbolt Controller [Cactus Ridge]' class = bridge subclass = PCI-PCI bge0@pci0:11:0:0:class=0x02 card=0x00f6106b chip=0x168214e4 rev=0x00 hdr=0x00 vendor = 'Broadcom Corporation' device = 'NetXtreme BCM57762 Gigabit Ethernet PCIe' class = network subclass = ethernet none3@pci0:3:0:0:class=0x028000 card=0x0134106b chip=0x43a014e4 rev=0x03 hdr=0x00 vendor =
Re: Install 10.0-RC3 on MacBookPro Late 2013
Yes, I did it, works like 9.1R. 2014/1/6 Hans Petter Selasky h...@bitfrost.no On 01/06/14 09:19, Huang Wen Hui wrote: The xhci code from 9.1R is OK, but there are a lot of USB_ERR_TIMEOUT in 9.2R... Have you copied the USB code from 9.1R to 9.2R and made a build? --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Right, but it used to work. That's the confusing bit. How'd you make it not work? :) -a On 6 January 2014 01:52, Hans Petter Selasky h...@bitfrost.no wrote: On 01/06/14 10:41, Huang Wen Hui wrote: % grep xhci dmesg-xhci-debug.txt | more xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: attempting to allocate 1 MSI vectors (8 supported) xhci0: using IRQ 266 for MSI xhci0: MSI enabled Those USB timeouts are most likely due to port routing not working properly. It is because intel did something special to their lynx point series. Try to set : hw.usb.xhci.xhci_port_route = -1 in /boot/loader.conf --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
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. --HPS -a On 6 January 2014 01:52, Hans Petter Selasky h...@bitfrost.no wrote: On 01/06/14 10:41, Huang Wen Hui wrote: % grep xhci dmesg-xhci-debug.txt | more xhci0: Intel Lynx Point USB 3.0 controller mem 0xc1e0-0xc1e0 at device 20.0 on pci0 xhci0: attempting to allocate 1 MSI vectors (8 supported) xhci0: using IRQ 266 for MSI xhci0: MSI enabled Those USB timeouts are most likely due to port routing not working properly. It is because intel did something special to their lynx point series. Try to set : hw.usb.xhci.xhci_port_route = -1 in /boot/loader.conf --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
USB problem fixed by revert to r245731, set hint.ahci.0.msi=0 seem to fixed timeout problem of AHCI. Random hang I think still exist, will check later... Cheers, Huang Wen Hui 2014/1/7 Lundberg, Johannes johan...@brilliantservice.co.jp Hi Huang Good job!! By works, which parts do you mean has been fixed? 1. USB problem or 2. AHCI timeout problem or 3. Random hang Best regards! -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 11:30 AM, Huang Wen Hui huang...@gmail.com wrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi Huang Good job!! By works, which parts do you mean has been fixed? 1. USB problem or 2. AHCI timeout problem or 3. Random hang Best regards! -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 11:30 AM, Huang Wen Hui huang...@gmail.com wrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi Huang I have also experienced random hangs. However, I'm not sure if they are really hangs or just the USB driver stopped working. Since mouse pad, keyboard everything is run through USB I couldn't tell really what happened. Did you have any problems with the identifier of the ssd? When I first tried FreeBSD on MBA2013 it couldn't identify the ssd because there was some weird characters in the ssd's identifier. Gavin helped me create a patch that solved the problem temporary (by hard coding a different ident) but I'm not sure if a permanent fix has been merged. -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 12:05 PM, Huang Wen Hui huang...@gmail.com wrote: USB problem fixed by revert to r245731, set hint.ahci.0.msi=0 seem to fixed timeout problem of AHCI. Random hang I think still exist, will check later... Cheers, Huang Wen Hui 2014/1/7 Lundberg, Johannes johan...@brilliantservice.co.jp Hi Huang Good job!! By works, which parts do you mean has been fixed? 1. USB problem or 2. AHCI timeout problem or 3. Random hang Best regards! -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 11:30 AM, Huang Wen Hui huang...@gmail.comwrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/07/14 03:30, Huang Wen Hui wrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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. Hi, We need to take this step by step. Thanks for tracing this down! Can you test the attached patch towards -current. Thank you! --HPS === ./xhci.c == --- ./xhci.c (revision 260319) +++ ./xhci.c (local) @@ -1582,8 +1582,6 @@ USB_BUS_LOCK(sc-sc_bus); status = XREAD4(sc, oper, XHCI_USBSTS); - if (status == 0) - goto done; /* acknowledge interrupts */ @@ -1591,10 +1589,8 @@ DPRINTFN(16, real interrupt (status=0x%08x)\n, status); - if (status XHCI_STS_EINT) { - /* check for event(s) */ - xhci_interrupt_poll(sc); - } + /* check for event(s) */ + xhci_interrupt_poll(sc); if (status (XHCI_STS_PCD | XHCI_STS_HCH | XHCI_STS_HSE | XHCI_STS_HCE)) { @@ -1618,7 +1614,6 @@ __FUNCTION__); } } -done: USB_BUS_UNLOCK(sc-sc_bus); } ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi, 2014/1/7 Lundberg, Johannes johan...@brilliantservice.co.jp Hi Huang I have also experienced random hangs. However, I'm not sure if they are really hangs or just the USB driver stopped working. Since mouse pad, keyboard everything is run through USB I couldn't tell really what happened. If LAN is on, you can ping to check if the system is really hangs. Did you have any problems with the identifier of the ssd? When I first tried FreeBSD on MBA2013 it couldn't identify the ssd because there was some weird characters in the ssd's identifier. Gavin helped me create a patch that solved the problem temporary (by hard coding a different ident) but I'm not sure if a permanent fix has been merged. NO, my MBP have customized 1TB SSD: # camcontrol identify ada0 pass0: APPLE SSD SM1024F UXM6JA1Q ATA-8 SATA 3.x device pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) protocol ATA/ATAPI-8 SATA 3.x device model APPLE SSD SM1024F firmware revision UXM6JA1Q serial number S1K6NYADC02996 WWN 5002538655584d30 cylinders 16383 heads 16 sectors/track 63 sector size logical 512, physical 4096, offset 0 LBA supported 268435455 sectors LBA48 supported 1954210120 sectors PIO supported PIO4 DMA supported WDMA2 UDMA6 media RPM non-rotating -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 12:05 PM, Huang Wen Hui huang...@gmail.com wrote: USB problem fixed by revert to r245731, set hint.ahci.0.msi=0 seem to fixed timeout problem of AHCI. Random hang I think still exist, will check later... Cheers, Huang Wen Hui 2014/1/7 Lundberg, Johannes johan...@brilliantservice.co.jp Hi Huang Good job!! By works, which parts do you mean has been fixed? 1. USB problem or 2. AHCI timeout problem or 3. Random hang Best regards! -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 7, 2014 at 11:30 AM, Huang Wen Hui huang...@gmail.comwrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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 h...@bitfrost.no 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 ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi, This patch fixed my problem! Thanks, Huang Wen Hui. 2014/1/7 Hans Petter Selasky h...@bitfrost.no On 01/07/14 03:30, Huang Wen Hui wrote: Hans, This wild guess do NOT works. I binary sect xhci.c in SVN, found that *r245732 *http://svnweb.freebsd.org/base?view=revisionrevision=245732* introduce the bug.* http://svnweb.freebsd.org/base?view=revisionrevision=245732 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. Hi, We need to take this step by step. Thanks for tracing this down! Can you test the attached patch towards -current. Thank you! --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Install 10.0-RC3 on MacBookPro Late 2013
Hi, I am trying to install FreeBSD on MacBookPro Late 2013, I got 3 main problems: 1. USB problem This MacBookPro model only have xhci controller, 10.0-RC3 and 9.2R not working, keyboard and touchpad not respond. Error messages are xhci_do_command: Command timeout! and USB_ERR_TIMEOUT. I also try to set hw.usb.xhci.msi=0, no lucky. But 9.1R is OK, I copy xhci*.* file from 9.1R to 10.0, with very small change, and xhci works under 10.0-RC3! dmesg in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/dmesg-10.0.txt vmstat -i in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/vmstat-10.0.txt pciconf in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/pciconf.txt dmesg in 10.0 + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/dmesg-10.0+9.1.txt vmstat -i in + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1.txt 2. AHCI timeout problem After booting, system quickly hit ahci timeout problem, I have to set camcontrol tags ada0 -N 1. this can decrease timeout problem, but still happen when running heavy IO. hint.ahci.0.msi=0 seem to fix this problem, but ahci and xhci use same IRQ 16, this make 10.0+9.1xhci unstable:( Internal keyboard and touchpad not working, external keyboard and mouse working. vmstat -i in 10.0+9.1xhci with hint.ahci.0.msi=0: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1+msi.txt camcontrol identify: http://sw.gddsn.org.cn/freebsd/cam-identify.txt smartctl: http://sw.gddsn.org.cn/freebsd/smartctl.txt 3. Random hang Sometimes the system(10.0+9.1xhci) hang without any message, keyboard, mouse and ping ping not respond. console no message, ctrl+alt+esc also could not break into ddb, I may try firewire/dcons, help it can get some useful information. I really like to have a working freebsd on MacBookPro, anything I can provide or any ideas? Cheers, Huang Wen Hui ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi! Would you mind a recent 11-amd64 snapshot? Hans has committed a few fixes to the driver recently. Thanks! -a On 5 January 2014 19:01, Huang Wen Hui huang...@gmail.com wrote: Hi, I am trying to install FreeBSD on MacBookPro Late 2013, I got 3 main problems: 1. USB problem This MacBookPro model only have xhci controller, 10.0-RC3 and 9.2R not working, keyboard and touchpad not respond. Error messages are xhci_do_command: Command timeout! and USB_ERR_TIMEOUT. I also try to set hw.usb.xhci.msi=0, no lucky. But 9.1R is OK, I copy xhci*.* file from 9.1R to 10.0, with very small change, and xhci works under 10.0-RC3! dmesg in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/dmesg-10.0.txt vmstat -i in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/vmstat-10.0.txt pciconf in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/pciconf.txt dmesg in 10.0 + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/dmesg-10.0+9.1.txt vmstat -i in + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1.txt 2. AHCI timeout problem After booting, system quickly hit ahci timeout problem, I have to set camcontrol tags ada0 -N 1. this can decrease timeout problem, but still happen when running heavy IO. hint.ahci.0.msi=0 seem to fix this problem, but ahci and xhci use same IRQ 16, this make 10.0+9.1xhci unstable:( Internal keyboard and touchpad not working, external keyboard and mouse working. vmstat -i in 10.0+9.1xhci with hint.ahci.0.msi=0: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1+msi.txt camcontrol identify: http://sw.gddsn.org.cn/freebsd/cam-identify.txt smartctl: http://sw.gddsn.org.cn/freebsd/smartctl.txt 3. Random hang Sometimes the system(10.0+9.1xhci) hang without any message, keyboard, mouse and ping ping not respond. console no message, ctrl+alt+esc also could not break into ddb, I may try firewire/dcons, help it can get some useful information. I really like to have a working freebsd on MacBookPro, anything I can provide or any ideas? Cheers, Huang Wen Hui ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi, I also install 11-amd64 snapshot 2 days ago, I remember AHCI is OK, but USB and random hang are still existed. I will confirm it later. Cheers, Huang Wen Hui. 2014/1/6 Adrian Chadd adr...@freebsd.org Hi! Would you mind a recent 11-amd64 snapshot? Hans has committed a few fixes to the driver recently. Thanks! -a On 5 January 2014 19:01, Huang Wen Hui huang...@gmail.com wrote: Hi, I am trying to install FreeBSD on MacBookPro Late 2013, I got 3 main problems: 1. USB problem This MacBookPro model only have xhci controller, 10.0-RC3 and 9.2R not working, keyboard and touchpad not respond. Error messages are xhci_do_command: Command timeout! and USB_ERR_TIMEOUT. I also try to set hw.usb.xhci.msi=0, no lucky. But 9.1R is OK, I copy xhci*.* file from 9.1R to 10.0, with very small change, and xhci works under 10.0-RC3! dmesg in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/dmesg-10.0.txt vmstat -i in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/vmstat-10.0.txt pciconf in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/pciconf.txt dmesg in 10.0 + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/dmesg-10.0+9.1.txt vmstat -i in + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1.txt 2. AHCI timeout problem After booting, system quickly hit ahci timeout problem, I have to set camcontrol tags ada0 -N 1. this can decrease timeout problem, but still happen when running heavy IO. hint.ahci.0.msi=0 seem to fix this problem, but ahci and xhci use same IRQ 16, this make 10.0+9.1xhci unstable:( Internal keyboard and touchpad not working, external keyboard and mouse working. vmstat -i in 10.0+9.1xhci with hint.ahci.0.msi=0: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1+msi.txt camcontrol identify: http://sw.gddsn.org.cn/freebsd/cam-identify.txt smartctl: http://sw.gddsn.org.cn/freebsd/smartctl.txt 3. Random hang Sometimes the system(10.0+9.1xhci) hang without any message, keyboard, mouse and ping ping not respond. console no message, ctrl+alt+esc also could not break into ddb, I may try firewire/dcons, help it can get some useful information. I really like to have a working freebsd on MacBookPro, anything I can provide or any ideas? Cheers, Huang Wen Hui ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi Huang I have also been working on getting FreeBSD running on the new MBA and I'm basically at the same place as you. Please post any progress you have to the current mailing list. -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Mon, Jan 6, 2014 at 12:20 PM, Huang Wen Hui huang...@gmail.com wrote: Hi, I also install 11-amd64 snapshot 2 days ago, I remember AHCI is OK, but USB and random hang are still existed. I will confirm it later. Cheers, Huang Wen Hui. 2014/1/6 Adrian Chadd adr...@freebsd.org Hi! Would you mind a recent 11-amd64 snapshot? Hans has committed a few fixes to the driver recently. Thanks! -a On 5 January 2014 19:01, Huang Wen Hui huang...@gmail.com wrote: Hi, I am trying to install FreeBSD on MacBookPro Late 2013, I got 3 main problems: 1. USB problem This MacBookPro model only have xhci controller, 10.0-RC3 and 9.2R not working, keyboard and touchpad not respond. Error messages are xhci_do_command: Command timeout! and USB_ERR_TIMEOUT. I also try to set hw.usb.xhci.msi=0, no lucky. But 9.1R is OK, I copy xhci*.* file from 9.1R to 10.0, with very small change, and xhci works under 10.0-RC3! dmesg in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/dmesg-10.0.txt vmstat -i in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/vmstat-10.0.txt pciconf in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/pciconf.txt dmesg in 10.0 + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/dmesg-10.0+9.1.txt vmstat -i in + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1.txt 2. AHCI timeout problem After booting, system quickly hit ahci timeout problem, I have to set camcontrol tags ada0 -N 1. this can decrease timeout problem, but still happen when running heavy IO. hint.ahci.0.msi=0 seem to fix this problem, but ahci and xhci use same IRQ 16, this make 10.0+9.1xhci unstable:( Internal keyboard and touchpad not working, external keyboard and mouse working. vmstat -i in 10.0+9.1xhci with hint.ahci.0.msi=0: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1+msi.txt camcontrol identify: http://sw.gddsn.org.cn/freebsd/cam-identify.txt smartctl: http://sw.gddsn.org.cn/freebsd/smartctl.txt 3. Random hang Sometimes the system(10.0+9.1xhci) hang without any message, keyboard, mouse and ping ping not respond. console no message, ctrl+alt+esc also could not break into ddb, I may try firewire/dcons, help it can get some useful information. I really like to have a working freebsd on MacBookPro, anything I can provide or any ideas? Cheers, Huang Wen Hui ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
Hi, USB still have a lot of USB_ERR_TIMEOUT, but Internal keyboard and external keyboard found and works! usb disk also found, but booting stop at: Mounting from ufs:/dev/da0a failed with error 6. or a lot of cam Retrying command. Cheers, Huang Wen Hui 2014/1/6 Huang Wen Hui huang...@gmail.com Hi, I also install 11-amd64 snapshot 2 days ago, I remember AHCI is OK, but USB and random hang are still existed. I will confirm it later. Cheers, Huang Wen Hui. 2014/1/6 Adrian Chadd adr...@freebsd.org Hi! Would you mind a recent 11-amd64 snapshot? Hans has committed a few fixes to the driver recently. Thanks! -a On 5 January 2014 19:01, Huang Wen Hui huang...@gmail.com wrote: Hi, I am trying to install FreeBSD on MacBookPro Late 2013, I got 3 main problems: 1. USB problem This MacBookPro model only have xhci controller, 10.0-RC3 and 9.2R not working, keyboard and touchpad not respond. Error messages are xhci_do_command: Command timeout! and USB_ERR_TIMEOUT. I also try to set hw.usb.xhci.msi=0, no lucky. But 9.1R is OK, I copy xhci*.* file from 9.1R to 10.0, with very small change, and xhci works under 10.0-RC3! dmesg in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/dmesg-10.0.txt vmstat -i in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/vmstat-10.0.txt pciconf in 10.0-RC3: http://sw.gddsn.org.cn/freebsd/pciconf.txt dmesg in 10.0 + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/dmesg-10.0+9.1.txt vmstat -i in + xhci of 9.1R: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1.txt 2. AHCI timeout problem After booting, system quickly hit ahci timeout problem, I have to set camcontrol tags ada0 -N 1. this can decrease timeout problem, but still happen when running heavy IO. hint.ahci.0.msi=0 seem to fix this problem, but ahci and xhci use same IRQ 16, this make 10.0+9.1xhci unstable:( Internal keyboard and touchpad not working, external keyboard and mouse working. vmstat -i in 10.0+9.1xhci with hint.ahci.0.msi=0: http://sw.gddsn.org.cn/freebsd/vmstat-10.0+9.1+msi.txt camcontrol identify: http://sw.gddsn.org.cn/freebsd/cam-identify.txt smartctl: http://sw.gddsn.org.cn/freebsd/smartctl.txt 3. Random hang Sometimes the system(10.0+9.1xhci) hang without any message, keyboard, mouse and ping ping not respond. console no message, ctrl+alt+esc also could not break into ddb, I may try firewire/dcons, help it can get some useful information. I really like to have a working freebsd on MacBookPro, anything I can provide or any ideas? Cheers, Huang Wen Hui ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
On 01/06/14 05:11, Huang Wen Hui wrote: Hi, USB still have a lot of USB_ERR_TIMEOUT, but Internal keyboard and external keyboard found and works! usb disk also found, but booting stop at: Mounting from ufs:/dev/da0a failed with error 6. or a lot of cam Retrying command. Cheers, Huang Wen Hui Hi, I think there is an IRQ problem. Either some IRQ is not handled or IRQ's are not forwarded to the drivers properly. You might want to compile the XHCI debugging variable to 16 inside dev/usb/controller/xhci.c, and watch what is going on. --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org
Re: Install 10.0-RC3 on MacBookPro Late 2013
.. are you getting this USB_ERR_TIMEOUT even with the xhci code from -9? -a On 5 January 2014 23:10, Hans Petter Selasky h...@bitfrost.no wrote: On 01/06/14 05:11, Huang Wen Hui wrote: Hi, USB still have a lot of USB_ERR_TIMEOUT, but Internal keyboard and external keyboard found and works! usb disk also found, but booting stop at: Mounting from ufs:/dev/da0a failed with error 6. or a lot of cam Retrying command. Cheers, Huang Wen Hui Hi, I think there is an IRQ problem. Either some IRQ is not handled or IRQ's are not forwarded to the drivers properly. You might want to compile the XHCI debugging variable to 16 inside dev/usb/controller/xhci.c, and watch what is going on. --HPS ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org