From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v7 5/8] arm64: add PSCI CPU_SUSPEND based cpu_suspend support Date: Mon, 18 Aug 2014 15:21:13 +0100 Message-ID: <20140818142113.GF20043@localhost> References: <1407945127-27554-1-git-send-email-lorenzo.pieralisi@arm.com> <1407945127-27554-6-git-send-email-lorenzo.pieralisi@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1407945127-27554-6-git-send-email-lorenzo.pieralisi@arm.com> 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: Lorenzo Pieralisi Cc: Mark Rutland , Tomasz Figa , Lina Iyer , Chander Kashyap , Vincent Guittot , Nicolas Pitre , Daniel Lezcano , "linux-arm-kernel@lists.infradead.org" , "grant.likely@linaro.org" , Charles Garcia-Tobin , "devicetree@vger.kernel.org" , Kevin Hilman , "linux-pm@vger.kernel.org" , Sebastian Capella , Mark Brown , Antti Miettinen , Paul Walmsley , Geoff Levand , Peter De Schrijver , Stephen Boyd , Amit Kucheria List-Id: devicetree@vger.kernel.org On Wed, Aug 13, 2014 at 04:52:04PM +0100, Lorenzo Pieralisi wrote: > This patch implements the cpu_suspend cpu operations method through > the PSCI CPU SUSPEND API. The PSCI implementation translates the idle state > index passed by the cpu_suspend core call into a valid PSCI state according to > the PSCI states initialized at boot through the cpu_init_idle() CPU > operations hook. > > The PSCI CPU suspend operation hook checks if the PSCI state is a > standby state. If it is, it calls the PSCI suspend implementation > straight away, without saving any context. If the state is a power > down state the kernel calls the __cpu_suspend API (that saves the CPU > context) and passed the PSCI suspend finisher as a parameter so that PSCI > can be called by the __cpu_suspend implementation after saving and flushing > the context as last function before power down. > > For power down states, entry point is set to cpu_resume physical address, > that represents the default kernel execution address following a CPU reset. > > Reviewed-by: Ashwin Chaugule > Signed-off-by: Lorenzo Pieralisi > --- > arch/arm64/kernel/psci.c | 100 +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 100 insertions(+) Reviewed-by: Catalin Marinas From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Mon, 18 Aug 2014 15:21:13 +0100 Subject: [PATCH v7 5/8] arm64: add PSCI CPU_SUSPEND based cpu_suspend support In-Reply-To: <1407945127-27554-6-git-send-email-lorenzo.pieralisi@arm.com> References: <1407945127-27554-1-git-send-email-lorenzo.pieralisi@arm.com> <1407945127-27554-6-git-send-email-lorenzo.pieralisi@arm.com> Message-ID: <20140818142113.GF20043@localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Aug 13, 2014 at 04:52:04PM +0100, Lorenzo Pieralisi wrote: > This patch implements the cpu_suspend cpu operations method through > the PSCI CPU SUSPEND API. The PSCI implementation translates the idle state > index passed by the cpu_suspend core call into a valid PSCI state according to > the PSCI states initialized at boot through the cpu_init_idle() CPU > operations hook. > > The PSCI CPU suspend operation hook checks if the PSCI state is a > standby state. If it is, it calls the PSCI suspend implementation > straight away, without saving any context. If the state is a power > down state the kernel calls the __cpu_suspend API (that saves the CPU > context) and passed the PSCI suspend finisher as a parameter so that PSCI > can be called by the __cpu_suspend implementation after saving and flushing > the context as last function before power down. > > For power down states, entry point is set to cpu_resume physical address, > that represents the default kernel execution address following a CPU reset. > > Reviewed-by: Ashwin Chaugule > Signed-off-by: Lorenzo Pieralisi > --- > arch/arm64/kernel/psci.c | 100 +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 100 insertions(+) Reviewed-by: Catalin Marinas