Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: David Daney <ddaney.cavm@gmail.com>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH 3/3] MIPS: OCTEON: disable SMP if the bootloader version is incorrect
Date: Tue, 17 Jun 2014 15:44:46 -0700	[thread overview]
Message-ID: <53A0C4DE.6000408@gmail.com> (raw)
In-Reply-To: <1402949190-28182-3-git-send-email-aaro.koskinen@iki.fi>

On 06/16/2014 01:06 PM, Aaro Koskinen wrote:
> Disable SMP if the bootloader version is incorrect for HOTPLUG_CPU.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>

NAK to this one.


> ---
>   arch/mips/cavium-octeon/smp.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c
> index ea96930..71f5505 100644
> --- a/arch/mips/cavium-octeon/smp.c
> +++ b/arch/mips/cavium-octeon/smp.c
> @@ -88,8 +88,10 @@ static void octeon_smp_hotplug_setup(void)
>   		return;
>
>   	labi = (struct linux_app_boot_info *)PHYS_TO_XKSEG_CACHED(LABI_ADDR_IN_BOOTLOADER);
> -	if (labi->labi_signature != LABI_SIGNATURE)
> -		panic("The bootloader version on this board is incorrect.");
> +	if (labi->labi_signature != LABI_SIGNATURE) {
> +		setup_max_cpus = 0;
> +		WARN(1, "Disabling SMP - the bootloader version on this board does not support HOTPLUG_CPU.");
> +	}

We really want to allow SMP, but just disable hot-plugging in the case 
that the bootloader magic is missing.  This is not what setup_max_cpus 
is for.

I would prefer to see a separate variable that indicated ability to 
hot-plug, and have that be used to gate both the watchdog things as well 
as octeon_cpu_disable().


>
>   	octeon_bootloader_entry_addr = labi->InitTLBStart_addr;
>   #endif
>

  reply	other threads:[~2014-06-17 22:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16 20:06 [PATCH 1/3] MIPS: OCTEON: SMP: delete redundant check Aaro Koskinen
2014-06-16 20:06 ` [PATCH 2/3] MIPS: OCTEON: support disabling HOTPLUG_CPU run-time Aaro Koskinen
2014-06-17 22:41   ` David Daney
2014-06-18 19:04     ` Aaro Koskinen
2014-06-16 20:06 ` [PATCH 3/3] MIPS: OCTEON: disable SMP if the bootloader version is incorrect Aaro Koskinen
2014-06-17 22:44   ` David Daney [this message]
2014-06-17 22:31 ` [PATCH 1/3] MIPS: OCTEON: SMP: delete redundant check David Daney

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=53A0C4DE.6000408@gmail.com \
    --to=ddaney.cavm@gmail.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.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