Date: Mon, 7 Jan 2008 14:07:40 -0500 From: John Baldwin <jhb@freebsd.org> To: Nate Lawson <nate@root.org> Cc: freebsd-acpi@freebsd.org Subject: Re: GPE handler livelock Message-ID: <200801071407.40473.jhb@freebsd.org> In-Reply-To: <47802510.3040203@root.org> References: <200712311556.lBVFuVZf030567@freefall.freebsd.org> <200712311243.18123.jhb@freebsd.org> <47802510.3040203@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 05 January 2008 07:47:12 pm Nate Lawson wrote: > John Baldwin wrote: > > np. Btw, on another note, I've finally tracked down the weird hangs my laptop > > has on updated HEAD to something in the GPE handling related to updates to > > ACPI in the past year. I'm still digging, but you can look at > > www.freebsd.org/~jhb/gpe/ and use the modified schedgraph.py there on the > > ktr5.out to see what happens when my laptop stops running userland processes. > > It appears to be spending all its time running a GPE handler for a thermal > > event. > > Thanks for digging into this. I reviewed this and am trying to figure > out why the _L00 handler never completes. It keeps getting preempted by > the next one. To help track this down, try removing these two lines > from the _L00 method and recompile your ASL: > > Acquire (\_TZ.C173, 0xFFFF) > ... > Release (\_TZ.C173) > > For others who have this problem, instructions on how to recompile and > load your custom ASL can be found here (11.16.4 and 5): > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/acpi-debug.html Err, taskqueue threads run tasks synchronously, it's just running repeatedly, almost as if the GPE never turns off once it is asserted. If you grab ktr6.out and the latest schedgraph.py it adds extra handling for tracking ACPI mutexes. It gives each Mutex its own line in the display showing when it is held, contested, or idle. The mutexes are never contested, so I don't think that is the issue. When I get some more time I'm going to instrument the GPE enabling/disabling stuff. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801071407.40473.jhb>