Message ID | 152738261272.11641.17387529225149633595.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5FD3960225 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 27 May 2018 01:06:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50EA729050 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 27 May 2018 01:06:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45D0E29122; Sun, 27 May 2018 01:06:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABF2F29050 for <patchwork-linux-mm@patchwork.kernel.org>; Sun, 27 May 2018 01:06:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9FC4D6B000A; Sat, 26 May 2018 21:06:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9AB896B000C; Sat, 26 May 2018 21:06:51 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8C3446B000D; Sat, 26 May 2018 21:06:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f198.google.com (mail-pf0-f198.google.com [209.85.192.198]) by kanga.kvack.org (Postfix) with ESMTP id 4D0F26B000A for <linux-mm@kvack.org>; Sat, 26 May 2018 21:06:51 -0400 (EDT) Received: by mail-pf0-f198.google.com with SMTP id w7-v6so5222761pfd.9 for <linux-mm@kvack.org>; Sat, 26 May 2018 18:06:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:subject:from :to:cc:date:message-id:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=TgK8yP6tAB6hQls7yFfKi6eRDxJuR0Qe0KNnyOnhf9Q=; b=V+TpZOwOYMZlyHan3qTCw/Zgj3nP287oD5y1WX7QoJ8H9OZgRLcpd96AjOoa8q7MKm PnrOZ90uECMk4hKu4mGYef9u4Z1tduodpVEIEBAQMusNdiDUJJF1+OP8uzYB0s6U9r99 XHok8AYiaJmWrYLbcSBuoalIh7twmeHgtQisYhhMCWTTwJH5rR1Ck42dcSJgPoxv/YEP izJxwtoXHmBgXuPx5d2v68rWUUiikzBu7eCZttCiAZoo4/KdHE/CMKs/7cFkpy973X00 Blphm6xkpbHglfFrFEjtKilLv2geRgKYtP+WuIusZ7Uab26xojybnH3g6wgPvTaEci82 KfFQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of dan.j.williams@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Gm-Message-State: ALKqPwe9G0Q/OV7fiBOSqLfWpfItc+MkYglHkH0Mfd9Z8Db1xNJLzhVF lDhzYQftcmuQlkUEHcTX2ZzXd3mQxKsw48u5Tvv2ijiYVZ0QzSgjbj9aXyJPLn04beNOQQ1NeuH s5kg6874fWwQ+WXh84ZQzo/xLwVCNlzRf9wp1G39hboKV0cOZ6r/HkcioKnkNoJ5kmg== X-Received: by 2002:a63:62c7:: with SMTP id w190-v6mr6517530pgb.104.1527383210997; Sat, 26 May 2018 18:06:50 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpnlUeBbh8PveFKZ3dmY6MV7AuiB/5cMg4VIIHyjCgrszN+vOe2Qyw/HNyfizD451rPrCP5 X-Received: by 2002:a63:62c7:: with SMTP id w190-v6mr6517512pgb.104.1527383210326; Sat, 26 May 2018 18:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527383210; cv=none; d=google.com; s=arc-20160816; b=fgOJ+TYnrUSfsAReo2pJW4NqOe6Ov3Uq0h5sEhhVCeVk0hdZB6EC+ye2kYZXFZ/eKr 62XaaqMl7x+OJR+GauAFi+icYfAT3bgZpUcmKaCXjMb0+ANwweMo7L8ldUPmYUSJtd+L j8hVrKpVZ1iqK289UYNaAoOcnAgdq1x5w9YLK70Ziu3NenZ5SVvRkpaaLt9fz9sImUQe Z+I6UdFHwgVWZTuCsQnGMzfDJViKT9QwO45/c2MS0lwOs7IqxgUPjkJFGE9fjWJu3Sct GE5g2lZ0yiaiErIc5Xz1MG7E4MrgM/ZH2goL0l2CAGdCNv7LmyYIPeLNRdyuKMaBEGyu ZegQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:cc:to:from:subject :arc-authentication-results; bh=TgK8yP6tAB6hQls7yFfKi6eRDxJuR0Qe0KNnyOnhf9Q=; b=MG6mTBpxB51jTpk3KyXCBtlhM4Xn73E00qSyB46NjQ9QOtM+/CAd7qf1EVqikS2drb apJwZPJs/+E1cBkQ8bCXKDaQjNKJchdEHRplC69h2HROz5D31ydWEFGMKcrr5cAeB3/B IdaGkl2q/nDe62Wk3V1z06f88EKR7hJnKPhKrOKaTWAzU5Ntyn7vEh+0yBWBKtCnSp4K TxfOB3pqSmg2j2GgcuQioNnK4ySsS4QzuiiSfLTT6BqpYUyz5FbrqpWroR0KKySd4OzP lzZrzkd6u10WIGw81riuT/vLD77T8NXEZb0iXr441/cB8/806XcXK6QRwQcRf8SDL0j/ BJdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dan.j.williams@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from mga04.intel.com (mga04.intel.com. [192.55.52.120]) by mx.google.com with ESMTPS id y12-v6si27176832plt.233.2018.05.26.18.06.50 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 May 2018 18:06:50 -0700 (PDT) Received-SPF: pass (google.com: domain of dan.j.williams@intel.com designates 192.55.52.120 as permitted sender) client-ip=192.55.52.120; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dan.j.williams@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 May 2018 18:06:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,446,1520924400"; d="scan'208";a="61998705" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga002.jf.intel.com with ESMTP; 26 May 2018 18:06:49 -0700 Subject: [PATCH 1/2] x86/numa_emulation: Fix emulated-to-physical node mapping From: Dan Williams <dan.j.williams@intel.com> To: mingo@kernel.org Cc: Wei Yang <richard.weiyang@gmail.com>, David Rientjes <rientjes@google.com>, Thomas Gleixner <tglx@linutronix.de>, "H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@redhat.com>, x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, x86@kernel.org Date: Sat, 26 May 2018 17:56:52 -0700 Message-ID: <152738261272.11641.17387529225149633595.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <152738260746.11641.13275998345345705617.stgit@dwillia2-desk3.amr.corp.intel.com> References: <152738260746.11641.13275998345345705617.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-2-gc94f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
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) {
Without this change the distance table calculation for emulated nodes may use the wrong numa node and report an incorrect distance. Cc: Wei Yang <richard.weiyang@gmail.com> Cc: David Rientjes <rientjes@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: <x86@kernel.org> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- arch/x86/mm/numa_emulation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)