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 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 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,

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

2014-03-04 Thread Lorenzo Pieralisi
On Tue, Mar 04, 2014 at 09:55:31AM +, Sebastian Capella wrote: > 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

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

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 Lorenzo Pieralisi
On Tue, Mar 04, 2014 at 09:55:31AM +, Sebastian Capella wrote: 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

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

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

2014-02-28 Thread Lorenzo Pieralisi
On Fri, Feb 28, 2014 at 08:15:57PM +, Sebastian Capella wrote: [...] > > > + > > > +/* > > > + * The framework loads the hibernation image into a linked list anchored > > > + * at restore_pblist, for swsusp_arch_resume() to copy back to the proper > > > + * destinations. > > > + * > > > + *

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

2014-02-28 Thread Russell King - ARM Linux
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 wrote: > >>> diff --git a/arch/arm/include/asm/memory.h > >>> b/arch/arm/include/asm/memory.h index

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

2014-02-28 Thread Lorenzo Pieralisi
On Thu, Feb 27, 2014 at 11:57:58PM +, Sebastian Capella wrote: [...] > diff --git a/arch/arm/kernel/hibernate.c b/arch/arm/kernel/hibernate.c > new file mode 100644 > index 000..a41e0e3 > --- /dev/null > +++ b/arch/arm/kernel/hibernate.c > @@ -0,0 +1,113 @@ > +/* > + * Hibernation

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

2014-02-28 Thread Lorenzo Pieralisi
On Thu, Feb 27, 2014 at 11:57:58PM +, Sebastian Capella wrote: [...] diff --git a/arch/arm/kernel/hibernate.c b/arch/arm/kernel/hibernate.c new file mode 100644 index 000..a41e0e3 --- /dev/null +++ b/arch/arm/kernel/hibernate.c @@ -0,0 +1,113 @@ +/* + * Hibernation support

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

2014-02-28 Thread Russell King - ARM Linux
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 wrote: diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 8756e4b..1079ea8

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

2014-02-28 Thread Lorenzo Pieralisi
On Fri, Feb 28, 2014 at 08:15:57PM +, Sebastian Capella wrote: [...] + +/* + * The framework loads the hibernation image into a linked list anchored + * at restore_pblist, for swsusp_arch_resume() to copy back to the proper + * destinations. + * + * To make this work if

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

2014-02-27 Thread Stephen Boyd
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 wrote: >>> diff --git a/arch/arm/include/asm/memory.h >>> b/arch/arm/include/asm/memory.h index 8756e4b..1079ea8 100644 --- >>> a/arch/arm/include/asm/memory.h +++ >>>

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

2014-02-27 Thread Russ Dill
On 02/27/2014 04:09 PM, Stephen Boyd wrote: > On 02/27/14 15:57, Sebastian Capella wrote: >> diff --git a/arch/arm/include/asm/memory.h >> b/arch/arm/include/asm/memory.h index 8756e4b..1079ea8 100644 --- >> a/arch/arm/include/asm/memory.h +++ >> b/arch/arm/include/asm/memory.h @@ -291,6 +291,7 @@

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

2014-02-27 Thread Stephen Boyd
On 02/27/14 15:57, Sebastian Capella wrote: > diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h > index 8756e4b..1079ea8 100644 > --- a/arch/arm/include/asm/memory.h > +++ b/arch/arm/include/asm/memory.h > @@ -291,6 +291,7 @@ static inline void *phys_to_virt(phys_addr_t x)

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

2014-02-27 Thread Sebastian Capella
From: Russ Dill Enable hibernation for ARM architectures and provide ARM architecture specific calls used during hibernation. The swsusp hibernation framework depends on the platform first having functional suspend/resume. Then, in order to enable hibernation on a given platform, a

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

2014-02-27 Thread Sebastian Capella
From: Russ Dill russ.d...@ti.com Enable hibernation for ARM architectures and provide ARM architecture specific calls used during hibernation. The swsusp hibernation framework depends on the platform first having functional suspend/resume. Then, in order to enable hibernation on a given

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

2014-02-27 Thread Stephen Boyd
On 02/27/14 15:57, Sebastian Capella wrote: diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 8756e4b..1079ea8 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -291,6 +291,7 @@ static inline void *phys_to_virt(phys_addr_t x)

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

2014-02-27 Thread Russ Dill
On 02/27/2014 04:09 PM, Stephen Boyd wrote: On 02/27/14 15:57, Sebastian Capella wrote: diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 8756e4b..1079ea8 100644 --- a/arch/arm/include/asm/memory.h +++ b/arch/arm/include/asm/memory.h @@ -291,6 +291,7 @@ static

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

2014-02-27 Thread Stephen Boyd
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 wrote: diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 8756e4b..1079ea8 100644 --- a/arch/arm/include/asm/memory.h +++