Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2007 14:54:04 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Denis <piloyder@gmail.com>
Cc:        freebsd-acpi@FreeBSD.org
Subject:   Re: ACPI error on Compaq nc6220, FreeBSD 7.0
Message-ID:  <200709111454.05746.jkim@FreeBSD.org>
In-Reply-To: <325305250709111136o737a176bufdd06bfeff377fc@mail.gmail.com>
References:  <325305250709010712n4bd0d62l9a144572441cf3dc@mail.gmail.com> <200709111201.39306.jkim@FreeBSD.org> <325305250709111136o737a176bufdd06bfeff377fc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 11 September 2007 02:36 pm, Denis wrote:
> On 9/11/07, Jung-uk Kim <jkim@freebsd.org> 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.

Thanks.

> > > 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:2
>37: error: expected declaration specifiers or '...' before numeric
> constant
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:2
>37: error: expected declaration specifiers or '...' before numeric
> constant
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:2
>38: error: conflicting types for 'AcpiOsCreateSemaphore'
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:9
>3: error: previous definition of 'AcpiOsCreateSemaphore' was here
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:2
>61: error: expected identifier or '(' before 'void'
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:2
>77: error: expected declaration specifiers or '...' before numeric
> constant
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:2
>78: error: conflicting types for 'AcpiOsWaitSemaphore'
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:1
>42: error: previous definition of 'AcpiOsWaitSemaphore' was here
> /usr/src/sys/modules/acpi/acpi/../../../dev/acpica/Osd/OsdSynch.c:3
>21: 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
> ---

OsdSynch.c may have been corrupt.  Can you revert the three files, 
download the patch again from the URL, re-apply, and recompile?

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

I believe Nate's patch should fix the problem.

Jung-uk Kim

> Unfortunatly, I do not have experience in debugging, but If there
> anything I can help - I'm more than eager to do it.
>
> Best regards, Denis.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709111454.05746.jkim>