From owner-acpi-jp@jp.FreeBSD.org Mon Jul  8 00:27:34 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g67FRYA28864;
	Mon, 8 Jul 2002 00:27:34 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (root@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g67FRXn28859
	for <acpi-jp@jp.FreeBSD.org>; Mon, 8 Jul 2002 00:27:33 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwa@tasogare.imasy.or.jp [202.227.24.5])
	by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id g67FRTZ71797
	for <acpi-jp@jp.FreeBSD.org>; Mon, 8 Jul 2002 00:27:29 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Date: Mon, 08 Jul 2002 00:27:18 +0900 (JST)
Message-Id: <20020708.002718.59647901.iwasaki@jp.FreeBSD.org>
To: acpi-jp@jp.FreeBSD.org
From: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
In-Reply-To: <20020702.072741.78701541.iwasaki@jp.FreeBSD.org>
References: <B9ECACBD6885D5119ADC00508B68C1EA053DDC98@orsmsx107.jf.intel.com>
	<20020702.072741.78701541.iwasaki@jp.FreeBSD.org>
X-Mailer: Mew version 2.1 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020706
X-Sequence: acpi-jp 1666
Subject: [acpi-jp 1666] Re: Intel's acpi 
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: iwasaki@jp.FreeBSD.org

Hi,

> 3. lock up during _BST evaluation
> It seems to be related with semaphore...
> Also, polling temperature keeps failing.
> 
> 4. and maybe more (related with GPE?)
> 
> I need more investigation, and I think I can fix them hopefully.

I've fixed these problems.  All problems are caused by GlobalLock
changes.

ACPI_ACQUIRE_GLOBAL_LOCK and ACPI_RELEASE_GLOBAL_LOCK macros are
defined at acgcc.h in 20020404 version, but now they were removed
in 20020611 version.  So I defined them in acfreebsd.h.

Also, other bugs were found in OS layer code by this changes.  Without
ACPI_ACQUIRE_GLOBAL_LOCK definition, AcpiEvAcquireGlobalLock() always
call AcpiExSystemWaitSemaphore(), resulting AcpiOsWaitSemaphore().
In our AcpiOsWaitSemaphore(), there were two bugs about
ACPI_NO_UNIT_LIMIT checking.  I fixed and commit them yesterday.

Now, I think we can go for acpica-unix-20020611 :)
I'll import this version within a few days.
My latest diff againt sys/contrib/dev/acpica/ and other src/ sources at:
http://people.freebsd.org/~iwasaki/acpi/acpica-20020404-20020611-test20020707.diff
http://people.freebsd.org/~iwasaki/acpi/acpica-src-20020611-test20020707.diff

Thanks
