From owner-acpi-jp@jp.FreeBSD.org Wed Mar 31 05:21:57 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2UKLvm24302;
	Wed, 31 Mar 2004 05:21:57 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from root.org (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id i2UKLtd24297
	for <acpi-jp@jp.FreeBSD.org>; Wed, 31 Mar 2004 05:21:55 +0900 (JST)
	(envelope-from nate@root.org)
Received: (qmail 82400 invoked by uid 1000); 30 Mar 2004 20:21:50 -0000
From: Nate Lawson <nate@root.org>
To: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20040324201545.GA1830@laptop.6bone.nl>
Message-ID: <20040330122026.T81785@root.org>
References: <20040130125704.GA16237@laptop.6bone.nl> <20040130102048.A99864@root.org>
 <20040202090756.GA1846@laptop.6bone.nl> <20040202094116.U22318@root.org>
 <20040203005930.GA683@laptop.6bone.nl> <20040204170946.GA787@laptop.6bone.nl>
 <20040324201545.GA1830@laptop.6bone.nl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 30 Mar 2004 12:21:50 -0800
X-Sequence: acpi-jp 3163
Subject: [acpi-jp 3163] Re: hot after resume
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

On Wed, 24 Mar 2004, Mark Santcroos wrote:
> I've installed Linux to hunt for differences or similarities.
> In Linux S3 suspend works for me.
>
> On Wed, Feb 04, 2004 at 06:09:46PM +0100, Mark Santcroos wrote:
> > The patch at the end creates this output:
> > "acpi_cpu_idle(): p_lvl2: 0xff"
>
> However, on Linux the function also returns 0xff, so that is probably just
> an implementation error of my BIOS.

I had a look at how Linux implements suspend/resume.  All drivers have to
restore their own PCI BARs.  I think there is work going on there to do
this automatically in 2.6.x.  For FreeBSD, as you know, we're going to
handle this for drivers also via code in the power tree.  Most drivers
don't do this, hence S3 is worse on FreeBSD than Linux at the moment.

-Nate
