From owner-acpi-jp@jp.FreeBSD.org Sat Jul 12 13:23:12 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h6C4NCu80475;
	Sat, 12 Jul 2003 13:23:12 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rcpt-expgw.biglobe.ne.jp (rcpt-expgw.biglobe.ne.jp [202.225.89.166])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id h6C4NCT80470
	for <acpi-jp@jp.FreeBSD.org>; Sat, 12 Jul 2003 13:23:12 +0900 (JST)
	(envelope-from t-kouchi@mud.biglobe.ne.jp)
Received: from smtp-gw.biglobe.ne.jp
	by rcpt-expgw.biglobe.ne.jp (nkrw/5508310702) with ESMTP id h6C4NCs01566
	for <acpi-jp@jp.FreeBSD.org>; Sat, 12 Jul 2003 13:23:12 +0900 (JST)
X-Biglobe-Sender: <t-kouchi@mud.biglobe.ne.jp>
Received: from [192.168.0.240] (219.8.246.9 [219.8.246.9]) by smtp-gw.biglobe.ne.jp
	id NCXWC0A826C2; Sat, 12 Jul 2003 13:23:12 +0900 (JST)
From: Takayoshi Kochi <kochi@netbsd.org>
To: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20030711201532.P9216@root.org>
References: <20030711201532.P9216@root.org>
Message-Id: <20030712131434.548D.KOCHI@netbsd.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.06.02
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Sat, 12 Jul 2003 13:23:03 +0900
X-Sequence: acpi-jp 2410
Subject: [acpi-jp 2410] Re: Problems with 0619 and battery support
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: kochi@netbsd.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030702

Hi Nate,

On Fri, 11 Jul 2003 20:21:07 -0700
Nate Lawson <nate@root.org> wrote:

> I am attempting to import acpica-0619 into FreeBSD.  The basic changes I
> made to get things working was to change calls to AcpiGetObjectInfo to use
> an ACPI_BUFFER and AcpiEnableGpe instead of AcpiEnableEvent for enabling
> our GPE handlers for the EC.  With my changes, it compiles and boots fine.
> But it seems battery support is broken.  Here is the dmesg output.

I also tried 20030619 (though on NetBSD) with similar changes.
It fails to evaluate _BST on my ThinkPad X31.
One problem I found is the change in dsmthdat.c (reference counting
change according to unpublished 2.0C) and it causes AE_AML_INTERNAL
(too many reference counts).  I suppose it's a bug introduced in
20030619 but I'm not sure exactly.  By reverting dsmthdat.c
to 20030523, that problem went away.

However still I have some locking problem with semaphore somewhere else,
which prevents me from using EC functions properly (such as Fn+F8 etc.).
I haven't looked into this yet (and this may be NetBSD specific).

Thanks,
Takayoshi Kochi

