From: Andreas Herrmann <herrmann.der.user@googlemail.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>, Tejun Heo <tj@kernel.org>
Subject: Re: Linux 2.6.39-rc4 (regression: NUMA on multi-node CPUs broken)
Date: Thu, 21 Apr 2011 08:04:17 +0200 [thread overview]
Message-ID: <20110421060417.GA7046@loge> (raw)
In-Reply-To: <20110421110452.7323.A69D9226@jp.fujitsu.com>
On Thu, Apr 21, 2011 at 11:04:27AM +0900, KOSAKI Motohiro wrote:
> > Following patch breaks real NUMA on multi-node CPUs like AMD
> > Magny-Cours and should be reverted (or changed to just take effect in
> > case of numa=fake):
> >
> > commit 7d6b46707f2491a94f4bd3b4329d2d7f809e9368
> > Author: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
> > Date: Fri Apr 15 20:39:01 2011 +0900
> >
> > x86, NUMA: Fix fakenuma boot failure
> >
> > ...
> >
> > Thus, this patch implements a reassignment of node-ids if buggy firmware
> > or numa emulation makes wrong cpu node map. Tt enforce all logical cpus
> > in the same physical cpu share the same node.
> >
> > ...
> >
> > +static void __cpuinit check_cpu_siblings_on_same_node(int cpu1, int cpu2)
> > +{
> > + int node1 = early_cpu_to_node(cpu1);
> > + int node2 = early_cpu_to_node(cpu2);
> > +
> > + /*
> > + * Our CPU scheduler assumes all logical cpus in the same physical cpu
> > + * share the same node. But, buggy ACPI or NUMA emulation might assign
> > + * them to different node. Fix it.
> > + */
> >
> > ...
> >
> > This is a false assumption. Magny-Cours has two nodes in the same
> > physical package. The scheduler was (kind of) fixed to work around
> > this boot problem for multi-node CPUs (with 2.6.32).
>
> I agree we have to fix this ASAP. I also think we have to avoid reintroduce
> the same again. Can you please tell me the commit-id of this one?
It's
commit 5a925b4282d7f805deafde62001a83dbaf8be275
Author: Andreas Herrmann <andreas.herrmann3@amd.com>
Date: Thu Sep 3 09:44:28 2009 +0200
x86, sched: Workaround broken sched domain creation for AMD Magny-Cours
> > If this is also
> > an issue with wrong cpu node maps in case of NUMA emulation this might
> > be fixed similar or this quirk should only be applied in case of NUMA
> > emulation.
>
> Indeed.
>
> Tejun, Do you remember I sent numa emulation specific patch at first. now
> I'm beside with Andreas. Because I bet current numa fallback code (you
> pointed out one) has no user.
>
> Or, please let us know if you have an alternative patch.
>
> Attached revert and fakenuma spefic fix patches.
Andreas
prev parent reply other threads:[~2011-04-21 5:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-19 4:57 Linux 2.6.39-rc4 Linus Torvalds
2011-04-19 20:04 ` [PATCH] uml: fix hppfs build Randy Dunlap
2011-04-19 20:09 ` Richard Weinberger
2011-04-20 15:39 ` Linux 2.6.39-rc4 (regression: NUMA on multi-node CPUs broken) Andreas Herrmann
2011-04-21 0:45 ` David Rientjes
2011-04-21 2:04 ` KOSAKI Motohiro
2011-04-21 2:17 ` David Rientjes
2011-04-21 5:45 ` KOSAKI Motohiro
2011-04-21 2:19 ` [patch 1/2] x86, numa: Revert "Fix fakenuma boot failure" David Rientjes
2011-04-21 2:19 ` [patch 2/2] x86, numa: Fix cpu nodemasks for NUMA emulation and CONFIG_DEBUG_PER_CPU_MAPS David Rientjes
2011-04-21 5:45 ` KOSAKI Motohiro
2011-04-21 19:43 ` David Rientjes
2011-04-21 12:10 ` [tip:x86/urgent] " tip-bot for David Rientjes
2011-04-21 5:45 ` [patch 1/2] x86, numa: Revert "Fix fakenuma boot failure" KOSAKI Motohiro
2011-04-21 12:09 ` [tip:x86/urgent] Revert "x86, NUMA: Fix " tip-bot for David Rientjes
2011-04-21 19:45 ` Linux 2.6.39-rc4 (regression: NUMA on multi-node CPUs broken) David Rientjes
2011-04-21 2:04 ` KOSAKI Motohiro
2011-04-21 6:04 ` Andreas Herrmann [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=20110421060417.GA7046@loge \
--to=herrmann.der.user@googlemail.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tj@kernel.org \
--cc=torvalds@linux-foundation.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.