From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753910AbaBZTDm (ORCPT ); Wed, 26 Feb 2014 14:03:42 -0500 Received: from service87.mimecast.com ([91.220.42.44]:54928 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751853AbaBZTDk convert rfc822-to-8bit (ORCPT ); Wed, 26 Feb 2014 14:03:40 -0500 Date: Wed, 26 Feb 2014 19:03:33 +0000 From: Lorenzo Pieralisi To: Sebastian Capella Cc: Russell King - ARM Linux , Len Brown , "linaro-kernel@lists.linaro.org" , Catalin Marinas , Jonathan Austin , "linux-pm@vger.kernel.org" , Will Deacon , Nicolas Pitre , "Rafael J. Wysocki" , "linux-kernel@vger.kernel.org" , Uwe Kleine-K?nig , Russ Dill , Pavel Machek , Cyril Chemparathy , Santosh Shilimkar , Stephen Boyd , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH RFC v1 3/3] ARM hibernation / suspend-to-disk Message-ID: <20140226190333.GD22839@e102568-lin.cambridge.arm.com> References: <1392774729-3235-1-git-send-email-sebastian.capella@linaro.org> <1392774729-3235-4-git-send-email-sebastian.capella@linaro.org> <20140219161254.GB19343@e102568-lin.cambridge.arm.com> <20140222103840.GH21483@n2100.arm.linux.org.uk> <20140222120910.GA9012@e102568-lin.cambridge.arm.com> <20140223200208.12998.47604@capellas-linux> <20140225113251.GB6855@e102568-lin.cambridge.arm.com> <20140225175531.18229.77850@capellas-linux> <20140226102427.GA22839@e102568-lin.cambridge.arm.com> <20140226175055.3502.49656@capellas-linux> MIME-Version: 1.0 In-Reply-To: <20140226175055.3502.49656@capellas-linux> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginalArrivalTime: 26 Feb 2014 19:03:40.0525 (UTC) FILETIME=[7619E9D0:01CF3325] X-MC-Unique: 114022619033702001 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 26, 2014 at 05:50:55PM +0000, Sebastian Capella wrote: > Quoting Lorenzo Pieralisi (2014-02-26 02:24:27) > > On Tue, Feb 25, 2014 at 05:55:31PM +0000, Sebastian Capella wrote: > > > > Please add: > > > > "swsusp_save() is executed in the suspend finisher so that the CPU context > > pointer and memory are part of the saved image, which is required by the > > resume kernel image to restart execution from swsusp_arch_suspend()" > > > > > * soft_restart is not technically needed, but is used > > > * to get success returned from cpu_suspend. > > > * After resume, the hibernation snapshot is written out. > > > > "When soft reboot completes, the hibernation snapshot is written out." > > > > Resume is confusing since this code is resuming twice :D on image saving > > and on kernel image restoration. > > Thanks Lorenzo! > > Here's what I've got. > > /* > * Snapshot kernel memory and reset the system. > * > * swsusp_save() is executed in the suspend finisher so that the CPU > * context pointer and memory are part of the saved image, which is > * required by the resume kernel image to restart execution from > * swsusp_arch_suspend(). > * > * soft_restart is not technically needed, but is used to get success > * returned from cpu_suspend. > * > * When soft reboot completes, the hibernation snapshot is > * written out. > */ > > Does this look ok? I'll prepare a v4 patchset. Yes it does, I will wait and review v4 then. Thank you, Lorenzo From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lorenzo Pieralisi Subject: Re: [PATCH RFC v1 3/3] ARM hibernation / suspend-to-disk Date: Wed, 26 Feb 2014 19:03:33 +0000 Message-ID: <20140226190333.GD22839@e102568-lin.cambridge.arm.com> References: <1392774729-3235-1-git-send-email-sebastian.capella@linaro.org> <1392774729-3235-4-git-send-email-sebastian.capella@linaro.org> <20140219161254.GB19343@e102568-lin.cambridge.arm.com> <20140222103840.GH21483@n2100.arm.linux.org.uk> <20140222120910.GA9012@e102568-lin.cambridge.arm.com> <20140223200208.12998.47604@capellas-linux> <20140225113251.GB6855@e102568-lin.cambridge.arm.com> <20140225175531.18229.77850@capellas-linux> <20140226102427.GA22839@e102568-lin.cambridge.arm.com> <20140226175055.3502.49656@capellas-linux> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140226175055.3502.49656@capellas-linux> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Sebastian Capella Cc: Len Brown , "linaro-kernel@lists.linaro.org" , Russell King - ARM Linux , Jonathan Austin , "linux-pm@vger.kernel.org" , Catalin Marinas , Nicolas Pitre , Will Deacon , "linux-kernel@vger.kernel.org" , Santosh Shilimkar , "Rafael J. Wysocki" , Pavel Machek , Uwe Kleine-K?nig , Russ Dill , Cyril Chemparathy , Stephen Boyd , "linux-arm-kernel@lists.infradead.org" List-Id: linux-pm@vger.kernel.org On Wed, Feb 26, 2014 at 05:50:55PM +0000, Sebastian Capella wrote: > Quoting Lorenzo Pieralisi (2014-02-26 02:24:27) > > On Tue, Feb 25, 2014 at 05:55:31PM +0000, Sebastian Capella wrote: > > > > Please add: > > > > "swsusp_save() is executed in the suspend finisher so that the CPU context > > pointer and memory are part of the saved image, which is required by the > > resume kernel image to restart execution from swsusp_arch_suspend()" > > > > > * soft_restart is not technically needed, but is used > > > * to get success returned from cpu_suspend. > > > * After resume, the hibernation snapshot is written out. > > > > "When soft reboot completes, the hibernation snapshot is written out." > > > > Resume is confusing since this code is resuming twice :D on image saving > > and on kernel image restoration. > > Thanks Lorenzo! > > Here's what I've got. > > /* > * Snapshot kernel memory and reset the system. > * > * swsusp_save() is executed in the suspend finisher so that the CPU > * context pointer and memory are part of the saved image, which is > * required by the resume kernel image to restart execution from > * swsusp_arch_suspend(). > * > * soft_restart is not technically needed, but is used to get success > * returned from cpu_suspend. > * > * When soft reboot completes, the hibernation snapshot is > * written out. > */ > > Does this look ok? I'll prepare a v4 patchset. Yes it does, I will wait and review v4 then. Thank you, Lorenzo From mboxrd@z Thu Jan 1 00:00:00 1970 From: lorenzo.pieralisi@arm.com (Lorenzo Pieralisi) Date: Wed, 26 Feb 2014 19:03:33 +0000 Subject: [PATCH RFC v1 3/3] ARM hibernation / suspend-to-disk In-Reply-To: <20140226175055.3502.49656@capellas-linux> References: <1392774729-3235-1-git-send-email-sebastian.capella@linaro.org> <1392774729-3235-4-git-send-email-sebastian.capella@linaro.org> <20140219161254.GB19343@e102568-lin.cambridge.arm.com> <20140222103840.GH21483@n2100.arm.linux.org.uk> <20140222120910.GA9012@e102568-lin.cambridge.arm.com> <20140223200208.12998.47604@capellas-linux> <20140225113251.GB6855@e102568-lin.cambridge.arm.com> <20140225175531.18229.77850@capellas-linux> <20140226102427.GA22839@e102568-lin.cambridge.arm.com> <20140226175055.3502.49656@capellas-linux> Message-ID: <20140226190333.GD22839@e102568-lin.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Feb 26, 2014 at 05:50:55PM +0000, Sebastian Capella wrote: > Quoting Lorenzo Pieralisi (2014-02-26 02:24:27) > > On Tue, Feb 25, 2014 at 05:55:31PM +0000, Sebastian Capella wrote: > > > > Please add: > > > > "swsusp_save() is executed in the suspend finisher so that the CPU context > > pointer and memory are part of the saved image, which is required by the > > resume kernel image to restart execution from swsusp_arch_suspend()" > > > > > * soft_restart is not technically needed, but is used > > > * to get success returned from cpu_suspend. > > > * After resume, the hibernation snapshot is written out. > > > > "When soft reboot completes, the hibernation snapshot is written out." > > > > Resume is confusing since this code is resuming twice :D on image saving > > and on kernel image restoration. > > Thanks Lorenzo! > > Here's what I've got. > > /* > * Snapshot kernel memory and reset the system. > * > * swsusp_save() is executed in the suspend finisher so that the CPU > * context pointer and memory are part of the saved image, which is > * required by the resume kernel image to restart execution from > * swsusp_arch_suspend(). > * > * soft_restart is not technically needed, but is used to get success > * returned from cpu_suspend. > * > * When soft reboot completes, the hibernation snapshot is > * written out. > */ > > Does this look ok? I'll prepare a v4 patchset. Yes it does, I will wait and review v4 then. Thank you, Lorenzo