From owner-acpi-jp@jp.FreeBSD.org Wed Jul 16 05:40:08 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h6FKe8C39865;
	Wed, 16 Jul 2003 05:40:08 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rootlabs.com (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id h6FKe8T39857
	for <acpi-jp@jp.freebsd.org>; Wed, 16 Jul 2003 05:40:08 +0900 (JST)
	(envelope-from nate@rootlabs.com)
Received: (qmail 20676 invoked by uid 1000); 15 Jul 2003 20:39:59 -0000
From: Nate Lawson <nate@root.org>
To: acpi-jp@jp.FreeBSD.org
cc: takawata@freebsd.org, imp@bsdimp.com
Message-ID: <20030715133552.Q20667@root.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 15 Jul 2003 13:39:59 -0700
X-Sequence: acpi-jp 2460
Subject: [acpi-jp 2460] PATCH: ecdt support for EC (do not use!)
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030702

This patch is not ready for use (it panics after acpi_ec_attach) but I'd
like some input on it.  On my laptop, it fixes probe for cbb and gets rid
of all the acpi warnings.

In particular, I would like your comments on the use of
bus_alloc_resource() and the install/removal of the address space handler.
It seems like the panic is caused by EcSpaceHandler being called with the
old value of sc_ecdt instead of the new one of sc.  Since sc_ecdt has been
freed, it is overwritten with 0xdeadc0de and the mutex_lock panics.  Am I
doing something wrong with removing the space handler for
ACPI_ROOT_OBJECT?

Thanks,
Nate
