Date: Mon, 22 Nov 2010 00:16:14 +0100 From: "army.of.root" <army.of.root@googlemail.com> To: Jung-uk Kim <jkim@FreeBSD.org> Cc: Ed Schouten <ed@80386.nl>, freebsd-current@FreeBSD.org, freebsd-stable@freebsd.org, Hans Petter Selasky <hselasky@c2i.net> Subject: Re: [Call for Tests] PAT issue on Apple hardware Message-ID: <4CE9A83E.8010005@googlemail.com> In-Reply-To: <201011191354.25486.jkim@FreeBSD.org> References: <201011152036.48181.jkim@FreeBSD.org> <201011161530.20165.jkim@FreeBSD.org> <201011191354.25486.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------060700080107080708060808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 10\11\19 19:54, Jung-uk Kim wrote: > On Tuesday 16 November 2010 03:30 pm, Jung-uk Kim wrote: >> On Monday 15 November 2010 08:36 pm, Jung-uk Kim wrote: >>> Often times I hear complaints like "my Mac hangs after upgrading >>> to 8.1" or "snapshot CD hangs on my brand new Mac". I know some >>> of these complaints started happening when we switched to new PAT >>> layout. It is so puzzling because it never happened on non-Apple >>> hardware, AFAIK. I really like to fix this problem but I cannot >>> afford a Mac. :-P >>> >>> If you are one of those lucky people, please test the attached >>> patch and report your hardware model and any improvement or >>> regression. >>> >>> Also, I added a new tunable "vm.pmap.pat_works" so that you can >>> turn it off from loader (i.e., "set vm.pmap.pat_works=0") and >>> restore old behaviour without recompiling a new kernel. >> >> I revised this patch to make it more robust. >> >> http://people.freebsd.org/~jkim/pat-current.diff >> >> Also, I prepared a patch for stable/8. If you have recent Apple >> hardware and it hangs with 8.1 or stable/8, please test this patch. >> >> http://people.freebsd.org/~jkim/pat-stable.diff > > Anyone? I don't want to commit it blindly. :-( > > Jung-uk Kim <works for me too!> Hi, I patched the current 8.1-STABLE snapshot CD's kernel and baked it back into the iso. Before the patch, the kernel would hang, now the livefs cd boots fine on my MacBookPro5,5 (2009 13" alu). Thank you so much ! - I love it. I attached a dmesg. - Please ask if you need more information, I'd be happy to help. Keep up the awesome work :) Thanks --------------060700080107080708060808 Content-Type: text/plain; name="8.1-stable_PAT_apple_tryDMESG.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="8.1-stable_PAT_apple_tryDMESG.txt" Copyright (c) 1992-2010 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.1-STABLE-201011 #0: Sun Nov 21 16:41:48 CET 2010 root@freebsd_vm:/usr/obj/usr/src/sys/GENERIC amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz (2255.36-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Family = 6 Model = 17 Stepping = 10 Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> Features2=0x408e3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE> AMD Features=0x20100800<SYSCALL,NX,LM> AMD Features2=0x1<LAHF> TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 1765003264 (1683 MB) ACPI APIC Table: <APPLE Apple00> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 1 ioapic0 <Version 1.1> irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: <APPLE Apple00> on motherboard acpi0: [ITHREAD] acpi_ec0: <Embedded Controller: GPE 0x3f, ECDT> port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) unknown: I/O range not supported acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0 Timecounter "HPET" frequency 25000000 Hz quality 900 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 acpi_acad0: <AC Adapter> on acpi0 acpi_lid0: <Control Method Lid Switch> on acpi0 acpi_lid0: enable wake failed acpi_button0: <Power Button> on acpi0 acpi_button1: <Sleep Button> on acpi0 pcib0: <ACPI Host-PCI bridge> on acpi0 pci0: <ACPI PCI bus> on pcib0 pci0: <memory, RAM> at device 0.1 (no driver attached) isab0: <PCI-ISA bridge> port 0x2000-0x20ff at device 3.0 on pci0 isa0: <ISA bus> on isab0 pci0: <memory, RAM> at device 3.1 (no driver attached) pci0: <serial bus, SMBus> at device 3.2 (no driver attached) pci0: <memory, RAM> at device 3.3 (no driver attached) pci0: <memory, RAM> at device 3.4 (no driver attached) pci0: <processor> at device 3.5 (no driver attached) ohci0: <nVidia nForce MCP79 USB Controller> mem 0x93488000-0x93488fff irq 18 at device 4.0 on pci0 ohci0: [ITHREAD] usbus0: <nVidia nForce MCP79 USB Controller> on ohci0 ehci0: <NVIDIA nForce MCP79 USB 2.0 controller> mem 0x93489200-0x934892ff irq 19 at device 4.1 on pci0 ehci0: [ITHREAD] usbus1: EHCI version 1.0 usbus1: <NVIDIA nForce MCP79 USB 2.0 controller> on ehci0 ohci1: <nVidia nForce MCP79 USB Controller> mem 0x93487000-0x93487fff irq 20 at device 6.0 on pci0 ohci1: [ITHREAD] usbus2: <nVidia nForce MCP79 USB Controller> on ohci1 ehci1: <NVIDIA nForce MCP79 USB 2.0 controller> mem 0x93489100-0x934891ff irq 21 at device 6.1 on pci0 ehci1: [ITHREAD] usbus3: EHCI version 1.0 usbus3: <NVIDIA nForce MCP79 USB 2.0 controller> on ehci1 pci0: <multimedia, HDA> at device 8.0 (no driver attached) pcib1: <PCI-PCI bridge> at device 9.0 on pci0 pci1: <PCI bus> on pcib1 nfe0: <NVIDIA nForce MCP79 Networking Adapter> port 0x21e0-0x21e7 mem 0x93486000-0x93486fff,0x93489000-0x934890ff,0x93489300-0x9348930f irq 23 at device 10.0 on pci0 miibus0: <MII bus> on nfe0 rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto nfe0: Ethernet address: xx:xx:xx:xx:xx:xx nfe0: [FILTER] atapci0: <nVidia nForce MCP79 SATA300 controller> port 0x21d8-0x21df,0x21ec-0x21ef,0x21d0-0x21d7,0x21e8-0x21eb,0x21c0-0x21cf mem 0x93484000-0x93485fff irq 16 at device 11.0 on pci0 atapci0: [ITHREAD] atapci0: AHCI v1.20 controller with 6 3Gbps ports, PM supported ata2: <ATA channel 0> on atapci0 ata2: [ITHREAD] ata3: <ATA channel 1> on atapci0 ata3: [ITHREAD] pcib2: <ACPI PCI-PCI bridge> at device 16.0 on pci0 pci2: <ACPI PCI bus> on pcib2 vgapci0: <VGA-compatible display> port 0x1000-0x107f mem 0x92000000-0x92ffffff,0x80000000-0x8fffffff,0x90000000-0x91ffffff irq 17 at device 0.0 on pci2 pcib3: <ACPI PCI-PCI bridge> at device 21.0 on pci0 pci3: <ACPI PCI bus> on pcib3 pci3: <network> at device 0.0 (no driver attached) pcib4: <ACPI PCI-PCI bridge> at device 22.0 on pci0 pci4: <ACPI PCI bus> on pcib4 fwohci0: <1394 Open Host Controller Interface> mem 0x93100000-0x93100fff irq 19 at device 0.0 on pci4 fwohci0: [ITHREAD] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 xx:xx:xx:xx:xx:xx:xx:xx fwohci0: invalid speed 7 (fixed to 3). fwohci0: Phy 1394a available S800, 3 ports. fwohci0: Link S800, max_rec 4096 bytes. firewire0: <IEEE1394(FireWire) bus> on fwohci0 dcons_crom0: <dcons configuration ROM> on firewire0 dcons_crom0: bus_addr 0x12e4000 fwe0: <Ethernet over FireWire> on firewire0 if_fwe0: Fake Ethernet address: xx:xx:xx:xx:xx:xx:xx:xx fwe0: Ethernet address: xx:xx:xx:xx:xx:xx:xx:xx fwip0: <IP over FireWire> on firewire0 fwip0: Firewire address: xx:xx:xx:xx:xx:xx:xx:xx @ 0xfffe00000000, S800, maxrec 4096 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=2, CYCLEMASTER mode battery0: <ACPI Control Method Battery> on acpi0 atrtc0: <AT realtime clock> port 0x70-0x77 on acpi0 orm0: <ISA Option ROM> at iomem 0xc0000-0xce7ff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd: unable to get the current command byte value. atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: unable to get the current command byte value. ppc0: cannot reserve I/O port range est0: <Enhanced SpeedStep Frequency Control> on cpu0 p4tcc0: <CPU Frequency Thermal Control> on cpu0 est1: <Enhanced SpeedStep Frequency Control> on cpu1 p4tcc1: <CPU Frequency Thermal Control> on cpu1 RTC BIOS diagnostic error e7<clock_battery,ROM_cksum,config_unit,invalid_time> Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 md0: Preloaded image </boot/mfsroot> 4194304 bytes at 0xffffffff80e82610 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ad4: 476940MB <Seagate ST9500325AS 00000000> at ata2-master UDMA100 SATA 3Gb/s ugen0.1: <nVidia> at usbus0 uhub0: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <nVidia> at usbus1 uhub1: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 ugen2.1: <nVidia> at usbus2 uhub2: <nVidia OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen3.1: <nVidia> at usbus3 uhub3: <nVidia EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3 uhub2: 5 ports with 5 removable, self powered uhub0: 7 ports with 7 removable, self powered acd0: DVDR <OPTIARC DVD RW AD-5960S/2AP5> at ata3-master UDMA100 SATA 1.5Gb/s SMP: AP CPU #1 Launched! uhub3: 5 ports with 5 removable, self powered Root mount waiting for: usbus3 usbus1 uhub1: 7 ports with 7 removable, self powered Root mount waiting for: usbus3 usbus1 ugen2.2: <Apple Inc.> at usbus2 uhub4: <Apple Inc. BRCM2046 Hub, class 9/0, rev 2.00/1.00, addr 2> on usbus2 ugen3.2: <Apple> at usbus3 umass0: <Apple Card Reader, class 0/0, rev 2.00/98.33, addr 2> on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0000 ugen1.2: <vendor 0x05e3> at usbus1 uhub5: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/9.01, addr 2> on usbus1 uhub4: 3 ports with 0 removable, self powered Root mount waiting for: usbus3 usbus1 uhub5: 4 ports with 4 removable, self powered umass0:0:0:-1: Attached to scbus0 ugen2.3: <Apple Inc.> at usbus2 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI status: Check Condition (probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) ugen1.3: <vendor 0x046a> at usbus1 ukbd0: <vendor 0x046a product 0x0023, class 0/0, rev 2.00/0.32, addr 3> on usbus1 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: <APPLE SD Card Reader 1.00> Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present kbd2 at ukbd0 uhid0: <vendor 0x046a product 0x0023, class 0/0, rev 2.00/0.32, addr 3> on usbus1 ugen2.4: <vendor 0x05ac> at usbus2 ukbd1: <vendor 0x05ac product 0x820a, class 0/0, rev 2.00/1.00, addr 4> on usbus2 kbd3 at ukbd1 Root mount waiting for: usbus1 ugen1.4: <Logitech> at usbus1 ums0: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/46.00, addr 4> on usbus1 ums0: 16 buttons and [XYZT] coordinates ID=0 uhid1: <Logitech USB Gaming Mouse, class 0/0, rev 2.00/46.00, addr 4> on usbus1 ugen2.5: <vendor 0x05ac> at usbus2 ums1: <vendor 0x05ac product 0x820b, class 0/0, rev 2.00/1.00, addr 5> on usbus2 ums1: 3 buttons and [XY] coordinates ID=2 Root mount waiting for: usbus1 ugen1.5: <Apple Inc.> at usbus1 Root mount waiting for: usbus1 Trying to mount root from ufs:/dev/md0 ugen0.2: <Apple Computer, Inc.> at usbus0 uhid2: <Apple Computer, Inc. IR Receiver, class 0/0, rev 2.00/0.16, addr 2> on usbus0 ugen0.3: <Apple Inc.> at usbus0 ukbd2: <Apple Internal Keyboard> on usbus0 kbd4 at ukbd2 uhid3: <Touchpad> on usbus0 ums2: <Touchpad> on usbus0 ums2: 3 buttons and [XY] coordinates ID=2 ugen1.6: <Verbatim> at usbus1 umass1: <Verbatim STORE N GO, class 0/0, rev 2.00/1.10, addr 6> on usbus1 umass1: SCSI over Bulk-Only; quirks = 0x0000 umass1:1:1:-1: Attached to scbus1 (probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error (probe0:umass-sim1:1:0:0): SCSI status: Check Condition (probe0:umass-sim1:1:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) da1 at umass-sim1 bus 1 scbus1 target 0 lun 0 da1: <Verbatim STORE N GO 5.00> Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 7749MB (15870208 512 byte sectors: 255H 63S/T 987C) GEOM: da1: partition 1 does not end on a track boundary. GEOM: da1: partition 1 does not end on a track boundary. --------------060700080107080708060808--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CE9A83E.8010005>