All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Cc: Keir Fraser <keir@xen.org>,
	pranavkumar@linaro.org, tim@xen.org,
	Anup Patel <anup.patel@linaro.org>,
	stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH v3 11/13] xen: arm: enable synchronous console while starting secondary CPUs
Date: Mon, 25 Nov 2013 12:37:43 +0000	[thread overview]
Message-ID: <52934497.1030705@linaro.org> (raw)
In-Reply-To: <1385377625-20250-11-git-send-email-ian.campbell@citrix.com>



On 11/25/2013 11:07 AM, Ian Campbell wrote:
> Setting synchronous console ensures that any printk hits the buffer
> immediately and that any outstanding queued log messages are flushed. This
> ensures that such log messages are not being printed while the secondary CPU
> may be using early_printk during early bringup.
>
> Signed-of-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
> Cc: Keir Fraser <keir@xen.org>
> ---
> v2: improved commit message.
> ---
>   xen/arch/arm/smpboot.c |    5 +++++
>   1 file changed, 5 insertions(+)
>
> diff --git a/xen/arch/arm/smpboot.c b/xen/arch/arm/smpboot.c
> index 7636ab8..e862477 100644
> --- a/xen/arch/arm/smpboot.c
> +++ b/xen/arch/arm/smpboot.c
> @@ -28,6 +28,7 @@
>   #include <xen/softirq.h>
>   #include <xen/timer.h>
>   #include <xen/irq.h>
> +#include <xen/console.h>
>   #include <asm/gic.h>
>
>   cpumask_t cpu_online_map;
> @@ -356,6 +357,8 @@ int __cpu_up(unsigned int cpu)
>       if ( rc < 0 )
>           return rc;
>
> +    console_start_sync(); /* Secondary may use early_printk */
> +
>       /* Tell the remote CPU which stack to boot on. */
>       init_data.stack = idle_vcpu[cpu]->arch.stack;
>
> @@ -368,6 +371,8 @@ int __cpu_up(unsigned int cpu)
>
>       rc = arch_cpu_up(cpu);
>
> +    console_end_sync();
> +
>       if ( rc < 0 )
>       {
>           printk("Failed to bring up CPU%d\n", cpu);
>

-- 
Julien Grall

  reply	other threads:[~2013-11-25 12:37 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 11:06 [PATCH v3 00/13] xen: arm initial support for xgene arm64 platform Ian Campbell
2013-11-25 11:06 ` [PATCH v3 01/13] xen: arm64: Add 8250 earlyprintk support Ian Campbell
2013-11-25 12:29   ` Julien Grall
2013-11-25 12:35     ` Ian Campbell
2013-11-25 11:06 ` [PATCH v3 02/13] xen: arm64: Add Basic Platform support for APM X-Gene Storm Ian Campbell
2013-11-25 11:06 ` [PATCH v3 03/13] xen: arm64: Add APM implementor id to processor implementers Ian Campbell
2013-11-25 11:06 ` [PATCH v3 04/13] xen: arm: add a quirk to handle platforms with unusual GIC layout Ian Campbell
2013-11-25 12:34   ` Julien Grall
2013-11-25 12:36     ` Ian Campbell
2013-11-25 12:38       ` Ian Campbell
2013-11-25 12:39         ` Julien Grall
2013-11-25 11:06 ` [PATCH v3 05/13] xen: arm: allow platform code to select dom0 event channel irq Ian Campbell
2013-11-25 11:06 ` [PATCH v3 06/13] xen: arm64: Map xgene PCI memory regions and interrupts to dom0 Ian Campbell
2013-11-25 11:06 ` [PATCH v3 07/13] xen: arm: include ns16550 driver on arm64 too Ian Campbell
2013-11-25 11:07 ` [PATCH v3 08/13] xen: arm: Handle cpus nodes with #address-cells > 1 Ian Campbell
2013-11-25 12:35   ` Julien Grall
2013-11-25 11:07 ` [PATCH v3 09/13] xen: arm: Make register bit definitions unsigned Ian Campbell
2013-11-25 11:07 ` [PATCH v3 10/13] xen: arm: explicitly map 64 bit release address Ian Campbell
2013-11-25 11:07 ` [PATCH v3 11/13] xen: arm: enable synchronous console while starting secondary CPUs Ian Campbell
2013-11-25 12:37   ` Julien Grall [this message]
2013-11-25 11:07 ` [PATCH v3 12/13] xen: arm: improve early memory map readability Ian Campbell
2013-11-25 11:07 ` [PATCH v3 13/13] xen: arm: handle 40-bit addresses in the p2m Ian Campbell
2013-11-28 13:07   ` Ian Campbell

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=52934497.1030705@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=anup.patel@linaro.org \
    --cc=ian.campbell@citrix.com \
    --cc=keir@xen.org \
    --cc=pranavkumar@linaro.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.