From owner-freebsd-acpi@FreeBSD.ORG Thu Oct 21 07:25:29 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 7B6B51065674 for ; Thu, 21 Oct 2010 07:25:29 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id F32738FC15 for ; Thu, 21 Oct 2010 07:25:28 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sEolSJAlcSxSMaOm1MQ0bvrIu+BNAN+OqG2UAUgC4Ok= c=1 sm=1 a=IkcTkHD0fZMA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=qRNQQ0KjiSpejCmMKJIA:9 a=QUo7X1kAFps0uupPLceaMcB0okEA:4 a=QEXdDO2ut3YA:10 a=akkKc1Z6nNKpRAFJ:21 a=ghJKNdH1qYKRNOMR:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 38017701; Thu, 21 Oct 2010 09:25:27 +0200 From: Hans Petter Selasky To: Lin Ming Date: Thu, 21 Oct 2010 09:26:40 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201010121209.06397.hselasky@c2i.net> <1287632360.6530.3103.camel@minggr.sh.intel.com> <1287645147.6530.3107.camel@minggr.sh.intel.com> In-Reply-To: <1287645147.6530.3107.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: <201010210926.41103.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: Thu, 21 Oct 2010 07:25:29 -0000 Hi, I will get you the debug output from this patch in about 8 hours. --HPS On Thursday 21 October 2010 09:12:27 Lin Ming wrote: > > Hi, > > Could you apply below debug patch and attach the output? > I'll try to reproduce this bug with the output. > > It will print something like below, > > Passed in resource buffer length=136 > Buffer start > f 0 0 0 44 0 0 0 1 0 0 0 1 0 1 0 45 ee 44 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 > Buffer end > > Thanks. > > diff --git a/source/components/resources/rsxface.c > b/source/components/resources/rsxface.c index 2a019d1..459ad44 100644 > --- a/source/components/resources/rsxface.c > +++ b/source/components/resources/rsxface.c > @@ -394,6 +394,7 @@ AcpiSetCurrentResources ( > { > ACPI_STATUS Status; > ACPI_NAMESPACE_NODE *Node; > + UINT8 i, *Buffer; > > > ACPI_FUNCTION_TRACE (AcpiSetCurrentResources); > @@ -416,6 +417,15 @@ AcpiSetCurrentResources ( > return_ACPI_STATUS (Status); > } > > + AcpiOsPrintf("Passed in resource buffer length=%d\n", > InBuffer->Length); + AcpiOsPrintf("Buffer start\n"); > + Buffer = (UINT8*) InBuffer->Pointer; > + for (i = 0; i < (UINT8) InBuffer->Length; i++) > + { > + AcpiOsPrintf("%x ", Buffer[i]); > + } > + AcpiOsPrintf("\nBuffer end\n"); > + > Status = AcpiRsSetSrsMethodData (Node, InBuffer); > return_ACPI_STATUS (Status); > }