From: Scott Wood <scottwood@freescale.com>
To: Laurentiu TUDOR <Laurentiu.Tudor@freescale.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: powerpc/85xx: Move ePAPR paravirt initialization earlier
Date: Tue, 25 Jun 2013 18:14:04 -0500 [thread overview]
Message-ID: <20130625231404.GA29587@home.buserror.net> (raw)
In-Reply-To: <1362498756-395-1-git-send-email-Laurentiu.Tudor@freescale.com>
On Tue, Mar 05, 2013 at 05:52:36PM +0200, Laurentiu TUDOR wrote:
> From: Tudor Laurentiu <laurentiu.tudor@freescale.com>
>
> 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 CPUs
> > devtmpfs: initialized
> > NET: Registered protocol family 16
> [...]
> -----------------------------------------------------
>
> After the patch the early messages show up:
> -----------------------------------------------------
> > Using P5020 DS machine description
> > MMU: Supported page sizes
> > 4 KB as direct
> > 4096 KB as direct
> [...]
> -----------------------------------------------------
>
> At console init, the kernel tried to flush the log buffer.
> Since the paravirt was not yet initialized the console write
> function failed silently, thus losing the buffered messages.
[snip]
> diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
> index 6da881b..ce092ac 100644
> --- a/arch/powerpc/kernel/setup_64.c
> +++ b/arch/powerpc/kernel/setup_64.c
> @@ -66,6 +66,7 @@
> #include <asm/code-patching.h>
> #include <asm/kvm_ppc.h>
> #include <asm/hugetlb.h>
> +#include <asm/epapr_hcalls.h>
>
> #include "setup.h"
>
> @@ -599,6 +600,8 @@ void __init setup_arch(char **cmdline_p)
> /* Initialize the MMU context management stuff */
> mmu_context_init();
>
> + epapr_paravirt_init();
> +
> kvm_linear_init();
>
> /* Interrupt code needs to be 64K-aligned */
Is this early enough? There's udbg activity before this. Maybe it
should even go before udbg_early_init... This would require converting
the code to use the early device tree functions.
-Scott
next prev parent reply other threads:[~2013-06-25 23:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-05 15:52 [PATCH] powerpc/85xx: Move ePAPR paravirt initialization earlier Laurentiu Tudor
2013-06-25 23:14 ` Scott Wood [this message]
2013-06-26 12:36 ` Tudor Laurentiu
2013-06-26 18:56 ` Scott Wood
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=20130625231404.GA29587@home.buserror.net \
--to=scottwood@freescale.com \
--cc=Laurentiu.Tudor@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).