From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH 2/2] Fix console handling during suspend/resume Date: Sat, 17 Jun 2006 09:05:27 +1000 Message-ID: <1150499128.23600.74.camel@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.osdl.org Errors-To: linux-pm-bounces@lists.osdl.org To: Alan Stern Cc: David Brownell , linux-pm@lists.osdl.org, Linus Torvalds , Nigel Cunningham List-Id: linux-pm@vger.kernel.org > One way to allow for a two-phase suspend would be like this: > = > * FREEZE all devices > * Snapshot > * UNFREEZE all devices (perhaps skip some devices, although I don't > know how you could determine which ones) > * Write image to disk > * Send PRESUSPEND message to all devices (they can treat it like SUSPEND > or like FREEZE, or they can ignore it if they want) > * SUSPEND all devices > = > The two-phase part being the last two steps. The prepare-for-suspend that Linus and I have discussed should happen before the freeze loop (and finish at the very end of wakeup). It enclose the entire suspend/resume processing imho. Ben