On Thursday 21 October 2010 09:12:27 Lin Ming wrote:
> 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.

Here is the relevant output. First note, the buffer length is 512 and 
(uint8_t)512 = 0, so I modified the code to print out the 512 bytes.


Passed in resource buffer length=512
Buffer start
0f 00 00 00 40 00 00 00 01 00 01 01 01 17 01 00 38 b0 17 03 00 ff ff ff 11 00 
00 00 11 00 00 00 12 00 00 00 13 00 00 00 14 00 00 00 15 00 00 00 16 00 00 00 
17 00 00 0
0 00 00 00 00 00 00 00 00 07 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 07 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 0
0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 0
0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 
Buffer end

**** 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

--HPS
_______________________________________________
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"

Reply via email to