Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp394578ybh; Sun, 12 Jul 2020 09:44:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7Qv221o64qsRBG2jHdXgIj46xLUhT9Urcj6f6EfLv5f0d6a9ggliaLK2aI1ruqll0B5Ax X-Received: by 2002:a17:906:4c42:: with SMTP id d2mr69487397ejw.345.1594572262835; Sun, 12 Jul 2020 09:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594572262; cv=none; d=google.com; s=arc-20160816; b=SKs/uaJ/FBsNwl0sKChjvUjtaQBoKjgZ20Gqi7WjCKZZ9D7dXvYj3M8jblb3LwFI/H 89phpR8XUOceq/aBypgMFwN9qkg2dTCyGfE+o8ZrxCZRco8gxa1905bUo6z1Q98Rcpac 7LKbVSbr5co9uvdr4LcbQuDP7fIhJsPjfEz+VCrRuoKr3fwLHkyuDveNyotKTJKFfxVM TM/68rXAmjWLUo14Jj1aybw4U00o+iyvmxhIM02hmpdfKe4pvHvCsq1QkhCOYn3lM5QF IXHUL25+EQep7h3dsKjd6cmRh35uk7znG1SuRDaCRFnzPF4wTySKh3ZHqvevxcN1jd94 xbnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:ironport-sdr:ironport-sdr; bh=t38KCza7blm2VsV+K+pTxRaNlYtpNIzmwxJCN0YOMoE=; b=GqoEfNZL0GTGL79OXcSezzvFGlIHMK+RXBLkSKzFyv4xIQH4RcrEuOnRt1NpNqXCmz 0UEuxLmUlCRIgtUCIolHcYoT09Ja2IjAHEOtr2TuEQvNv6yE3T7AEW1MLaAye4ZSvJXK ZK3wtM+TD7HjtsQaN7TgAwVSjt0Xlk9IGNcFSbpJ4VPsaxNb8XiayzpSKtuYRtmdftJd I1/C5FVONvVbl0NPahyao9NUqMi/24NFMLU1QN8iI5djqj6c9j9MSeEx2uKfPxn6RbvA npP4V8a1YCM/nHRmTvfOJpUfZWsMzjYuVCdYkoGOKowuf7SM2hiPt/OgaXruWAmdwnN3 Gjtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w24si7157835ejv.691.2020.07.12.09.43.59; Sun, 12 Jul 2020 09:44:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729239AbgGLQnN (ORCPT + 99 others); Sun, 12 Jul 2020 12:43:13 -0400 Received: from mga14.intel.com ([192.55.52.115]:51898 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729218AbgGLQnL (ORCPT ); Sun, 12 Jul 2020 12:43:11 -0400 IronPort-SDR: drkui3D0OqPkk1uTCLCLq60YB4X6mJjeKD20viY/vsNf7VWrX735yXSIeHMiZxNtVZNxxfrxDr ZlUOVMmW3I8w== X-IronPort-AV: E=McAfee;i="6000,8403,9680"; a="147629357" X-IronPort-AV: E=Sophos;i="5.75,344,1589266800"; d="scan'208";a="147629357" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2020 09:43:10 -0700 IronPort-SDR: 27vxU/aLlqv79KvYOLH2qbf9/YWf5mKnBzFqWATuXAothYSGPge8Rb4732ye8OfmhkyKLSeTVG CoQH6Nu/4FBw== X-IronPort-AV: E=Sophos;i="5.75,344,1589266800"; d="scan'208";a="458998429" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2020 09:43:10 -0700 Subject: [PATCH v2 09/22] arm64: Convert to generic memblock for numa-info From: Dan Williams To: linux-nvdimm@lists.01.org Cc: Mike Rapoport , Jia He , Will Deacon , David Hildenbrand , Catalin Marinas , Andrew Morton , peterz@infradead.org, vishal.l.verma@intel.com, dave.hansen@linux.intel.com, ard.biesheuvel@linaro.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, hch@lst.de, joao.m.martins@oracle.com Date: Sun, 12 Jul 2020 09:26:54 -0700 Message-ID: <159457121480.754248.17292511837648775358.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <159457116473.754248.7879464730875147365.stgit@dwillia2-desk3.amr.corp.intel.com> References: <159457116473.754248.7879464730875147365.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop the existing memory_add_physaddr_to_nid() stub and add support for phys_to_target_node() by selecting the generic CONFIG_MEMBLOCK_NUMAINFO mechanism for querying firmware numa data at runtime. Cc: Mike Rapoport Cc: Jia He Cc: Will Deacon Cc: David Hildenbrand Cc: Catalin Marinas Cc: Andrew Morton Signed-off-by: Dan Williams --- arch/arm64/Kconfig | 1 + arch/arm64/mm/numa.c | 10 ---------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a4a094bedcb2..cfef26ce8c0c 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -65,6 +65,7 @@ config ARM64 select ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPTION select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION select ARCH_KEEP_MEMBLOCK + select MEMBLOCK_NUMA_INFO select ARCH_USE_CMPXCHG_LOCKREF select ARCH_USE_GNU_PROPERTY select ARCH_USE_QUEUED_RWLOCKS diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c index aafcee3e3f7e..73f8b49d485c 100644 --- a/arch/arm64/mm/numa.c +++ b/arch/arm64/mm/numa.c @@ -461,13 +461,3 @@ void __init arm64_numa_init(void) numa_init(dummy_numa_init); } - -/* - * We hope that we will be hotplugging memory on nodes we already know about, - * such that acpi_get_node() succeeds and we never fall back to this... - */ -int memory_add_physaddr_to_nid(u64 addr) -{ - pr_warn("Unknown node for memory at 0x%llx, assuming node 0\n", addr); - return 0; -}