From owner-freebsd-acpi@FreeBSD.ORG Tue Sep 11 18:56:46 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 2F0AC16A41A for ; Tue, 11 Sep 2007 18:56:46 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 1B15513C483 for ; Tue, 11 Sep 2007 18:56:46 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 81849 invoked from network); 11 Sep 2007 18:56:46 -0000 Received: from ppp-71-139-1-224.dsl.snfc21.pacbell.net (HELO ?10.0.5.18?) (nate-mail@71.139.1.224) by root.org with ESMTPA; 11 Sep 2007 18:56:46 -0000 Message-ID: <46E6E4E9.4040900@root.org> Date: Tue, 11 Sep 2007 11:56:41 -0700 From: Nate Lawson User-Agent: Thunderbird 2.0.0.6 (X11/20070810) MIME-Version: 1.0 To: Denis References: <325305250709010712n4bd0d62l9a144572441cf3dc@mail.gmail.com> <200709101101.03340.jkim@FreeBSD.org> <325305250709102224n5e626590g83f6482747efae9d@mail.gmail.com> <200709111201.39306.jkim@FreeBSD.org> <325305250709111136o737a176bufdd06bfeff377fc@mail.gmail.com> In-Reply-To: <325305250709111136o737a176bufdd06bfeff377fc@mail.gmail.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org, Jung-uk Kim 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: Tue, 11 Sep 2007 18:56:46 -0000 Denis wrote: > On 9/11/07, Jung-uk Kim wrote: >>> I tried it with src from September 10, without patch from Nate. >> Can you try it with his patch as well? > > Sure, I will do it. > >>> When I tried it without acfreebsd.h patch, kernel didn't compile. >> That is strange because I can compile kernel with or without it. In >> fact, I have been using it without the acfreebsd.h patch for >> months. :-( > > I got next error: > --- > cc -O -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc > -I/usr/src/sys/modules/acpi/acpi/../../../contrib/dev/acpica > -DHAVE_KERNEL_OPTION_HEADERS -include > /usr/obj/usr/src/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -g > -I/usr/obj/usr/src/sys/GENERIC -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:237: > error: expected declaration specifiers or '...' before numeric > constant > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:237: > error: expected declaration specifiers or '...' before numeric > constant > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:238: > error: conflicting types for 'AcpiOsCreateSemaphore' > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:93: > error: previous definition of 'AcpiOsCreateSemaphore' was here > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:261: > error: expected identifier or '(' before 'void' > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:277: > error: expected declaration specifiers or '...' before numeric > constant > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:278: > error: conflicting types for 'AcpiOsWaitSemaphore' > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:142: > error: previous definition of 'AcpiOsWaitSemaphore' was here > /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:321: > error: expected identifier or '(' before 'void' > *** Error code 1 > > Stop in /usr/src/sys/modules/acpi/acpi. > *** Error code 1 > > Stop in /usr/src/sys/modules/acpi. > *** Error code 1 > > Stop in /usr/src/sys/modules. > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/GENERIC. > *** Error code 1 Are you running 7-current? >>> When I tried it with acfreebsd.h patch kernel compiled, but I >>> couldn't boot with ACPI - got kernel panic... >> Can you describe the panic messages? > > I got next message on the console: > --- > panic: blockable sleep lock (sleep mutex) ACPI EC lock @ > /usr/src/sys/modules/acpi/acpi/../../dev/acpica/acpi_ec.c:330 > cpuid = 0 > KDB: enter: panic > [thread pid 21 tid 100013 ] > Stopped at kdb_enter+0x32: leave > db> My EC diff (latest posted here was ecng-{6,7}c.diff) fixes this problem. -Nate