From owner-freebsd-stable@FreeBSD.ORG Sun Nov 21 23:38:24 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 283E6106566C; Sun, 21 Nov 2010 23:38:24 +0000 (UTC) (envelope-from army.of.root@googlemail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 473E38FC12; Sun, 21 Nov 2010 23:38:22 +0000 (UTC) Received: by bwz2 with SMTP id 2so5800762bwz.13 for ; Sun, 21 Nov 2010 15:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type; bh=0+BWQL42t16/PJJEgz3AASIv8ySMlX+qA59A7c/8Qow=; b=pyD0TM85Fgvl9QXoIVmHH7vnaYnE5POmCfs9Ty4f/RMg8gb9oWpwvtFK+Q9zqQA1HW BicPLaEoSaChG5JGipD6ZrqUIWTMQH4aw902gWpQ//m9tykuBLBEjXCCwO5WCQD+RIEm krjda8ZbvVwfKf4wZnyUgn0CEMKNLgBZewmlk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=YTZYCzoRq8AtaWi+fUj/DX8Ept6JHfr5hRibpGBos8Xa+bjDuAl8AV7RDPQkZmDBo8 O9ky2PDPqJrVgiMfU288qj2/epZVxGM6E1OZMkJO9R+YOAMKXnc5+eMCdYTJa8Skyqvu +JrB87/Uw23nFMIbiD5KcNi2lugZ47V8C7cbw= Received: by 10.204.1.143 with SMTP id 15mr4564871bkf.122.1290381377107; Sun, 21 Nov 2010 15:16:17 -0800 (PST) Received: from titanium.local (ip-109-91-38-123.unitymediagroup.de [109.91.38.123]) by mx.google.com with ESMTPS id v1sm2081065bkt.5.2010.11.21.15.16.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 21 Nov 2010 15:16:16 -0800 (PST) Message-ID: <4CE9A83E.8010005@googlemail.com> Date: Mon, 22 Nov 2010 00:16:14 +0100 From: "army.of.root" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Jung-uk Kim References: <201011152036.48181.jkim@FreeBSD.org> <201011161530.20165.jkim@FreeBSD.org> <201011191354.25486.jkim@FreeBSD.org> In-Reply-To: <201011191354.25486.jkim@FreeBSD.org> Content-Type: multipart/mixed; boundary="------------060700080107080708060808" Cc: Ed Schouten , freebsd-current@FreeBSD.org, freebsd-stable@freebsd.org, Hans Petter Selasky Subject: Re: [Call for Tests] PAT issue on Apple hardware X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Nov 2010 23:38:24 -0000 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 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 Features2=0x408e3bd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 2147483648 (2048 MB) avail memory = 1765003264 (1683 MB) ACPI APIC Table: 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 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) unknown: I/O range not supported acpi_hpet0: 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: on acpi0 cpu1: on acpi0 acpi_acad0: on acpi0 acpi_lid0: on acpi0 acpi_lid0: enable wake failed acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) isab0: port 0x2000-0x20ff at device 3.0 on pci0 isa0: on isab0 pci0: at device 3.1 (no driver attached) pci0: at device 3.2 (no driver attached) pci0: at device 3.3 (no driver attached) pci0: at device 3.4 (no driver attached) pci0: at device 3.5 (no driver attached) ohci0: mem 0x93488000-0x93488fff irq 18 at device 4.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ehci0: mem 0x93489200-0x934892ff irq 19 at device 4.1 on pci0 ehci0: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci0 ohci1: mem 0x93487000-0x93487fff irq 20 at device 6.0 on pci0 ohci1: [ITHREAD] usbus2: on ohci1 ehci1: mem 0x93489100-0x934891ff irq 21 at device 6.1 on pci0 ehci1: [ITHREAD] usbus3: EHCI version 1.0 usbus3: on ehci1 pci0: at device 8.0 (no driver attached) pcib1: at device 9.0 on pci0 pci1: on pcib1 nfe0: port 0x21e0-0x21e7 mem 0x93486000-0x93486fff,0x93489000-0x934890ff,0x93489300-0x9348930f irq 23 at device 10.0 on pci0 miibus0: on nfe0 rgephy0: 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: 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: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] pcib2: at device 16.0 on pci0 pci2: on pcib2 vgapci0: port 0x1000-0x107f mem 0x92000000-0x92ffffff,0x80000000-0x8fffffff,0x90000000-0x91ffffff irq 17 at device 0.0 on pci2 pcib3: at device 21.0 on pci0 pci3: on pcib3 pci3: at device 0.0 (no driver attached) pcib4: at device 22.0 on pci0 pci4: 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: on fwohci0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x12e4000 fwe0: 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: 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: on acpi0 atrtc0: port 0x70-0x77 on acpi0 orm0: at iomem 0xc0000-0xce7ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: 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: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 RTC BIOS diagnostic error e7 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me) firewire0: bus manager 0 md0: Preloaded image 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 at ata2-master UDMA100 SATA 3Gb/s ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 uhub2: 5 ports with 5 removable, self powered uhub0: 7 ports with 7 removable, self powered acd0: DVDR 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: at usbus2 uhub4: on usbus2 ugen3.2: at usbus3 umass0: on usbus3 umass0: SCSI over Bulk-Only; quirks = 0x0000 ugen1.2: at usbus1 uhub5: 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: 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: at usbus1 ukbd0: on usbus1 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: 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: on usbus1 ugen2.4: at usbus2 ukbd1: on usbus2 kbd3 at ukbd1 Root mount waiting for: usbus1 ugen1.4: at usbus1 ums0: on usbus1 ums0: 16 buttons and [XYZT] coordinates ID=0 uhid1: on usbus1 ugen2.5: at usbus2 ums1: on usbus2 ums1: 3 buttons and [XY] coordinates ID=2 Root mount waiting for: usbus1 ugen1.5: at usbus1 Root mount waiting for: usbus1 Trying to mount root from ufs:/dev/md0 ugen0.2: at usbus0 uhid2: on usbus0 ugen0.3: at usbus0 ukbd2: on usbus0 kbd4 at ukbd2 uhid3: on usbus0 ums2: on usbus0 ums2: 3 buttons and [XY] coordinates ID=2 ugen1.6: at usbus1 umass1: 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: 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--