mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>,
	"Huang, Ying" <ying.huang@intel.com>
Cc: nigel@nigel.suspend2.net,
	Kexec Mailing List <kexec@lists.infradead.org>,
	linux-kernel@vger.kernel.org,
	"Eric W. Biederman" <ebiederm@xmission.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-pm@lists.linux-foundation.org,
	Jeremy Maitin-Shepard <jbms@cmu.edu>
Subject: Re: [linux-pm] Re: [PATCH 3/3 -mm] kexec based hibernation -v6: kexec hibernate/resume
Date: Wed, 21 Nov 2007 01:00:35 +0100	[thread overview]
Message-ID: <200711210100.36884.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0711200949590.3931-100000@iolanthe.rowland.org>

On Tuesday, 20 of November 2007, Alan Stern wrote:
> On Tue, 20 Nov 2007, Huang, Ying wrote:
> 
> > - What is the difference between PMSG_SUSPEND and PMSG_FREEZE?
> 
> SUSPEND means that the system is about to go into a low-power state, so 
> the driver should take the appropriate action to reduce the device's 
> power consumption.  It should also stop all I/O and DMA to the device.  
> Interrupts can remain enabled if the device is supposed to be a wakeup 
> source; otherwise they should be disabled.
> 
> FREEZE means that the system is going to hibernate, and devices need to
> be quiescent (no I/O, no DMA, and no interrupts) so that an atomic
> memory snapshot can be captured.  The driver should take the
> appropriate action to quiesce the device but the power level doesn't
> need to change.
> 
> PRETHAW means that the system is going to resume from hibernation by
> loading a previously-saved memory snapshot.  The driver should take the
> appropriate action to quiesce the device (no I/O, no DMA, and no
> interrupts) so that the snapshot can be safely restored, but the power
> level doesn't need to change.  The driver may also want to put the
> device into a special state so that the saved kernel's resume method
> will recognize the device has undergone a hibernation cycle and needs
> to be reinitialized.

Exactly.

For this reason, PMSG_SUSPEND should be used right before calling
hibernation_ops->enter() .

Greetings,
Rafael

  reply	other threads:[~2007-11-20 23:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19  7:02 Huang, Ying
2007-11-19 18:22 ` Rafael J. Wysocki
2007-11-20  1:56   ` Huang, Ying
2007-11-20  2:24     ` Rafael J. Wysocki
2007-11-20  2:50       ` Huang, Ying
2007-11-20 14:58         ` [linux-pm] " Alan Stern
2007-11-21  0:00           ` Rafael J. Wysocki [this message]
2007-11-21  0:00         ` Rafael J. Wysocki
2007-11-21  8:05           ` Huang, Ying
2007-11-21 20:09             ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200711210100.36884.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=akpm@linux-foundation.org \
    --cc=ebiederm@xmission.com \
    --cc=jbms@cmu.edu \
    --cc=kexec@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=nigel@nigel.suspend2.net \
    --cc=stern@rowland.harvard.edu \
    --cc=ying.huang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®