From owner-freebsd-acpi@FreeBSD.ORG  Wed Oct 20 08:05:28 2010
Return-Path: <owner-freebsd-acpi@FreeBSD.ORG>
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 6BA98106566B
	for <freebsd-acpi@freebsd.org>; Wed, 20 Oct 2010 08:05:28 +0000 (UTC)
	(envelope-from hselasky@c2i.net)
Received: from swip.net (mailfe02.swip.net [212.247.154.33])
	by mx1.freebsd.org (Postfix) with ESMTP id EB9EA8FC0C
	for <freebsd-acpi@freebsd.org>; Wed, 20 Oct 2010 08:05:27 +0000 (UTC)
X-Cloudmark-Score: 0.000000 []
X-Cloudmark-Analysis: v=1.1 cv=yevn+QCjI6xy199BDvBOOiO14qYvyLq62he9tTtU3M8=
	c=1 sm=1 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10
	a=i9M/sDlu2rpZ9XS819oYzg==:17 a=sOHWQ4URqlb3VPgEtxAA:9
	a=3N-XoIwK-JRm56w908A1i1TVTsQA:4 a=QEXdDO2ut3YA:10
	a=i9M/sDlu2rpZ9XS819oYzg==:117
Received: from [188.126.198.129] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.19)
	with ESMTPA id 37422322; Wed, 20 Oct 2010 10:05:26 +0200
From: Hans Petter Selasky <hselasky@c2i.net>
To: Lin Ming <ming.m.lin@intel.com>
Date: Wed, 20 Oct 2010 10:06:41 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; )
References: <201010121209.06397.hselasky@c2i.net>
	<201010200834.28444.hselasky@c2i.net>
	<1287556591.6530.3071.camel@minggr.sh.intel.com>
In-Reply-To: <1287556591.6530.3071.camel@minggr.sh.intel.com>
X-Face: +~\`s("[*<S!NI[0M*"FaghA8S>|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: <201010201006.41112.hselasky@c2i.net>
Cc: "freebsd-acpi@freebsd.org" <freebsd-acpi@freebsd.org>, "Moore,
	Robert" <robert.moore@intel.com>
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 <freebsd-acpi.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-acpi>,
	<mailto:freebsd-acpi-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-acpi>
List-Post: <mailto:freebsd-acpi@freebsd.org>
List-Help: <mailto:freebsd-acpi-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-acpi>,
	<mailto:freebsd-acpi-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Oct 2010 08:05:28 -0000

On Wednesday 20 October 2010 08:36:31 Lin Ming wrote:
> On Wed, 2010-10-20 at 14:34 +0800, Hans Petter Selasky wrote:
> > 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:
> What's the kernel parameters are you using?
> There should be a lot of AML debug output.


Hi,

During the function call that overwrites it's buffer, there are no more debug 
prints than shown in the code, even with all debug prints on. Where should I 
add more debug prints?

--HPS