All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robin Holt <holt@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH] Bugfix for system with 32 cpus
Date: Sat, 28 Jun 2008 10:15:56 +0000	[thread overview]
Message-ID: <20080628101556.GC10511@sgi.com> (raw)
In-Reply-To: <57C9024A16AD2D4C97DC78E552063EA306382EAB@orsmsx505.amr.corp.intel.com>


Acked-by: Robin Holt <holt@sgi.com>

Sorry for the bug,
Robin

On Fri, Jun 27, 2008 at 03:30:20PM -0700, Luck, Tony wrote:
> commit 180f2319663d6aece02fc0284a02944ad2cc7c98
> Author: Tony Luck <tony.luck@intel.com>
> Date:   Fri Jun 27 14:04:21 2008 -0700
> 
>     [IA64] Bugfix for system with 32 cpus
> 
>     On a system where there are no hot pluggable cpus "additional_cpus"
>     is still set to -1 at the point where we call per_cpu_scan_finalize().
>     If we didn't find an SRAT table and so pick the default "32" for the
>     number of cpus, when we get to:
>         high_cpu = min(high_cpu + reserve_cpus, NR_CPUS);
>     we will end up initializing for just 31 cpus ... and so we will
>     die horribly when bringing up cpu#32.
> 
>     Problem introduced by: 2c6e6db41f01b6b4eb98809350827c9678996698
>     "Minimize per_cpu reservations."
> 
>     Signed-off-by: Tony Luck <tony.luck@intel.com>
> 
> diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c
> index 4ae15c8..632cda8 100644
> --- a/arch/ia64/kernel/setup.c
> +++ b/arch/ia64/kernel/setup.c
> @@ -547,7 +547,8 @@ setup_arch (char **cmdline_p)
>  # ifdef CONFIG_ACPI_NUMA
>         acpi_numa_init();
>         per_cpu_scan_finalize((cpus_weight(early_cpu_possible_map) = 0 ?
> -               32 : cpus_weight(early_cpu_possible_map)), additional_cpus);
> +               32 : cpus_weight(early_cpu_possible_map)),
> +               additional_cpus > 0 ? additional_cpus : 0);
>  # endif
>  #else
>  # ifdef CONFIG_SMP
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2008-06-28 10:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-27 22:30 [PATCH] Bugfix for system with 32 cpus Luck, Tony
2008-06-28 10:15 ` Robin Holt [this message]

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=20080628101556.GC10511@sgi.com \
    --to=holt@sgi.com \
    --cc=linux-ia64@vger.kernel.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.