From owner-acpi-jp@jp.FreeBSD.org Wed Mar 31 05:41:39 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2UKfd526812;
	Wed, 31 Mar 2004 05:41:39 +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 i2UKfcd26805
	for <acpi-jp@jp.FreeBSD.org>; Wed, 31 Mar 2004 05:41:38 +0900 (JST)
	(envelope-from nate@root.org)
Received: (qmail 82626 invoked by uid 1000); 30 Mar 2004 20:41:33 -0000
From: Nate Lawson <nate@root.org>
To: "M. Warner Losh" <imp@bsdimp.com>
cc: acpi-jp@jp.FreeBSD.org
In-Reply-To: <20040330.133504.94843223.imp@bsdimp.com>
Message-ID: <20040330124038.L82530@root.org>
References: <20040204170946.GA787@laptop.6bone.nl> <20040324201545.GA1830@laptop.6bone.nl>
 <20040330122026.T81785@root.org> <20040330.133504.94843223.imp@bsdimp.com>
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:41:33 -0800
X-Sequence: acpi-jp 3166
Subject: [acpi-jp 3166] 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 Tue, 30 Mar 2004, M. Warner Losh wrote:
> In message: <20040330122026.T81785@root.org>
>             Nate Lawson <nate@root.org> writes:
> : 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...

Excellent!  I hope you mean just the BAR restoration, not the power
transition stuff (D0-D3).  That needs a bit more testing.

-Nate
