From: Sebastian Capella <sebastian.capella@linaro.org> To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: "Konstantin Khlebnikov" <k.khlebnikov@samsung.com>, "Catalin Marinas" <catalin.marinas@arm.com>, "Will Deacon" <will.deacon@arm.com>, "Sricharan R" <r.sricharan@ti.com>, "Pavel Machek" <pavel@ucw.cz>, "Steven Capper" <steve.capper@linaro.org>, "Lorenzo Pieralisi" <lorenzo.pieralisi@arm.com>, "Stephen Warren" <swarren@nvidia.com>, "Nicolas Pitre" <nico@linaro.org>, "Stefano Stabellini" <stefano.stabellini@eu.citrix.com>, "Ben Dooks" <ben.dooks@codethink.co.uk>, "Russ Dill" <Russ.Dill@ti.com>, "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>, "Stephen Boyd" <sboyd@codeaurora.org>, "Jiang Liu" <liuj97@gmail.com>, "Len Brown" <len.brown@intel.com>, "Laura Abbott" <lauraa@codeaurora.org>, "Victor Kamensky" <victor.kamensky@linaro.org>, "Russell King" <linux@arm.linux.org.uk>, "Thomas Gleixner" <tglx@linutronix.de>, "Jonathan Austin" <jonathan.austin@arm.com>, "Rafael J. Wysocki" <rjw@rjwysocki.> Subject: [PATCH v9 0/2] hibernation support on ARM Date: Tue, 18 Mar 2014 14:40:56 -0700 [thread overview] Message-ID: <1395178858-27343-1-git-send-email-sebastian.capella@linaro.org> (raw) Cc: Russ Dill <Russ.Dill@ti.com> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Russell King <linux@arm.linux.org.uk> Cc: Pavel Machek <pavel@ucw.cz> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: Len Brown <len.brown@intel.com> Cc: Nicolas Pitre <nico@linaro.org> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Jonathan Austin <jonathan.austin@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Laura Abbott <lauraa@codeaurora.org> Cc: Jiang Liu <liuj97@gmail.com> Cc: Sricharan R <r.sricharan@ti.com> Cc: Victor Kamensky <victor.kamensky@linaro.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ben Dooks <ben.dooks@codethink.co.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Robin Holt <robin.m.holt@gmail.com> Cc: Konstantin Khlebnikov <k.khlebnikov@samsung.com> Cc: Steven Capper <steve.capper@linaro.org> Cc: Tejun Heo <tj@kernel.org> Patches adding support for hibernation on ARM - ARM hibernation / suspend-to-disk - Change soft_restart to use non-tracing raw_local_irq_disable Patches based on v3.14-rc7 tag, verified hibernation on beaglebone black on a branch based on 3.13 merged with initial omap support from Russ Dill which can be found here (includes v1 patchset): http://git.linaro.org/git-ro/people/sebastian.capella/linux.git hibernation_3.13_russMerge [PATCH v9 1/2] ARM: avoid tracers in soft_restart arch/arm/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Use raw_local_irq_disable in place of local_irq_disable to avoid infinite abort recursion while tracing. (unchanged since v3) [PATCH v9 2/2] ARM hibernation / suspend-to-disk arch/arm/Kconfig | 5 ++ arch/arm/include/asm/memory.h | 1 + arch/arm/kernel/Makefile | 1 + arch/arm/kernel/hibernate.c | 107 +++++++++++++++++++++++++++++++++++++++++ include/linux/suspend.h | 2 + 5 files changed, 116 insertions(+) Adds support for ARM based hibernation Additional notes: ----------------- There are two checkpatch warnings added by this patch. These follow behavior in existing hibernation implementations on other platforms. WARNING: externs should be avoided in .c files #131: FILE: arch/arm/kernel/hibernate.c:25: +extern const void __nosave_begin, __nosave_end; This extern is picking up the linker nosave region definitions, only used in hibernate. Follows same extern line used mips, powerpc, s390, sh, sparc, x86 & unicore32 WARNING: externs should be avoided in .c files #209: FILE: arch/arm/kernel/hibernate.c:103: + extern void call_with_stack(void (*fn)(void *), void *arg, void *sp); This extern is used in the arch/arm/ in hibernate, process and bL_switcher Changes in v9: -------------- * replace pfn calculationwith virt_to_pfn * automatically allow ARCH_HIBERNATION_POSSIBLE if SUSPEND permitted * move handling of ARCH config flag to arch/arm/Kconfig Changes in v8: -------------- * remove definition and use of __pa_symbol Changes in v7: -------------- * remove use of RELOC_HIDE macro * remove unused #includes * fixup comment for arch_restore_image * ensure alignment of resume stack on 8 byte boundary Changes in v6: -------------- * Simplify static variable names Changes in v5: -------------- * Fixed checkpatch warning on trailing whitespace Changes in v4: -------------- * updated comment for soft_restart with review feedback * dropped freeze_processes patch which was queued separately to 3.14 by Rafael Wysocki: https://lkml.org/lkml/2014/2/25/683 Changes in v3: -------------- * added comment to use of soft_restart * drop irq disable soft_restart patch * add patch to avoid tracers in soft_restart by using raw_local_irq_* Changes in v2: -------------- * Removed unneeded flush_thread, use of __naked and cpu_init. * dropped Cyril Chemparathy <cyril@ti.com> from Cc: list as emails are bouncing. Thanks, Sebastian Capella _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: sebastian.capella@linaro.org (Sebastian Capella) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v9 0/2] hibernation support on ARM Date: Tue, 18 Mar 2014 14:40:56 -0700 [thread overview] Message-ID: <1395178858-27343-1-git-send-email-sebastian.capella@linaro.org> (raw) Cc: Russ Dill <Russ.Dill@ti.com> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Russell King <linux@arm.linux.org.uk> Cc: Pavel Machek <pavel@ucw.cz> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Stephen Warren <swarren@nvidia.com> Cc: Len Brown <len.brown@intel.com> Cc: Nicolas Pitre <nico@linaro.org> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Jonathan Austin <jonathan.austin@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: "Uwe Kleine-K?nig" <u.kleine-koenig@pengutronix.de> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Laura Abbott <lauraa@codeaurora.org> Cc: Jiang Liu <liuj97@gmail.com> Cc: Sricharan R <r.sricharan@ti.com> Cc: Victor Kamensky <victor.kamensky@linaro.org> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Ben Dooks <ben.dooks@codethink.co.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Robin Holt <robin.m.holt@gmail.com> Cc: Konstantin Khlebnikov <k.khlebnikov@samsung.com> Cc: Steven Capper <steve.capper@linaro.org> Cc: Tejun Heo <tj@kernel.org> Patches adding support for hibernation on ARM - ARM hibernation / suspend-to-disk - Change soft_restart to use non-tracing raw_local_irq_disable Patches based on v3.14-rc7 tag, verified hibernation on beaglebone black on a branch based on 3.13 merged with initial omap support from Russ Dill which can be found here (includes v1 patchset): http://git.linaro.org/git-ro/people/sebastian.capella/linux.git hibernation_3.13_russMerge [PATCH v9 1/2] ARM: avoid tracers in soft_restart arch/arm/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Use raw_local_irq_disable in place of local_irq_disable to avoid infinite abort recursion while tracing. (unchanged since v3) [PATCH v9 2/2] ARM hibernation / suspend-to-disk arch/arm/Kconfig | 5 ++ arch/arm/include/asm/memory.h | 1 + arch/arm/kernel/Makefile | 1 + arch/arm/kernel/hibernate.c | 107 +++++++++++++++++++++++++++++++++++++++++ include/linux/suspend.h | 2 + 5 files changed, 116 insertions(+) Adds support for ARM based hibernation Additional notes: ----------------- There are two checkpatch warnings added by this patch. These follow behavior in existing hibernation implementations on other platforms. WARNING: externs should be avoided in .c files #131: FILE: arch/arm/kernel/hibernate.c:25: +extern const void __nosave_begin, __nosave_end; This extern is picking up the linker nosave region definitions, only used in hibernate. Follows same extern line used mips, powerpc, s390, sh, sparc, x86 & unicore32 WARNING: externs should be avoided in .c files #209: FILE: arch/arm/kernel/hibernate.c:103: + extern void call_with_stack(void (*fn)(void *), void *arg, void *sp); This extern is used in the arch/arm/ in hibernate, process and bL_switcher Changes in v9: -------------- * replace pfn calculationwith virt_to_pfn * automatically allow ARCH_HIBERNATION_POSSIBLE if SUSPEND permitted * move handling of ARCH config flag to arch/arm/Kconfig Changes in v8: -------------- * remove definition and use of __pa_symbol Changes in v7: -------------- * remove use of RELOC_HIDE macro * remove unused #includes * fixup comment for arch_restore_image * ensure alignment of resume stack on 8 byte boundary Changes in v6: -------------- * Simplify static variable names Changes in v5: -------------- * Fixed checkpatch warning on trailing whitespace Changes in v4: -------------- * updated comment for soft_restart with review feedback * dropped freeze_processes patch which was queued separately to 3.14 by Rafael Wysocki: https://lkml.org/lkml/2014/2/25/683 Changes in v3: -------------- * added comment to use of soft_restart * drop irq disable soft_restart patch * add patch to avoid tracers in soft_restart by using raw_local_irq_* Changes in v2: -------------- * Removed unneeded flush_thread, use of __naked and cpu_init. * dropped Cyril Chemparathy <cyril@ti.com> from Cc: list as emails are bouncing. Thanks, Sebastian Capella
next reply other threads:[~2014-03-18 21:40 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-03-18 21:40 Sebastian Capella [this message] 2014-03-18 21:40 ` [PATCH v9 0/2] hibernation support on ARM Sebastian Capella 2014-03-18 21:40 ` [PATCH v9 1/2] ARM: avoid tracers in soft_restart Sebastian Capella 2014-03-18 21:40 ` Sebastian Capella 2014-04-14 10:53 ` Will Deacon 2014-04-14 10:53 ` Will Deacon 2014-04-14 10:53 ` Will Deacon 2014-04-14 22:37 ` Sebastian Capella 2014-04-14 22:37 ` Sebastian Capella 2014-04-14 22:37 ` Sebastian Capella 2014-03-18 21:40 ` [PATCH v9 2/2] ARM hibernation / suspend-to-disk Sebastian Capella 2014-03-18 21:40 ` Sebastian Capella
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=1395178858-27343-1-git-send-email-sebastian.capella@linaro.org \ --to=sebastian.capella@linaro.org \ --cc=Russ.Dill@ti.com \ --cc=ben.dooks@codethink.co.uk \ --cc=catalin.marinas@arm.com \ --cc=jonathan.austin@arm.com \ --cc=k.khlebnikov@samsung.com \ --cc=lauraa@codeaurora.org \ --cc=len.brown@intel.com \ --cc=linaro-kernel@lists.linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-pm@vger.kernel.org \ --cc=linux@arm.linux.org.uk \ --cc=liuj97@gmail.com \ --cc=lorenzo.pieralisi@arm.com \ --cc=nico@linaro.org \ --cc=pavel@ucw.cz \ --cc=r.sricharan@ti.com \ --cc=rjw@rjwysocki. \ --cc=sboyd@codeaurora.org \ --cc=stefano.stabellini@eu.citrix.com \ --cc=steve.capper@linaro.org \ --cc=swarren@nvidia.com \ --cc=tglx@linutronix.de \ --cc=u.kleine-koenig@pengutronix.de \ --cc=victor.kamensky@linaro.org \ --cc=will.deacon@arm.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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.