From owner-freebsd-acpi@FreeBSD.ORG Fri Sep 14 20:28:29 2007 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 B8B8816A417 for ; Fri, 14 Sep 2007 20:28:29 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.freebsd.org (Postfix) with ESMTP id 52E6313C45E for ; Fri, 14 Sep 2007 20:28:28 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.6/8.13.6) with ESMTP id l8EKSR6o096764; Fri, 14 Sep 2007 16:28:28 -0400 (EDT) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: Denis Date: Fri, 14 Sep 2007 16:28:16 -0400 User-Agent: KMail/1.6.2 References: <325305250709010712n4bd0d62l9a144572441cf3dc@mail.gmail.com> <200709131416.21302.jkim@FreeBSD.org> <200709131424.05193.jkim@FreeBSD.org> In-Reply-To: <200709131424.05193.jkim@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_o7u6GTVSH0Q6l+C" Message-Id: <200709141628.24801.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.90.2/4272/Fri Sep 14 04:36:36 2007 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-acpi@FreeBSD.org Subject: Re: ACPI error on Compaq nc6220, FreeBSD 7.0 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: Fri, 14 Sep 2007 20:28:29 -0000 --Boundary-00=_o7u6GTVSH0Q6l+C Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 13 September 2007 02:23 pm, Jung-uk Kim wrote: > [Sorry for the previous empty reply.] > > On Thursday 13 September 2007 02:16 pm, Jung-uk Kim wrote: > > On Thursday 13 September 2007 01:59 pm, Denis wrote: > > > On 9/13/07, Jung-uk Kim wrote: > > > > Please remove spinlock_enter() and spinlock_exit() from > > > > OsdSynch.c and retry. > > > > > > So I applied your patch, Nate's patch, removed spinlock_enter() > > > and spinlock_exit() from OsdSynch.c and tried to to play a > > > little with booting with ACPI: > > > For the first time I could boot with ACPI and login to the > > > system. But after several minutes I was unable to enter any > > > symbol from the keyboard, however was able to switch between > > > consoles (alt+Fx). > > > > > > Couple times got kernel panic: > > > --- > > > panic: _sx_xlock_hard: recursed on non recursive sx ACPI > > > embedded controller @ > > > /usr/src/sys/modules/acpi/acpi/../../../acpica/acpi_ec.c:209 > > > > > > cpuid = 0 > > > KDB: enter: panic > > > [thread: pid 8 tid 100018 ] > > > Stopped at kbd_enter+0x32: leave > > > db> > > > --- > > Actually I am seeing the same problem. Can you try this patch *after* applying Nate's patch? It should fix this problem. Thanks, Jung-uk Kim --Boundary-00=_o7u6GTVSH0Q6l+C Content-Type: text/plain; charset="iso-8859-1"; name="acpi_ec.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="acpi_ec.diff" --- src/sys/dev/acpica/acpi_ec.c.orig 2007-09-14 16:20:20.000000000 -0400 +++ src/sys/dev/acpica/acpi_ec.c 2007-09-14 16:08:04.000000000 -0400 @@ -624,6 +624,7 @@ } /* Evaluate _Qxx to respond to the controller. */ + EcUnlock(sc); snprintf(qxx, sizeof(qxx), "_Q%02X", Data); AcpiUtStrupr(qxx); Status = AcpiEvaluateObject(sc->ec_handle, qxx, NULL, NULL); @@ -631,8 +632,6 @@ device_printf(sc->ec_dev, "evaluation of query method %s failed: %s\n", qxx, AcpiFormatException(Status)); } - - EcUnlock(sc); } /* --Boundary-00=_o7u6GTVSH0Q6l+C--