From owner-freebsd-acpi@FreeBSD.ORG Thu Nov 3 01:04:43 2005 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04D5516A41F; Thu, 3 Nov 2005 01:04:43 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83EB743D45; Thu, 3 Nov 2005 01:04:42 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.33] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id jA314dxq024218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 2 Nov 2005 17:04:40 -0800 Message-ID: <436961FD.3040605@root.org> Date: Wed, 02 Nov 2005 17:03:57 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Munehiro Matsuda References: <971FCB6690CD0E4898387DBF7552B90E0346CAFB@orsmsx403.amr.corp.intel.com> <20051103.094643.74756456.haro@h4.dion.ne.jp> In-Reply-To: <20051103.094643.74756456.haro@h4.dion.ne.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, freebsd-current@freebsd.org, robert.moore@intel.com, jkim@freebsd.org Subject: Re: Panic on boot with new ACPI-CA X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2005 01:04:43 -0000 As I mentioned to Jung-uk, the problem is likely an error in acpi-ca modifying memory after it has freed it. The way to track this down is to enable memguard(9). See the man page for info. You need to add options DEBUG_MEMGUARD to your kernel, set the malloc type to watch to M_ACPICA, and rebuild your kernel and modules. Memguard sets page permissions so we can catch the culprit who is modifying the memory. http://www.freebsd.org/cgi/man.cgi?query=memguard&apropos=0&sektion=0&manpath=FreeBSD+6.0-current&format=html If you need a kernel to keep running in production while debugging the other kernel, disable options INVARIANTS to get rid of the diagnostic panic. -Nate Munehiro Matsuda wrote: > Hi, > > Thanks for looking. > I've put the output dsdt/asl file from following command onto the > URL below. > > command: > # acpidump -t -d -o Dynabook_MX190R.dsdt > Dynabook_MX190R.asl > > URL: > http://wwwb.dcns.ne.jp/~haro01/Dynabook_MX190R.dsdt > http://wwwb.dcns.ne.jp/~haro01/Dynabook_MX190R.asl > > Thanks in advance, > Haro > > From: "Moore, Robert" > Date: Wed, 2 Nov 2005 09:51:23 -0800 > ::If you will send me the acpidump for the machine, I will take a look at > ::the problem. > :: > ::Thanks, > ::Bob > :: > :: > ::> -----Original Message----- > ::> From: owner-freebsd-acpi@freebsd.org [mailto:owner-freebsd- > ::> acpi@freebsd.org] On Behalf Of Munehiro Matsuda > ::> Sent: Wednesday, November 02, 2005 7:08 AM > ::> To: jkim@freebsd.org > ::> Cc: freebsd-acpi@freebsd.org; freebsd-current@freebsd.org > ::> Subject: Panic on boot with new ACPI-CA (Re: [HEADSUP] ACPI-CA > ::20051021 > ::> import) > ::> > ::> From: Jung-uk Kim > ::> Date: Tue, 1 Nov 2005 17:49:44 -0500 > ::> ::On Tuesday 01 November 2005 05:01 pm, Jung-uk Kim wrote: > ::> ::> ACPI-CA 20051021 will be imported any minute now. I will let you > ::> ::> know when completed. > ::> :: > ::> ::ACPI-CA 20051021 import is completed. > ::> :: > ::> ::Thanks! > ::> :: > ::> ::Jung-uk Kim > ::> > ::> Hi, > ::> > ::> After the import of new ACPI-CA code, I get system panic on boot, > ::> where I used to get "can't fetch resources for \\_SB_.PCI0.FNC0.PRT_ - > ::> AE_BAD_DATA" message. > ::> > ::> If you need more info, please let me know. > ::> > ::> Here's hand written down panic messages. > ::> > ::=----------------------------------------------------------------------- > ::-- > ::> - > ::> npx0: [FAST] > ::> npx0: on motherboard > ::> npx0: INT 16 interface > ::> acpi0: on motherboard > ::> acpi0: Power Button (fixed) > ::> pci_link0: irq 10 on acpi0 > ::> pci_link1: irq 11 on acpi0 > ::> pci_link2: irq 11 on acpi0 > ::> pci_link3: irq 11 on acpi0 > ::> pci_link4: irq 11 on acpi0 > ::> pci_link5: irq 11 on acpi0 > ::> pci_link6: irq 11 on acpi0 > ::> pci_link7: irq 11 on acpi0 > ::> Memory modified after free 0xc1ee1600(124) val=c @ 0xc1ee1600 > ::> panic: Most recently used by acpica > ::> > ::> cpuid = 0 > ::> KDB: enter: panic > ::> [thread pid 0 tid 0] > ::> Stopped at kbt_enter+0x2b: nop > ::> db> bt > ::> Tracing pid 0 tid 0 td 0xc0736780 > ::> kdb_enter(c06cc93e) at kdb_enter+0x2b > ::> panic(c06e42e7,c089c1a8,c06e42b8,c1ee1600,8c) at panic+0x127 > ::> mtrash_ctor(c1ee1600,80,0,1) at mtrash_ctor+0x4d > ::> uma_zalloc_arg(c104a1e0,0,1) at uma_zalloc_arg+0x10f > ::> malloc(68,c089ef00,1,c0c20bb4,c087e562) at malloc+0xb2 > ::> AcpiOsAllocate(68,0,c1ece1e0,4,c0c20be0) at AcpiOsAllocate+0x12 > ::> AcpiUtCallocate(68,10,c089b337,157,c0c20bec) at AcpiUtCallocate+0x16 > ::> AcpiGetObjectInfo(c1ece1e0,c0c20bf8,0,c1ece1e0,ffffffff) at > ::> AcpiGetObjectInfo+0x5b > ::> acpi_MatchHid(0,c089f740,6,c1ece1e0,0) at acpi_MatchHid+0x32 > ::> acpi_probe_child(c1ece1e0,4,c1e9c800,0,0) at acpi_probe_child+0x94 > ::> AcpiNsWalkNamespace(0,ffffffff,64,1,c0883c98) at > ::AcpiNsWalkNamespace+0xa1 > ::> AcpiWalkNamespace(0,ffffffff,64,c0883c98,c1e9c800) at > ::> AcpiWalkNamespace+0x3b > ::> acpi_attach(c1e9c800) at acpi_attach+0x4ff > ::> device_attach(c1e9c800,0,c1e9c800,c1e9d300,0) at device_attach+0x58 > ::> device_probe_and attach(c1e9c800) at device_probe_and_attach+0xe0 > ::> bus_generic_attach(c1e9d300,c1e9d300,c1e9d300,c0c20d40,c0529340) at > ::> bus_generic_attach+0x16 > ::> nexus_attach(c1e9d300) at nexus_attach+0x13 > ::> device_attach(c1e9d300,c0533914,c1e9d300,c0721bb0,c28000) at > ::> device_attach+0x58 > ::> device_probe_and_attach(c1e9d300) at device_probe_and_attach+0xe0 > ::> root_bus_configure(c0c20d88,c04eb592,0,c1ec00,c1e000) at > ::> root_bus_configure+0x16configure(0,c1ec00,c1e000,0,c04392f5) at > ::> configure+0x9 > ::> mi_startup() at mi_startup+0x96 > ::> begin() at begine+0x2c > ::> > ::=----------------------------------------------------------------------- > ::-- > ::> - > ::> > ::> Following is boot message from the last kernel, just before the > ::> import of new code. > ::> > ::=----------------------------------------------------------------------- > ::-- > ::> - > ::> Copyright (c) 1992-2005 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 7.0-CURRENT #135: Mon Oct 31 21:33:52 JST 2005 > ::> > ::haro@legacy.ttr.kubota.co.jp:/home/haro/tmp/sys-7/i386/compile/LEGACY > ::> WARNING: WITNESS option enabled, expect reduced performance. > ::> Timecounter "i8254" frequency 1193182 Hz quality 0 > ::> CPU: Intel(R) Pentium(R) M processor 1.10GHz (1097.26-MHz 686-class > ::CPU) > ::> Origin = "GenuineIntel" Id = 0x6d6 Stepping = 6 > ::> > ::> > ::Features=0xafe9f9bf ::,P > ::> AT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE> > ::> Features2=0x180 > ::> real memory = 787808256 (751 MB) > ::> avail memory = 761475072 (726 MB) > ::> npx0: [FAST] > ::> npx0: on motherboard > ::> npx0: INT 16 interface > ::> acpi0: on motherboard > ::> acpi0: Power Button (fixed) > ::> pci_link0: irq 10 on acpi0 > ::> pci_link1: irq 11 on acpi0 > ::> pci_link2: irq 11 on acpi0 > ::> pci_link3: irq 11 on acpi0 > ::> pci_link4: irq 11 on acpi0 > ::> pci_link5: irq 11 on acpi0 > ::> pci_link6: irq 11 on acpi0 > ::> pci_link7: irq 11 on acpi0 > ::> can't fetch resources for \\_SB_.PCI0.FNC0.PRT_ - AE_BAD_DATA > ::> Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > ::> acpi_timer0: <24-bit timer at 3.579545MHz> port 0xd808-0xd80b on acpi0 > ::> cpu0: on acpi0 > ::> est0: on cpu0 > ::> p4tcc0: on cpu0 > ::> pcib0: port 0xcf8-0xcff on acpi0 > ::> pci0: on pcib0 > ::> pci0: at device 0.1 (no driver attached) > ::> pci0: at device 0.3 (no driver attached) > ::> agp0: port > ::0xeff8-0xefff > ::> mem 0xd8000000-0xdfffffff,0xd0000000-0xd007ffff irq 10 at device 2.0 > ::on > ::> pci0 > ::> agp0: detected 16252k stolen memory > ::> agp0: aperture size is 128M > ::> pci0: at device 2.1 (no driver attached) > ::> uhci0: port 0xcfe0-0xcfff > ::irq > ::> 10 at device 29.0 on pci0 > ::> uhci0: [GIANT-LOCKED] > ::> usb0: on uhci0 > ::> usb0: USB revision 1.0 > ::> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > ::> uhub0: 2 ports with 2 removable, self powered > ::> uhci1: port 0xcf80-0xcf9f > ::irq > ::> 11 at device 29.1 on pci0 > ::> uhci1: [GIANT-LOCKED] > ::> usb1: on uhci1 > ::> usb1: USB revision 1.0 > ::> uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > ::> uhub1: 2 ports with 2 removable, self powered > ::> uhci2: port 0xcf60-0xcf7f > ::irq > ::> 11 at device 29.2 on pci0 > ::> uhci2: [GIANT-LOCKED] > ::> usb2: on uhci2 > ::> usb2: USB revision 1.0 > ::> uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > ::> uhub2: 2 ports with 2 removable, self powered > ::> ehci0: mem 0xcffffc00- > ::> 0xcfffffff irq 11 at device 29.7 on pci0 > ::> ehci0: [GIANT-LOCKED] > ::> usb3: EHCI version 1.0 > ::> usb3: companion controllers, 2 ports each: usb0 usb1 usb2 > ::> usb3: on ehci0 > ::> usb3: USB revision 2.0 > ::> uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > ::> uhub3: 6 ports with 6 removable, self powered > ::> pcib1: at device 30.0 on pci0 > ::> pci1: on pcib1 > ::> iwi0: mem 0xcfeff000-0xcfefffff irq 11 > ::at > ::> device 5.0 on pci1 > ::> iwi0: Ethernet address: 00:0e:35:c2:a2:7b > ::> fxp0: port 0xcf00-0xcf3f > ::mem > ::> 0xcfefe000-0xcfefefff irq 11 at device 8.0 on pci1 > ::> miibus0: on fxp0 > ::> inphy0: on miibus0 > ::> inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ::> fxp0: Ethernet address: 00:0e:7b:eb:71:23 > ::> cbb0: at device 11.0 on pci1 > ::> cardbus0: on cbb0 > ::> pccard0: <16-bit PCCard bus> on cbb0 > ::> cbb1: at device 11.1 on pci1 > ::> cardbus1: on cbb1 > ::> pccard1: <16-bit PCCard bus> on cbb1 > ::> fwohci0: <1394 Open Host Controller Interface> mem 0xcfefd800- > ::> 0xcfefdfff,0xcfef8000-0xcfefbfff irq 11 at device 11.2 on pci1 > ::> fwohci0: OHCI version 1.10 (ROM=1) > ::> fwohci0: No. of Isochronous channels is 4. > ::> fwohci0: EUI64 00:00:39:00:00:72:41:eb > ::> fwohci0: Phy 1394a available S400, 2 ports. > ::> fwohci0: Link S400, max_rec 2048 bytes. > ::> firewire0: on fwohci0 > ::> sbp0: on firewire0 > ::> fwe0: on firewire0 > ::> if_fwe0: Fake Ethernet address: 02:00:39:72:41:eb > ::> fwe0: Ethernet address: 02:00:39:72:41:eb > ::> fwe0: if_start running deferred for Giant > ::> fwohci0: Initiate bus reset > ::> fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode > ::> firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) > ::> firewire0: bus manager 0 (me) > ::> pci1: at device 11.4 (no driver attached) > ::> isab0: at device 31.0 on pci0 > ::> isa0: on isab0 > ::> atapci0: port 0x1f0-0x1f7,0x3f6,0x170- > ::> 0x177,0x376,0xbfa0-0xbfaf irq 11 at device 31.1 on pci0 > ::> ata0: on atapci0 > ::> ata1: on atapci0 > ::> pcm0: port 0xbe00-0xbeff,0xbdc0-0xbdff mem > ::> 0xcfdffe00-0xcfdfffff,0xcfdffd00-0xcfdffdff irq 11 at device 31.5 on > ::pci0 > ::> pcm0: [GIANT-LOCKED] > ::> pcm0: > ::> pci0: at device 31.6 (no driver > ::attached) > ::> acpi_lid0: on acpi0 > ::> battery0: on acpi0 > ::> acpi_button0: on acpi0 > ::> acpi_acad0: on acpi0 > ::> acpi_toshiba0: on acpi0 > ::> acpi_tz0: on acpi0 > ::> atkbdc0: port 0x60,0x64 irq 1 on acpi0 > ::> atkbd0: irq 1 on atkbdc0 > ::> kbd0 at atkbd0 > ::> atkbd0: [GIANT-LOCKED] > ::> psm0: irq 12 on atkbdc0 > ::> psm0: [GIANT-LOCKED] > ::> psm0: model Generic PS/2 mouse, device ID 0 > ::> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 > ::on > ::> acpi0 > ::> sio0: type 16550A > ::> pmtimer0 on isa0 > ::> orm0: at iomem 0xc0000-0xcffff,0xe0000-0xeffff pnpid > ::> ORM0000 on isa0 > ::> sc0: at flags 0x100 on isa0 > ::> sc0: VGA <16 virtual consoles, flags=0x300> > ::> sio1: configured irq 3 not in bitmap of probed irqs 0 > ::> sio1: port may not be enabled > ::> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on > ::isa0 > ::> Timecounter "TSC" frequency 1097256406 Hz quality 800 > ::> Timecounters tick every 1.000 msec > ::> ad0: 57231MB at ata0-master UDMA100 > ::> acd0: DVDR at ata1-master UDMA33 > ::> pccard1: Allocation failed for cfe 1 > ::> sio4: at port 0x2f8-0x2ff irq 11 function 0 config 2 on > ::> pccard1 > ::> sio4: type 16550A > ::> sio4: unable to activate interrupt in fast mode - using normal mode > ::> Trying to mount root from ufs:/dev/ad0s4a