Re: [PATCH v6 2/2] ARM hibernation / suspend-to-disk

2014-06-02 Thread Sebastian Capella
Want to log my new email with this thread in case any questions arise later and people have trouble finding me. sebc...@gmail.com Thanks! Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-05-07 Thread Sebastian Capella
Thanks Pavel! I believe it's missed 3.15, so will need to verify again for 3.16. Sebastian -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-04-23 Thread Sebastian Capella
Hi Russell, Ran this overnight and no failures on 1000 hibernations. Looks good. Thanks! Sebastian -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: linux-next: build warning after merge of the arm tree

2014-04-23 Thread Sebastian Capella
Hi Stephen, Russell, Verified, thanks! Please let me know if anything is needed from me for this. Thanks! Sebastian -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-04-22 Thread Sebastian Capella
Hi Russell, Sorry for the delay. I've merged the omap changes onto 3.15-rc2 and tested and it looks like everything is working (so far 50 loops into/out of hibernation). Thanks! Sebastian -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

[PATCH v2] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-21 Thread Sebastian Capella
hibernation on Kirkwood Openblocks A6 board. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Reported-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Rafael J. Wysocki r...@rjwysocki.net Cc: Russell King li

Re: linux-next: build warning after merge of the arm tree

2014-04-21 Thread Sebastian Capella
Hi Stephen, I'm not sure if this is helpful, but the virt_to_pfn macro added in arch/arm/include/asm/memory.h:300 (I assume the 297 warning in yours), in the hibernation patch: #define virt_to_pfn(kaddr) (__pa(kaddr) PAGE_SHIFT) Should be removed as there is an improved version of

