From owner-freebsd-acpi@FreeBSD.ORG Wed Oct 20 06:33:15 2010 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFD331065673 for ; Wed, 20 Oct 2010 06:33:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 3632D8FC0C for ; Wed, 20 Oct 2010 06:33:14 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=5OBHFxb9I47YZ7HELXzI6cL6pwPTRnd5uxbD1DPQ4WY= c=1 sm=1 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=0Dku86sYct3FgqH7JZoA:9 a=jgtJnqrEhT4wqK3aQVv2QJdXpZIA:4 a=QEXdDO2ut3YA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 37209436; Wed, 20 Oct 2010 08:33:13 +0200 From: Hans Petter Selasky To: Lin Ming Date: Wed, 20 Oct 2010 08:34:28 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201010121209.06397.hselasky@c2i.net> <201010182221.36745.hselasky@c2i.net> <1287467222.6530.3067.camel@minggr.sh.intel.com> In-Reply-To: <1287467222.6530.3067.camel@minggr.sh.intel.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201010200834.28444.hselasky@c2i.net> Cc: "freebsd-acpi@freebsd.org" , "Moore, Robert" Subject: Re: MacBookPro 5,1 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: Wed, 20 Oct 2010 06:33:16 -0000 On Tuesday 19 October 2010 07:47:02 Lin Ming wrote: > On Tue, 2010-10-19 at 04:21 +0800, Hans Petter Selasky wrote: > > On Monday 18 October 2010 02:01:09 Moore, Robert wrote: > > > Can you send us the acpidump for the machine? > > > > > > Also, tell us which control method is failing. > > > > > > Thanks > > > > Hi, > > > > Please find attached dump of ACPI tables. > > > > It is the function AcpiRsCreateAmlResources() which writes beyond the > > buffer it allocates. > > Could you enable AML debug output to get more info? > But I don't know how to enable it on FreeBSD. > > In Linux, the AML debug output is enabled with kernel boot parameters > like below. > acpi.debug_layer=0xffffffff acpi.debug_level=0xffffffff > > FreeBSD may have some similar boot parameters. I've enabled the debug prints just around the failing function. Here is the result: pcib0: on acpi0 pci0: on pcib0 pci_link32: Enter debugger **** Context Switch from TID 0xffffffffffffffff to TID 0x186a0 **** rscalc-0293 [0x186a0] [188762] RsGetAmlLength : ----Entry rscalc-0369 [0x186a0] [188762] RsGetAmlLength : ----Exit- AE_OK rslist-0225 [0x186a0] [188762] RsConvertResourcesToAm: ----Entry rsmisc-0437 [0x186a0] [188763] RsConvertResourceToAml: ----Entry rsmisc-0636 [0x186a0] [188763] RsConvertResourceToAml: ----Exit- AE_OK rsmisc-0437 [0x186a0] [188763] RsConvertResourceToAml: ----Entry rsmisc-0636 [0x186a0] [188763] RsConvertResourceToAml: ----Exit- AE_OK rslist-0273 [0x186a0] [188762] RsConvertResourcesToAm: ----Exit- AE_OK rscreate-0554 [0x186a0] [188761] RsCreateAmlResources : OutputBuffer 0xffffff00031f9000 Length D Dirty free 0xffffff00031f9000 13 at 13 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a AcpiOsFree() at AcpiOsFree+0x72 AcpiUtDeleteInternalObj() at AcpiUtDeleteInternalObj+0x335 AcpiUtUpdateRefCount() at AcpiUtUpdateRefCount+0x188 AcpiUtUpdateObjectReference() at AcpiUtUpdateObjectReference+0x6e AcpiUtRemoveReference() at AcpiUtRemoveReference+0xd5 AcpiRsSetSrsMethodData() at AcpiRsSetSrsMethodData+0x14b AcpiSetCurrentResources() at AcpiSetCurrentResources+0xb8 acpi_pci_link_route_irqs() at acpi_pci_link_route_irqs+0x204 acpi_pci_link_route_interrupt() at acpi_pci_link_route_interrupt+0x1a9 acpi_pcib_route_interrupt() at acpi_pcib_route_interrupt+0x46b pci_assign_interrupt() at pci_assign_interrupt+0x1c3 pci_add_resources() at pci_add_resources+0x14a pci_add_children() at pci_add_children+0x10e acpi_pci_attach() at acpi_pci_attach+0xcd device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_pcib_attach() at acpi_pcib_attach+0x20e acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x280 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a acpi_attach() at acpi_attach+0xaa6 device_attach() at device_attach+0x69 bus_generic_attach() at bus_generic_attach+0x1a nexus_acpi_attach() at nexus_acpi_attach+0x69 device_attach() at device_attach+0x69 bus_generic_new_pass() at bus_generic_new_pass+0xd6 bus_set_pass() at bus_set_pass+0x7a configure() at configure+0xa mi_startup() at mi_startup+0x59 btext() at btext+0x2c --HPS