From nobody Mon Jan 5 11:34:30 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80374E784BA for ; Mon, 2 Oct 2023 19:41:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238938AbjJBTlO (ORCPT ); Mon, 2 Oct 2023 15:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbjJBTlK (ORCPT ); Mon, 2 Oct 2023 15:41:10 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76A63A9; Mon, 2 Oct 2023 12:41:05 -0700 (PDT) Date: Mon, 02 Oct 2023 19:41:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696275664; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TA8px2Gs5zicIf3ntSyEajmuGJx7VXeR5XlyhlMdO4o=; b=v6zqlENEQnGO4kWR/9Nx7ejWOe62pY6AYBvpPLgKiY1qucegi+0N2uZF+Is82M49QFzE91 rJeAYp7L5yMD1akzeocaobLysn+sBNZMYA1mhXNjAFy9p4e0lu1sm+GZit7Pr6PnBSCddM Cf6eqrImQXmMwAHZrqFCGh43+QPd2gYjnpO3NXIDB1UfFawDYkVRRI9pXVbGkOJviIhPZZ ei9DNuRaw3YtATxMmcmKFmOxI6aNqr1AOMarEs+ZYUm+xrC0AUJ31bXiAuI/mjQjGSH+n0 O3mflOHRq2zomivmyJPzcrMj2hmFSaG1miW28mkEGuLTjzCK5OYZO0j7Yg535A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696275664; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TA8px2Gs5zicIf3ntSyEajmuGJx7VXeR5XlyhlMdO4o=; b=DnHtqKhIrFeqqu+r+mohesOs43Edd0brDinvYpKAwy12DQD+D3Wxvk3wkJ8rKVvgd7NMwl j9Jyy8mH9Su5onDw== From: "tip-bot2 for Saurabh Sengar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/platform] x86/numa: Add Devicetree support Cc: Saurabh Sengar , Ingo Molnar , Sebastian Andrzej Siewior , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1692949657-16446-2-git-send-email-ssengar@linux.microsoft.com> References: <1692949657-16446-2-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Message-ID: <169627566214.3135.17645034772157973524.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/platform branch of tip: Commit-ID: 0c436a58292d0ca1af213ede75b2508995c8af0b Gitweb: https://git.kernel.org/tip/0c436a58292d0ca1af213ede75b250899= 5c8af0b Author: Saurabh Sengar AuthorDate: Fri, 25 Aug 2023 00:47:37 -07:00 Committer: Ingo Molnar CommitterDate: Mon, 02 Oct 2023 21:30:20 +02:00 x86/numa: Add Devicetree support Hyper-V has usecases where it needs to fetch NUMA information from Devicetree. Currently, it is not possible to extract the NUMA information from Devicetree for the x86 arch. Add support for Devicetree in the x86_numa_init() function, allowing the retrieval of NUMA node information from the Devicetree. Signed-off-by: Saurabh Sengar Signed-off-by: Ingo Molnar Cc: Sebastian Andrzej Siewior Link: https://lore.kernel.org/r/1692949657-16446-2-git-send-email-ssengar@l= inux.microsoft.com --- arch/x86/Kconfig | 1 + arch/x86/mm/numa.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 66bfaba..aab5e32 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1534,6 +1534,7 @@ config NUMA depends on X86_64 || (X86_32 && HIGHMEM64G && X86_BIGSMP) default y if X86_BIGSMP select USE_PERCPU_NUMA_NODE_ID + select OF_NUMA if OF help Enable NUMA (Non-Uniform Memory Access) support. =20 diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 2aadb20..c79f12e 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include @@ -733,6 +734,8 @@ void __init x86_numa_init(void) if (!numa_init(amd_numa_init)) return; #endif + if (acpi_disabled && !numa_init(of_numa_init)) + return; } =20 numa_init(dummy_numa_init);