From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933333AbXGPQwX (ORCPT ); Mon, 16 Jul 2007 12:52:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758621AbXGPQwO (ORCPT ); Mon, 16 Jul 2007 12:52:14 -0400 Received: from [212.12.190.213] ([212.12.190.213]:32967 "EHLO raad.intranet" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754981AbXGPQwN (ORCPT ); Mon, 16 Jul 2007 12:52:13 -0400 From: Al Boldi To: Alan Stern Subject: Re: Hibernation considerations Date: Mon, 16 Jul 2007 19:51:35 +0300 User-Agent: KMail/1.5 Cc: "Rafael J. Wysocki" , , Andrew Morton , "Eric W. Biederman" , "Huang, Ying" , Jeremy Maitin-Shepard , Kyle Moffett , Nigel Cunningham , Pavel Machek , pm list , References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707161951.35225.a1426z@gawab.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Alan Stern wrote: > On Mon, 16 Jul 2007, Al Boldi wrote: > > From a kexec'd hibernation kernel pov, both S3 and S4 look conceptually > > exactly the same. The only difference is, in S3 the memory is in memory > > and in S4 the memory is on storage. All device handling is exactly the > > same, so if there is a problem with device handling between the kexec'd > > hibernation kernel and the normal kernel, then that would have made > > itself visible. > > You have contradicted yourself. "In S3 the memory is in memory and in > S4 the memory is on storage". How does the memory get onto storage? > The kexec'd hibernation kernel writes it there. To do so it accesses a > storage device. > > Consequently the device handling _cannot_ be exactly the same in S3 and > S4. Ok, you should have read this in the context of suspending/resuming from/to the normal kernel, and in that case they are exactly the same, i.e. kexec -e for suspend and kexec -j for resume. BTW, it would be really helpful if people would actually try the kexec hibernation patches, as this may yield a much more constructive discussion. Thanks! -- Al