Re: [PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-18 Thread Sebastian Capella
Thanks Russell, Alan! So we're OK with the current patch + replacing while(1) after kernel_halt at the end of power_down in hibernate.c with a while (1) cpu_relax()? Any other changes needed? If not, I'll send a follow up patch with just these. Thanks! Sebastian -- To unsubscribe from this

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-04-17 Thread Sebastian Capella
Hi Russell, It seems to work fine with your virt_to_phys on the 3.13 + OMAP patches kernel, and I checked on the 3.15-rc1 kernel + hibernation and it compiled and ran fine. I tried a couple of hibernations on this version as well and they worked (aside from the crash in kernel_halt we're

Re: [PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-16 Thread Sebastian Capella
On 15 April 2014 14:18, Pavel Machek pa...@ucw.cz wrote: On Tue 2014-04-15 21:54:53, Russell King - ARM Linux wrote: What I'm basically saying is that I see no reason for ARM to do something different to what x86 does. What is pretty clear to me is that ARM is compatible with x86, which is

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-04-16 Thread Sebastian Capella
On 16 April 2014 03:12, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Wed, Mar 05, 2014 at 02:50:05AM -0800, Sebastian Capella wrote: diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 8756e4b..d32adbb 100644 --- a/arch/arm/include/asm/memory.h +++ b

Re: [PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-15 Thread Sebastian Capella
Ping.. There appears to be disagreement on the correct path to take on this. Pavel and Alan recommend that arm's machine_power_off shall never return Russell suggests hibernation be modified to handle machine_power_off returning; that x86 architecture (and others as well) can have

Re: [PATCH v9 1/2] ARM: avoid tracers in soft_restart

2014-04-14 Thread Sebastian Capella
Hi Will, On 14 April 2014 03:53, Will Deacon will.dea...@arm.com wrote: On Tue, Mar 18, 2014 at 09:40:57PM +, Sebastian Capella wrote: Use of tracers in local_irq_disable is causes abort loops when called with irqs disabled using a temporary stack. Replace local_irq_disable

Re: [PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-03-26 Thread Sebastian Capella
On 20 March 2014 14:35, One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: if (pm_power_off) pm_power_off(); ## It really should do while (1) here. while(1) cpu_relax(); or similar at minimum. Hi Alan, Pavel, I prepared the changes

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-25 Thread Sebastian Capella
Hi Alexander, Thanks for your comments. I've posted a different solution for arm only here, that just causes a while loop in machine_power_off in the event it's called but does not halt. https://lkml.org/lkml/2014/3/24/299 On 25 March 2014 11:38, Alexander Holler hol...@ahsoftware.de wrote:

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-24 Thread Sebastian Capella
Hi, I have no further changes here.. I will submit a separate patch to cover Ezequiel's concern. Any final comments? Otherwise, I'll submit to Russell's system. Thanks for the review! Sebastian -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH] ARM: machine_power_off should not return

2014-03-24 Thread Sebastian Capella
Add loop to prevent return from machine_power_off if pm_power_off is null or does not halt the system. This caused a panic during hibernation testing on Kirkwood Openblocks A6 board. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Reported-by: Ezequiel Garcia ezequiel.gar...@free

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-20 Thread Sebastian Capella
Hi Tony, I have not used the tux-on-ice solution. The patchset I've sent is to add initial support for swsusp based hibernation for ARM. Can you please begin a new, separate thread for this? Ie. separate from the review for the swsusp hibernation patches I've submitted? I'm not sure where the

[PATCH RFC 0/1] PM / Hibernate: no kernel_power_off when pm_power_off

2014-03-20 Thread Sebastian Capella
Patch to avoid calling kernel_power_off when pm_power_off is null. When pm_power_off is null, the platform will not power off in kernel_power_off. Currently, hibernate will call kernel_power_off and then move on to kernel_halt. However, this calls the notifier chain twice with a different

[PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-03-20 Thread Sebastian Capella
hibernation on Kirkwood Openblocks A6 board. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Reported-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Rafael J. Wysocki r...@rjwysocki.net --- kernel/power

Re: [PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-03-20 Thread Sebastian Capella
Thanks Pavel and Alan for your comments! I'll rework and try again. Sebastian On 20 March 2014 14:35, One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: if (pm_power_off) pm_power_off(); } ## It really should do while (1) here. while(1)

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-19 Thread Sebastian Capella
On 19 March 2014 08:44, Ezequiel Garcia ezequiel.gar...@free-electrons.com wrote: Tested-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com Thanks! On the other side, this board has no pm_power_off() support, which means kernel_halt() is called after kernel_power_off(). I'm not sure if a

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-19 Thread Sebastian Capella
On 19 March 2014 13:47, Sebastian Capella sebastian.cape...@linaro.org wrote: diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c index a5f702a..d96b910 100644 --- a/kernel/power/hibernate.c +++ b/kernel/power/hibernate.c @@ -594,7 +594,8 @@ static void power_down(void

Re: [PATCH v7 1/2] ARM: avoid tracers in soft_restart

2014-03-19 Thread Sebastian Capella
On 6 March 2014 15:45, Sebastian Capella sebastian.cape...@linaro.org wrote: Quoting Sebastian Capella (2014-03-05 02:50:04) Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable

[PATCH v9 2/2] ARM hibernation / suspend-to-disk

2014-03-18 Thread Sebastian Capella
Cc: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Nicolas Pitre n

[PATCH v9 1/2] ARM: avoid tracers in soft_restart

2014-03-18 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes abort loops when called with irqs disabled using a temporary stack. Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li...@arm.linux.org.uk

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-17 Thread Sebastian Capella
On 16 March 2014 00:09, Ezequiel Garcia ezequiel.gar...@free-electrons.com wrote: On Mar 05, Sebastian Capella wrote: [..] diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 1f8fed9..83707702 100644 --- a/arch/arm/mm/Kconfig +++ b/arch/arm/mm/Kconfig @@ -611,6 +611,11 @@ config

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-17 Thread Sebastian Capella
Thanks Russell! On 16 March 2014 02:46, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Mon, Mar 10, 2014 at 11:32:17AM -0700, Sebastian Capella wrote: ... Let's look at the implementations... #define __pa(x) __virt_to_phys((unsigned long)(x)) static inline

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-17 Thread Sebastian Capella
On 17 March 2014 13:44, Ezequiel Garcia ezequiel.gar...@free-electrons.com wrote: On Mar 17, Sebastian Capella wrote: On 16 March 2014 00:09, Ezequiel Garcia ezequiel.gar...@free-electrons.com wrote: On Mar 05, Sebastian Capella wrote: [..] diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm

[PATCH v8 0/2] hibernation support on ARM

2014-03-11 Thread Sebastian Capella
Chemparathy cy...@ti.com from Cc: list as emails are bouncing. Thanks, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ

[PATCH v8 2/2] ARM hibernation / suspend-to-disk

2014-03-11 Thread Sebastian Capella
Cc: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Nicolas Pitre n

[PATCH v8 1/2] ARM: avoid tracers in soft_restart

2014-03-11 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-10 Thread Sebastian Capella
On 6 March 2014 20:42, Stephen Boyd sb...@codeaurora.org wrote: On 03/05, Sebastian Capella wrote: diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 8756e4b..d32adbb 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -291,6 +291,7

Re: [PATCH v7 1/2] ARM: avoid tracers in soft_restart

2014-03-06 Thread Sebastian Capella
Quoting Sebastian Capella (2014-03-05 02:50:04) Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian

Re: [PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-06 Thread Sebastian Capella
Sorry to those receiving repeated emails, I'm having an issue with some of the special characters names. Quoting Sebastian Capella (2014-03-05 02:50:05) From: Russ Dill russ.d...@ti.com Enable hibernation for ARM architectures and provide ARM architecture specific calls used during hibernation

[PATCH v7 1/2] ARM: avoid tracers in soft_restart

2014-03-05 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li

[PATCH v7 0/2] hibernation support on ARM

2014-03-05 Thread Sebastian Capella
as emails are bouncing. Thanks, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v7 2/2] ARM hibernation / suspend-to-disk

2014-03-05 Thread Sebastian Capella
Cc: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Pavel Machek pa...@ucw.cz Reviewed-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Nicolas Pitre n

Re: [PATCH v6 2/2] ARM hibernation / suspend-to-disk

2014-03-04 Thread Sebastian Capella
Quoting Sebastian Capella (2014-02-28 15:38:54) Quoting Lorenzo Pieralisi (2014-02-28 14:49:33) On Fri, Feb 28, 2014 at 08:15:57PM +, Sebastian Capella wrote: This does not guarantee your stack is 8-byte aligned, that's not AAPCS compliant and might buy you trouble

Re: [PATCH v6 2/2] ARM hibernation / suspend-to-disk

2014-03-04 Thread Sebastian Capella
Quoting Sebastian Capella (2014-02-28 10:17:31) Quoting Russell King - ARM Linux (2014-02-28 02:20:18) On Thu, Feb 27, 2014 at 06:19:49PM -0800, Stephen Boyd wrote: On 02/27/14 17:47, Russ Dill wrote: On 02/27/2014 04:09 PM, Stephen Boyd wrote: On 02/27/14 15:57, Sebastian Capella

[PATCH v6 1/2] ARM: avoid tracers in soft_restart

2014-02-27 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li

[PATCH v6 0/2] hibernation support on ARM

2014-02-27 Thread Sebastian Capella
: -- * Removed unneeded flush_thread, use of __naked and cpu_init. * dropped Cyril Chemparathy cy...@ti.com from Cc: list as emails are bouncing. Thanks, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH v6 2/2] ARM hibernation / suspend-to-disk

2014-02-27 Thread Sebastian Capella
Cc: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Pavel Machek pa...@ucw.cz Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Nicolas Pitre n...@linaro.org Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc

[PATCH v4 0/2] hibernation support on ARM

2014-02-26 Thread Sebastian Capella
, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v4 0/2] hibernation support on ARM

2014-02-26 Thread Sebastian Capella
, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v4 1/2] ARM: avoid tracers in soft_restart

2014-02-26 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li

[PATCH v4 2/2] ARM hibernation / suspend-to-disk

2014-02-26 Thread Sebastian Capella
: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Nicolas Pitre n...@linaro.org Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc: Will Deacon

[PATCH v5 0/2] hibernation support on ARM

2014-02-26 Thread Sebastian Capella
Chemparathy cy...@ti.com from Cc: list as emails are bouncing. Thanks, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

[PATCH v5 1/2] ARM: avoid tracers in soft_restart

2014-02-26 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li

[PATCH v5 2/2] ARM hibernation / suspend-to-disk

2014-02-26 Thread Sebastian Capella
Cc: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Nicolas Pitre n...@linaro.org Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc

Re: [PATCH RFC v1 1/3] ARM: Add irq disabled version of soft_restart.

2014-02-25 Thread Sebastian Capella
Quoting Russ Dill (2014-02-25 09:15:33) On 02/25/2014 02:27 AM, Thomas Gleixner wrote: If you want escape the tracer and in that case you really want it being on a different stack, use raw_local_irq_* which are not traced. So it might make sense to change soft_restart to use the

[PATCH v3 2/3] ARM: avoid tracers in soft_restart

2014-02-25 Thread Sebastian Capella
Use of tracers in local_irq_disable is causes abort loops when called with irqs disabled using a temporary stack. Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li...@arm.linux.org.uk

[PATCH v3 3/3] ARM hibernation / suspend-to-disk

2014-02-25 Thread Sebastian Capella
: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Nicolas Pitre n...@linaro.org Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc: Will Deacon

[PATCH v3 0/3] hibernation support on ARM

2014-02-25 Thread Sebastian Capella
are bouncing. Thanks, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v3 1/3] Fix hibernation restore hang in freeze_processes

2014-02-25 Thread Sebastian Capella
lock on this semaphore and hangs waiting. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Ming Lei ming@canonical.com Cc: Russ Dill russ.d...@ti.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/base/firmware_class.c |1 + 1 file changed, 1 insertion

[PATCH v2 0/3] hibernation support on ARM

2014-02-24 Thread Sebastian Capella
Patches adding support for hibernation on ARM - ARM hibernation / suspend-to-disk - Fix hang in freeze_processes during hibernation - add an irq disabled version of soft_restart Patches based on v3.13 tag, verified hibernation on beaglebone black on a branch based on 3.13 merged with

[PATCH v2 3/3] ARM hibernation / suspend-to-disk

2014-02-24 Thread Sebastian Capella
: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Nicolas Pitre n...@linaro.org Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc: Will Deacon

[PATCH v2 2/3] Fix hibernation restore hang in freeze_processes

2014-02-24 Thread Sebastian Capella
lock on this semaphore and hangs waiting. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Ming Lei ming@canonical.com Cc: Russ Dill russ.d...@ti.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/base/firmware_class.c |1 + 1 file changed, 1 insertion

[PATCH v2 1/3] ARM: Add irq disabled version of soft_restart.

2014-02-24 Thread Sebastian Capella
From: Russ Dill russ.d...@ti.com This adds the ability to run soft_restart with local_irq/fiq_disable already called. This is helpful for the hibernation code paths. Signed-off-by: Russ Dill russ.d...@ti.com Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li

Re: [PATCH RFC v1 3/3] ARM hibernation / suspend-to-disk

2014-02-23 Thread Sebastian Capella
Quoting Lorenzo Pieralisi (2014-02-22 04:09:10) On Sat, Feb 22, 2014 at 10:38:40AM +, Russell King - ARM Linux wrote: On Wed, Feb 19, 2014 at 04:12:54PM +, Lorenzo Pieralisi wrote: + cpu_switch_mm(idmap_pgd, init_mm); You need the idmap_pgd in place to call cpu_resume at it's

Re: [PATCH RFC v1 3/3] ARM hibernation / suspend-to-disk

2014-02-23 Thread Sebastian Capella
Quoting Lorenzo Pieralisi (2014-02-22 04:09:10) On Sat, Feb 22, 2014 at 10:38:40AM +, Russell King - ARM Linux wrote: On Wed, Feb 19, 2014 at 04:12:54PM +, Lorenzo Pieralisi wrote: On Wed, Feb 19, 2014 at 01:52:09AM +, Sebastian Capella wrote: +/* + * Snapshot kernel

Re: [v2] backlight: Convert from Legacy pm ops to dev_pm_ops

2014-02-18 Thread sebastian . capella
Shuah Khan shuah...@samsung.com wrote: Convert drivers/video/backlight/class to use dev_pm_ops for power management and remove Legacy PM ops hooks. With this change, rtc class registers suspend/resume callbacks via class-pm (dev_pm_ops) instead of Legacy class-suspend/resume. When

[PATCH RFC v1 1/3] ARM: Add irq disabled version of soft_restart.

2014-02-18 Thread Sebastian Capella
From: Russ Dill russ.d...@ti.com This adds the ability to run soft_restart with local_irq/fiq_disable already called. This is helpful for the hibernation code paths. Signed-off-by: Russ Dill russ.d...@ti.com Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li

[PATCH RFC v1 0/3] hibernation support on ARM

2014-02-18 Thread Sebastian Capella
Patches adding support for hibernation on ARM - ARM hibernation / suspend-to-disk - Fix hang in freeze_processes during hibernation - add an irq disabled version of soft_restart Patches based on v3.13 tag, verified hibernation on beaglebone black on a branch based on 3.13 merged with

[PATCH RFC v1 3/3] ARM hibernation / suspend-to-disk

2014-02-18 Thread Sebastian Capella
: Rafael J. Wysocki r...@rjwysocki.net Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russell King li...@arm.linux.org.uk Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Nicolas Pitre n...@linaro.org Cc: Santosh Shilimkar santosh.shilim...@ti.com Cc: Will Deacon

[PATCH RFC v1 2/3] Fix hibernation restore hang in freeze_processes

2014-02-18 Thread Sebastian Capella
lock on this semaphore and hangs waiting. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Russ Dill russ.d...@ti.com Cc: Ming Lei ming@canonical.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org --- drivers/base/firmware_class.c |1 + 1 file changed, 1 insertion

[PATCH v9 0/1] hibernation related patches

2014-02-14 Thread Sebastian Capella
Patchset related to hibernation resume: - enhancement to make the use of an existing resume file more general Patch is based on the 3.13 tag. This was tested on a Beaglebone black with partial hibernation support, also compiled for x86_64. [PATCH v9 1/1] PM / Hibernate: use name_to_dev_t

[PATCH v9] PM / Hibernate: use name_to_dev_t to parse resume

2014-02-14 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Rafael J. Wysocki

[PATCH v9] PM / Hibernate: use name_to_dev_t to parse resume

2014-02-14 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Rafael J. Wysocki

[PATCH v9 0/1] hibernation related patches

2014-02-14 Thread Sebastian Capella
Patchset related to hibernation resume: - enhancement to make the use of an existing resume file more general Patch is based on the 3.13 tag. This was tested on a Beaglebone black with partial hibernation support, also compiled for x86_64. [PATCH v9 1/1] PM / Hibernate: use name_to_dev_t

[PATCH v7 2/3] trivial: PM / Hibernate: clean up checkpatch in hibernate.c

2014-02-04 Thread Sebastian Capella
Checkpatch reports several warnings in hibernate.c printk use removed, long lines wrapped, whitespace cleanup, extend short msleeps, while loops on two lines. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Pavel Machek pa...@ucw.cz Cc: Len Brown len.br...@intel.com Cc: Rafael J

[PATCH v7 3/3] PM / Hibernate: use name_to_dev_t to parse resume

2014-02-04 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Pavel Machek pa...@ucw.cz Cc: Len Brown len.br...@intel.com Cc: Rafael J. Wysocki

[PATCH v7 1/3] mm: add kstrdup_trimnl function

2014-02-04 Thread Sebastian Capella
kstrdup_trimnl creates a duplicate of the passed in null-terminated string. If a trailing newline is found, it is removed before duplicating. This is useful for strings coming from sysfs that often include trailing whitespace due to user input. Signed-off-by: Sebastian Capella sebastian.cape

[PATCH v7 0/3] hibernation related patches

2014-02-04 Thread Sebastian Capella
Patchset related to hibernation resume: - enhancement to make the use of an existing resume file more general - add kstrdup_trimnl function which duplicates and trims a single trailing newline off of a string - cleanup checkpatch warnings in hibernate.c file All patches are based on

Re: + mm-utilc-add-kstrimdup.patch added to -mm tree

2014-02-03 Thread Sebastian Capella
Quoting David Rientjes (2014-02-03 17:05:04) The last we heard, I think Sebastian is looking to redo this series and this patch is no longer needed. Sebastian? Hi David, Alexey, I am in the process of reworking the patches. I'm not sure if Andrew was just interested in having the kstrimdup

Re: [PATCH v4 1/2] mm: add kstrimdup function

2014-01-31 Thread Sebastian Capella
Quoting Pavel Machek (2014-01-31 04:24:21) Well, your /sys/power/resume patch would be nice cleanup, but it changs behaviour, too... which is unnice. Stripping trailing \n is probably neccessary, because we did it before. (It probably was a mistake). But kernel is not right place to

[PATCH v5 1/2] mm: add kstrimdup function

2014-01-30 Thread Sebastian Capella
kstrimdup will duplicate and trim spaces from the passed in null terminated string. This is useful for strings coming from sysfs that often include trailing whitespace due to user input. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Andrew Morton a...@linux-foundation.org Cc

[no subject]

2014-01-30 Thread Sebastian Capella
Patchset related to hibernation resume: - enhancement to make the use of an existing resume file more general - add kstrimdup function which trims and duplicates a string Both patches are based on the 3.13 tag. This was tested on a Beaglebone black with partial hibernation support, and

[PATCH v5 2/2] PM / Hibernate: use name_to_dev_t to parse resume

2014-01-30 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Pavel Machek pa...@ucw.cz Cc: Len Brown len.br...@intel.com Cc: Rafael J

[PATCH v6 0/2] hibernation related patches

2014-01-30 Thread Sebastian Capella
Patchset related to hibernation resume: - enhancement to make the use of an existing resume file more general - add kstrimdup function which trims and duplicates a string Both patches are based on the 3.13 tag. This was tested on a Beaglebone black with partial hibernation support, and

[PATCH v6 2/2] PM / Hibernate: use name_to_dev_t to parse resume

2014-01-30 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Pavel Machek pa...@ucw.cz Cc: Len Brown len.br...@intel.com Cc: Rafael J

[PATCH v6 1/2] mm: add kstrimdup function

2014-01-30 Thread Sebastian Capella
kstrimdup creates a whitespace-trimmed duplicate of the passed in null-terminated string. This is useful for strings coming from sysfs that often include trailing whitespace due to user input. Thanks to Joe Perches for this implementation. Signed-off-by: Sebastian Capella sebastian.cape

[PATCH v4 1/2] mm: add kstrimdup function

2014-01-29 Thread Sebastian Capella
kstrimdup will duplicate and trim spaces from the passed in null terminated string. This is useful for strings coming from sysfs that often include trailing whitespace due to user input. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Andrew Morton a...@linux-foundation.org Cc

[PATCH v4 0/2] PM / Hibernate: sysfs resume

2014-01-29 Thread Sebastian Capella
Patchset related to hibernation resume: - enhancement to make the use of an existing resume file more general - add kstrimdup function which trims and duplicates a string Both patches are based on the 3.13 tag. This was tested on a Beaglebone black with partial hibernation support, and

[PATCH v4 2/2] PM / Hibernate: use name_to_dev_t to parse resume

2014-01-29 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Pavel Machek pa...@ucw.cz Cc: Len Brown len.br...@intel.com Cc: Rafael J. Wysocki

Re: [PATCH v4 1/2] mm: add kstrimdup function

2014-01-29 Thread Sebastian Capella
Quoting Joe Perches (2014-01-29 17:24:28) Why not minimize the malloc length too? maybe something like: char *kstrimdup(const char *s, gfp_t gfp) { char *buf; const char *begin = skip_spaces(s); size_t len = strlen(begin); while (len isspace(begin[len

Re: [PATCH 4/4] PM / devfreq: Consider hibernation in pm notifier

2013-11-19 Thread Sebastian Capella
support to ARM-only drivers.. FYI, we at Linaro and a few others have been working on adding hibernation support for ARM. I have not coordinated with Jonghwan however. Apoligies for the earlier toppost. Thanks, Sebastian Capella -- To unsubscribe from this list: send the line unsubscribe linux

[PATCH v3 1/2] init/do_mounts.c: ignore final \n in name_to_dev_t

2013-10-03 Thread Sebastian Capella
. By handling trailing newlines in name_to_dev_t, userspace buffers may be directly passed to name_to_dev_t without modification. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Reviewed-by: Pavel Machek pa...@ucw.cz Cc: Eric W. Biederman ebied...@xmission.com Cc: Serge Hallyn serge.hal

[PATCH v3 2/2] PM / Hibernate: use name_to_dev_t to parse resume

2013-10-03 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Acked-by: Pavel Machek pa...@ucw.cz Cc: Len Brown len.br...@intel.com Cc: Rafael J

[PATCH v3 0/2] PM / Hibernate: sysfs resume

2013-10-03 Thread Sebastian Capella
Patchsets related to hibernation resume: - enhancement to make the use of an existing resume file more general - enhance name_to_dev_t to ignore trailing newlines coming from userspace. Both patches are based on the 3.12-rc3 tag. This was tested on a Pandaboard with partial hibernation

[PATCH v3 RFT 0/2] PM / Hibernate: sysfs resume

2013-09-18 Thread Sebastian Capella
Patchset related to hibernation resume: one enhancement to make the use of an existing resume file more general and one enhances name_to_dev_t to ignore the trailing newlines coming from userspace. Both patches are based on the 3.11 tag. This was tested on a Pandaboard with partial hibernation

[PATCH v3 RFT 2/2] PM / Hibernate: use name_to_dev_t to parse resume

2013-09-18 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Rafael J. Wysocki

[PATCH v3 RFT 1/2] init/do_mounts.c: ignore final \n in name_to_dev_t

2013-09-18 Thread Sebastian Capella
. By handling trailing newlines in name_to_dev_t, userspace buffers may be directly passed to name_to_dev_t without modification. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Pavel Machek pa...@ucw.cz Cc: Eric W. Biederman ebied...@xmission.com Cc: Serge Hallyn serge.hal

[PATCH] init/do_mounts.c: add maj:min syntax comment

2013-09-12 Thread Sebastian Capella
The name_to_dev_t function has a comment block which lists the supported syntaxes for the device name. Add a bullet for the major:minor syntax, which is already supported in the code Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Andrew Morton a...@linux-foundation.org Cc

Re: [PATCH] init/do_mounts.c: add maj:min syntax comment

2013-09-12 Thread Sebastian Capella
Quoting Sebastian Capella (2013-09-12 13:54:54) The name_to_dev_t function has a comment block which lists the supported syntaxes for the device name. Add a bullet for the major:minor syntax, which is already supported in the code Signed-off-by: Sebastian Capella sebastian.cape

[PATCH v2 RFT 0/2] PM / Hibernate: sysfs resume

2013-08-27 Thread Sebastian Capella
Patchset related to hibernation resume: one enhancement to make the use of an existing file more general and one documentation update. Both patches are based on the 3.11-rc6 tag. This was tested on a Pandaboard with partial hibernation support, and compiled on x86. Further testing is needed on

[PATCH v2 RFT 2/2] PM / Hibernate: add section for resume options

2013-08-27 Thread Sebastian Capella
Expand the existing documentation to explicitly list the options for resuming a hibernation image, including the manual resume option which can be used from the initrd or initramfs and the kernel init resume. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Rob Landley r

[PATCH v2 RFT 1/2] PM / Hibernate: use name_to_dev_t to parse resume

2013-08-27 Thread Sebastian Capella
syntax as the resume=device parameter, we can parse the resume=device in the init script and use the resume device directly from the kernel command line. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org Cc: Len Brown len.br...@intel.com Cc: Pavel Machek pa...@ucw.cz Cc: Rafael J. Wysocki

[PATCH RFC 0/2] PM / Hibernate: sysfs resume

2013-08-21 Thread Sebastian Capella
Patchset related to hibernation resume: one enhancement to make the use of an existing file more general and one documentation update. Both patches are based on the 3.11-rc6 tag. This was tested on a Pandaboard with partial hibernation support, and compiled on x86. Further testing is needed on

[PATCH RFC 2/2] PM / Hibernate: add section for resume options

2013-08-21 Thread Sebastian Capella
Expand the existing documentation to explicitly list the options for resuming a hibernation image, including the manual resume option which can be used from the initrd or initramfs and the kernel init resume. Signed-off-by: Sebastian Capella sebastian.cape...@linaro.org --- Documentation/power

  1   2   >