Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758601AbXKTO6W (ORCPT ); Tue, 20 Nov 2007 09:58:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753954AbXKTO6P (ORCPT ); Tue, 20 Nov 2007 09:58:15 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:51725 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753852AbXKTO6O (ORCPT ); Tue, 20 Nov 2007 09:58:14 -0500 Date: Tue, 20 Nov 2007 09:58:12 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: "Huang, Ying" cc: "Rafael J. Wysocki" , , Kexec Mailing List , , "Eric W. Biederman" , Andrew Morton , , Jeremy Maitin-Shepard Subject: Re: [linux-pm] Re: [PATCH 3/3 -mm] kexec based hibernation -v6: kexec hibernate/resume In-Reply-To: <1195527033.11955.50.camel@caritas-dev.intel.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1486 Lines: 32 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. Alan Stern - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/