My first a-mail:


-----Inoltrato da Luigi Fioretti/Dinema/LonatiGroup il 05/01/2015 08.14AM -----
Per: linaro-kernel@lists.linaro.org
Da: Luigi Fioretti 
Inviato da: linaro-kernel-bounces@lists.linaro.org
Data: 05/01/2015 04.28AM
Oggetto: for TonyHo - about http://lists.linaro.org/pipermail/linaro-kernel/2014-March/012635.html *



Hi,

I read your post : http://lists.linaro.org/pipermail/linaro-kernel/2014-March/012635.html
and I think that the problem is in file arch/arm/kernel/hibernate.c
You need to change in this mode:

/* Used in hibernate_asm.S */
#define USER_CONTEXT_SIZE (15 * sizeof(u32))
unsigned long saved_spsr_svc;
unsigned long saved_context_r14_svc;
unsigned long saved_context_r13_svc;
unsigned long saved_cpsr;
unsigned long saved_context_r0[USER_CONTEXT_SIZE];

static struct saved_context saved_context;

/* References to section boundaries */
extern const void __nosave_begin, __nosave_end;

the sequence is VERY IMPORTAN because in assemble file ( arch/arm/kernel/hibernate_asm.S)
load the R13 and R14 register in sequence.
/*
 * Restore SVC context
 */
ldr     r3, .Lsaved_context_r13_svc
ldmia   r3, {r13-r14}


and the compiler don't work well.

If you change the arch/arm/kernel/hibernate.c the compiler work well.

Now I need one info:
The patch work?
Becasuse I have a problem when i come-back from hibernate e copy all page form .Lrestore_pblist variable (in module hibernate_asm.S)

I don't understand why the cpu stop to work.

Can you help me?

Thanks



Fioretti Luigi
mailto:luigi.fioretti@dinema.it
Skype: Dinema.Fioretti.Luigi
Tel : 00390302300492
Dinema Spa

Via S.Polo 183
25124 Brescia
_______________________________________________
linaro-kernel mailing list
linaro-kernel@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-kernel


Fioretti Luigi
mailto:luigi.fioretti@dinema.it
Skype: Dinema.Fioretti.Luigi
Tel : 00390302300492
Dinema Spa

Via S.Polo 183
25124 Brescia


-----linaro-kernel-bounces@lists.linaro.org ha scritto: -----
Per: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Da: Viresh Kumar
Inviato da: linaro-kernel-bounces@lists.linaro.org
Data: 05/01/2015 05.05AM
Cc: Prarit Bhargava <prarit@redhat.com>, Lists linaro-kernel <linaro-kernel@lists.linaro.org>, Saravana Kannan <skannan@codeaurora.org>, "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Oggetto: Re: [PATCH V2 04/14] cpufreq: stats: pass 'stat' to cpufreq_stats_update() *

On 4 January 2015 at 03:34, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> What about:
>
> "It is better to pass a struct cpufreq_stats pointer to cpufreq_stats_update()
>  instead of a CPU number, because ..."

Sure.

>> +static int cpufreq_stats_update(struct cpufreq_stats *stat)
>>  {
>> -     struct cpufreq_stats *stat;
>> -     unsigned long long cur_time;
>> +     unsigned long long cur_time = get_jiffies_64();
>>
>> -     cur_time = get_jiffies_64();
>
> Unrelated change.

Yeah, it was too small of a change so not that significant as well.
And so folded it into this commit only :(

Will send it separately in v3..

_______________________________________________
linaro-kernel mailing list
linaro-kernel@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-kernel