public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Dan Williams <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de,
	mingo@kernel.org, dan.j.williams@intel.com,
	richard.weiyang@gmail.com, peterz@infradead.org,
	torvalds@linux-foundation.org, rientjes@google.com,
	hpa@zytor.com
Subject: [tip:x86/cpu] x86/numa_emulation: Fix emulated-to-physical node mapping
Date: Fri, 6 Jul 2018 09:54:54 -0700	[thread overview]
Message-ID: <tip-3b6c62f363a19ce82bf378187ab97c9dc01e3927@git.kernel.org> (raw)
In-Reply-To: <153089328103.27680.14778434392225818887.stgit@dwillia2-desk3.amr.corp.intel.com>

Commit-ID:  3b6c62f363a19ce82bf378187ab97c9dc01e3927
Gitweb:     https://git.kernel.org/tip/3b6c62f363a19ce82bf378187ab97c9dc01e3927
Author:     Dan Williams <dan.j.williams@intel.com>
AuthorDate: Fri, 6 Jul 2018 09:08:01 -0700
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Fri, 6 Jul 2018 18:48:58 +0200

x86/numa_emulation: Fix emulated-to-physical node mapping

Without this change the distance table calculation for emulated nodes
may use the wrong numa node and report an incorrect distance.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Wei Yang <richard.weiyang@gmail.com>
Cc: linux-mm@kvack.org
Link: http://lkml.kernel.org/r/153089328103.27680.14778434392225818887.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/mm/numa_emulation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/numa_emulation.c b/arch/x86/mm/numa_emulation.c
index 34a2a3bfde9c..22cbad56acab 100644
--- a/arch/x86/mm/numa_emulation.c
+++ b/arch/x86/mm/numa_emulation.c
@@ -61,7 +61,7 @@ static int __init emu_setup_memblk(struct numa_meminfo *ei,
 	eb->nid = nid;
 
 	if (emu_nid_to_phys[nid] == NUMA_NO_NODE)
-		emu_nid_to_phys[nid] = nid;
+		emu_nid_to_phys[nid] = pb->nid;
 
 	pb->start += size;
 	if (pb->start >= pb->end) {

  reply	other threads:[~2018-07-06 16:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06 16:07 [PATCH v2 0/2] x86/numa_emulation: Introduce uniform split capability Dan Williams
2018-07-06 16:08 ` [PATCH v2 1/2] x86/numa_emulation: Fix emulated-to-physical node mapping Dan Williams
2018-07-06 16:54   ` tip-bot for Dan Williams [this message]
2018-07-06 16:08 ` [PATCH v2 2/2] x86/numa_emulation: Introduce uniform split capability Dan Williams
2018-07-06 16:55   ` [tip:x86/cpu] " tip-bot for Dan Williams

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=tip-3b6c62f363a19ce82bf378187ab97c9dc01e3927@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=dan.j.williams@intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=richard.weiyang@gmail.com \
    --cc=rientjes@google.com \
    --cc=tglx@linutronix.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox