Re: [PATCH][v2] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-03 Thread Tudor Laurentiu
On 07/03/2013 05:52 PM, Scott Wood wrote: On 07/03/2013 07:29:43 AM, Tudor Laurentiu wrote: On 07/02/2013 08:55 PM, Scott Wood wrote: On 07/02/2013 07:46:29 AM, Laurentiu Tudor wrote: - insts = of_get_property(hyper_node, "hcall-instructions", &len); - if (!insts) - return -ENODEV; +#if !defin

Re: [PATCH][v2] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-03 Thread Scott Wood
On 07/03/2013 07:29:43 AM, Tudor Laurentiu wrote: On 07/02/2013 08:55 PM, Scott Wood wrote: On 07/02/2013 07:46:29 AM, Laurentiu Tudor wrote: - insts = of_get_property(hyper_node, "hcall-instructions", &len); - if (!insts) - return -ENODEV; +#if !defined(CONFIG_64BIT) || defined(CONFIG_PPC_BOOK

[PATCH][v3] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-03 Thread Laurentiu Tudor
At console init, when the kernel tries to flush the log buffer the ePAPR byte-channel based console write fails silently, losing the buffered messages. This happens because The ePAPR para-virtualization init isn't done early enough so that the hcall instruction to be set, causing the byte-channel w

Re: [PATCH][v2] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-03 Thread Tudor Laurentiu
On 07/02/2013 08:55 PM, Scott Wood wrote: On 07/02/2013 07:46:29 AM, Laurentiu Tudor wrote: diff --git a/arch/powerpc/kernel/epapr_paravirt.c b/arch/powerpc/kernel/epapr_paravirt.c index d44a571..d05f9da 100644 --- a/arch/powerpc/kernel/epapr_paravirt.c +++ b/arch/powerpc/kernel/epapr_paravirt.c

Re: [PATCH][v2] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-02 Thread Scott Wood
On 07/02/2013 07:46:29 AM, Laurentiu Tudor wrote: diff --git a/arch/powerpc/kernel/epapr_paravirt.c b/arch/powerpc/kernel/epapr_paravirt.c index d44a571..d05f9da 100644 --- a/arch/powerpc/kernel/epapr_paravirt.c +++ b/arch/powerpc/kernel/epapr_paravirt.c @@ -30,38 +30,45 @@ extern u32 epapr_ev_

[PATCH][v2] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-07-02 Thread Laurentiu Tudor
At console init, when the kernel tries to flush the log buffer the ePAPR byte-channel based console write fails silently, losing the buffered messages. This happens because The ePAPR para-virtualization init isn't done early enough so that the hcall instruction to be set, causing the byte-channel w

Re: powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-06-26 Thread Scott Wood
On 06/26/2013 07:36:23 AM, Tudor Laurentiu wrote: On 06/26/2013 02:14 AM, Scott Wood wrote: This would require converting the code to use the early device tree functions. I see. Had a look at that api and it seems pretty limited. I couldn't find a simple way of reading a property other than

Re: powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-06-26 Thread Tudor Laurentiu
On 06/26/2013 02:14 AM, Scott Wood wrote: On Tue, Mar 05, 2013 at 05:52:36PM +0200, Laurentiu TUDOR wrote: From: Tudor Laurentiu The ePAPR para-virtualization needs to happen very early otherwise the bytechannel based console will silently drop some of the early boot messages. Before this patc

Re: powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-06-25 Thread Scott Wood
On Tue, Mar 05, 2013 at 05:52:36PM +0200, Laurentiu TUDOR wrote: > From: Tudor Laurentiu > > The ePAPR para-virtualization needs to happen very early > otherwise the bytechannel based console will silently > drop some of the early boot messages. > > Before this patch, this is how the kernel log

[PATCH] powerpc/85xx: Move ePAPR paravirt initialization earlier

2013-03-05 Thread Laurentiu Tudor
From: Tudor Laurentiu The ePAPR para-virtualization needs to happen very early otherwise the bytechannel based console will silently drop some of the early boot messages. Before this patch, this is how the kernel log started: - > Brought up 2