From patchwork Tue Jun 25 12:58:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 13711107 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3785C2BBCA for ; Tue, 25 Jun 2024 12:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=u73BM2k0P5V0AYjELtkiQ2BhOsIZOrApdWBJKOtljdU=; b=tpdECj4GM+P6Q6hokPrduyBB+G aRg2IhlHvy/CpU8ejpU1auTHIqz7V+kTG9Ckj7x8yUNxe6mh/DcYcK5mxNGHZQ0txpbBUomXMuj5Y kTYXmq7AsacdbHlbLTKISifwZ/DdK/1+RDbjDORN3fU3if+t4ZLL8NqDF79FLRJ8M90PykJ5w0+zB ueaui75HU4TcqWT8WUwJKVOBfdUnHA0+5PWveZlitAgrOBbcBb2LsyUy5B4k7qp4fX9wBLlrJ1eUq 6GZRKNfCpeG9+IuQdoxPI39FIif1ogkGJApyFXP/2K61eWv8uRcLe/khB+ieXQnjnVyufY1WnW3Eh zWFNLHIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM5ko-00000002sIC-0op4; Tue, 25 Jun 2024 12:58:34 +0000 Received: from fanzine.igalia.com ([178.60.130.6] helo=fanzine2.igalia.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sM5kh-00000002sDz-0KXO for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2024 12:58:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=u73BM2k0P5V0AYjELtkiQ2BhOsIZOrApdWBJKOtljdU=; b=cd0A3Mqxf8WtqGzNNBqSZzdhFe 51ANiA2VcZdEPlHP5VTbnLoyccrXwEHOYk97oHIgGPYcz8Vsj/w14T5ZQVYO2mko5ixw5gTzjtTnV LRMVlcgu735PH73u4Mj71RUymizaVWyvpq6LQOJtiK89pXNmzfcv0hKxNR/yhoAoDvibeRtEwduo1 sz1omZjEiVSrHQn6HWWqpRe60/abE3kM/RdeCHHB75ALRjPl9SnhO52UYu/4/w5fBT7j/0+pI9E4A mwwZcZCJsXNLj0Qvde6ghN9IhKW3qbmuoHj2r3ZAmUyQmNZdQ7oYz6ZSonONvXPSiCbLfQKgCqRVd roJzfXaA==; Received: from [84.69.19.168] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1sM5kW-007J4a-AU; Tue, 25 Jun 2024 14:58:16 +0200 From: Tvrtko Ursulin To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, kernel-dev@igalia.com, =?utf-8?q?Ma=C3=ADr?= =?utf-8?q?a_Canal?= , Tvrtko Ursulin , Catalin Marinas , Will Deacon , Greg Kroah-Hartman Subject: [PATCH 2/2] arm64/numa: Add NUMA emulation for ARM64 Date: Tue, 25 Jun 2024 13:58:03 +0100 Message-ID: <20240625125803.38038-3-tursulin@igalia.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240625125803.38038-1-tursulin@igalia.com> References: <20240625125803.38038-1-tursulin@igalia.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240625_055827_597373_C25722B4 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Maíra Canal Allow selecting NUMA emulation on arm64. Signed-off-by: Maíra Canal Signed-off-by: Tvrtko Ursulin Cc: Catalin Marinas Cc: Will Deacon Cc: Greg Kroah-Hartman Cc: “Rafael J. Wysocki" --- arch/arm64/Kconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8e80df015bdd..49c1cdc545d3 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1507,6 +1507,16 @@ config NODES_SHIFT Specify the maximum number of NUMA Nodes available on the target system. Increases memory reserved to accommodate various tables. +config NUMA_EMULATION + bool "NUMA emulation" + depends on NUMA + select GENERIC_ARCH_NUMA_EMULATION + help + Enable NUMA emulation support. A flat machine will be split into + virtual nodes when booted with "numa=fake=N", where N is the number + of nodes, the system RAM will be split into N equal chunks, and + assigned to each node. + source "kernel/Kconfig.hz" config ARCH_SPARSEMEM_ENABLE