All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Blueman <daniel@numascale-asia.com>
To: Borislav Petkov <bp@amd64.org>
Cc: Andreas Herrmann <andreas.herrmann3@amd.com>,
	Ingo Molnar <mingo@elte.hu>, Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	linux-kernel@vger.kernel.org, Steffen Persvold <sp@numascale.com>,
	Borislav Petkov <borislav.petkov@amd.com>
Subject: Re: [PATCH] x86: Remove wrong error message in x86_default_fixup_cpu_id
Date: Tue, 21 Feb 2012 11:05:21 +0000	[thread overview]
Message-ID: <4F437A71.6000402@numascale-asia.com> (raw)
In-Reply-To: <20120221102725.GC14274@aftab>

On 21/02/2012 10:27, Borislav Petkov wrote:
> On Mon, Feb 20, 2012 at 06:17:05PM +0100, Andreas Herrmann wrote:
>
> It's only called from amd.c:srat_detect_node(). The introduced
> condition for calling the fixup code is true for all AMD multi-node
> processors, e.g. Magny-Cours and Interlagos. There we have 2 NUMA
> nodes on one socket. And thus there are cores having different
> numa-node-id but with equal phys_proc_id. For example on such a system
> we now get
>
> [    0.228109] Booting Node   0, Processors  #1
> [    0.232337] smpboot cpu 1: start_ip = 83000
> [    0.252088]  #2
> [    0.253746] smpboot cpu 2: start_ip = 83000
> [    0.272086]  #3
> [    0.276018] smpboot cpu 3: start_ip = 83000
> [    0.296088]  #4
> [    0.297745] smpboot cpu 4: start_ip = 83000
> [    0.316088]  #5
> [    0.320021] smpboot cpu 5: start_ip = 83000
> [    0.340113]  Ok.
> [    0.342324] Booting Node   1, Processors  #6
> [    0.344344] smpboot cpu 6: start_ip = 83000
> [    0.016000] NUMA core number 1 differs from configured core number 0
> [    0.372110]  #7
> [    0.373771] smpboot cpu 7: start_ip = 83000
> [    0.016000] NUMA core number 1 differs from configured core number 0
> [    0.396104]  #8
> [    0.397764] smpboot cpu 8: start_ip = 83000
> [    0.016000] NUMA core number 1 differs from configured core number 0
> [    0.420109]  #9
> [    0.421773] smpboot cpu 9: start_ip = 83000
> [    0.016000] NUMA core number 1 differs from configured core number 0
> [    0.444113]  #10
> [    0.445865] smpboot cpu 10: start_ip = 83000
> [    0.016000] NUMA core number 1 differs from configured core number 0
> [    0.468111]  #11
> [    0.472030] smpboot cpu 11: start_ip = 83000
> [    0.016000] NUMA core number 1 differs from configured core number 0
>
> These NUMA core numbering error messages are plain wrong.
>
> The confusing/misleading error message was introduced with commit
> 64be4c1c2428e148de6081af235e2418e6a66dda (x86: Add x86_init platform
> override to fix up NUMA core numbering) and should be removed.
>
> Reported-by: Borislav Petkov<borislav.petkov@amd.com>
> Signed-off-by: Andreas Herrmann<andreas.herrmann3@amd.com>
> ---
>   arch/x86/kernel/cpu/common.c |    1 -
>   1 files changed, 0 insertions(+), 1 deletions(-)
>
> BTW, I wonder why the fixup code isn't called from the Intel path.  At
> least the mentioned patch suggests that something more generic was
> introduced here.
> Right, and I would remove the check in amd.c:srat_detect_node() instead
> of removing the printk statement in the default implementation.
>
> IOW, we need more info on why the check was added only to the AMD path?
> Daniel?

The check and fixup wasn't needed in the Intel path thus far, so wasn't 
added.

We could specialise the 'if (c->phys_proc_id != node)' test to check for 
x86_cpuinit.fixup_cpu_id being NULL and drop the default override, if 
that is preferred?

Thanks,
   Daniel

-- 
Daniel J Blueman
Principal Software Engineer, Numascale Asia


  reply	other threads:[~2012-02-21 11:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20 17:17 [PATCH] x86: Remove wrong error message in x86_default_fixup_cpu_id Andreas Herrmann
2012-02-21 10:27 ` Borislav Petkov
2012-02-21 11:05   ` Daniel J Blueman [this message]
2012-02-21 11:20     ` Borislav Petkov
2012-02-21 12:56       ` Daniel J Blueman
2012-02-22 13:47     ` Andreas Herrmann
2012-02-23 10:23       ` Daniel J Blueman
2012-02-24 15:31         ` [PATCH resend] " Andreas Herrmann
2012-02-27 12:07           ` [tip:x86/platform] x86/platform: Remove incorrect error message in x86_default_fixup_cpu_id() tip-bot for Andreas Herrmann
2012-02-28 15:27             ` Borislav Petkov
2012-02-28 16:42           ` [tip:x86/urgent] " tip-bot for Andreas Herrmann
2012-03-02 11:04             ` Ingo Molnar
2012-03-02 11:51               ` Andreas Herrmann
2012-04-02 16:06                 ` [PATCH resend] " Andreas Herrmann
2012-04-04 12:38                   ` Borislav Petkov
2012-04-16 17:31                     ` Borislav Petkov
2012-04-16 18:53                   ` [tip:x86/urgent] " tip-bot for Andreas Herrmann

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=4F437A71.6000402@numascale-asia.com \
    --to=daniel@numascale-asia.com \
    --cc=andreas.herrmann3@amd.com \
    --cc=borislav.petkov@amd.com \
    --cc=bp@amd64.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=sp@numascale.com \
    --cc=tglx@linutronix.de \
    /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.