On Thu, 2010-10-21 at 11:39 +0800, Lin Ming wrote: > On Wed, 2010-10-20 at 16:06 +0800, Hans Petter Selasky wrote: > > 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? > > I'm trying to reproduce this bug in the acpi simulator(acpiexec). > Will get back to you.
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); } _______________________________________________ freebsd-acpi@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-acpi To unsubscribe, send any mail to "freebsd-acpi-unsubscr...@freebsd.org"