From owner-acpi-jp@jp.FreeBSD.org Wed Mar 31 05:34:56 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2UKYua26328;
	Wed, 31 Mar 2004 05:34:56 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from harmony.village.org (warner@rover.bsdimp.com [204.144.255.66])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i2UKYtd26323
	for <acpi-jp@jp.FreeBSD.org>; Wed, 31 Mar 2004 05:34:55 +0900 (JST)
	(envelope-from imp@bsdimp.com)
Received: from localhost (warner@rover2.village.org [10.0.0.1])
	by harmony.village.org (8.12.10/8.12.9) with ESMTP id i2UKYqkj012846;
	Tue, 30 Mar 2004 13:34:52 -0700 (MST)
	(envelope-from imp@bsdimp.com)
Message-Id: <20040330.133504.94843223.imp@bsdimp.com>
To: nate@root.org
Cc: acpi-jp@jp.FreeBSD.org
From: "M. Warner Losh" <imp@bsdimp.com>
In-Reply-To: <20040330122026.T81785@root.org>
References: <20040204170946.GA787@laptop.6bone.nl>
	<20040324201545.GA1830@laptop.6bone.nl>
	<20040330122026.T81785@root.org>
X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 30 Mar 2004 13:35:04 -0700
X-Sequence: acpi-jp 3165
Subject: [acpi-jp 3165] Re: hot after resume
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: imp@bsdimp.com
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

In message: <20040330122026.T81785@root.org>
            Nate Lawson <nate@root.org> writes:
: 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.

Except on my laptop, which is running those patches.

I'm just going to start committing this to freebsd and deal with the
people it breaks...

Warner
