Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3023496lqo; Tue, 21 May 2024 04:50:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWLlDHRuBn6eoIkO2Yb83Wn/JXjzIv3Q6u7YYdunhVWOEO/n3/xsHTuOGaq0/vIqpZP8NtnkVdS610OSgEboEaDx9ZWJdeJC6EC9wAaIA== X-Google-Smtp-Source: AGHT+IHEo8/dZ09+xyYVInOwr4H+daE+copsxmaVsfLpvK8I8HQK4GKayA21+JPC06ImOtJcpqzm X-Received: by 2002:a05:6214:4990:b0:6ab:6f32:1a66 with SMTP id 6a1803df08f44-6ab6f3229f9mr45014186d6.26.1716292236006; Tue, 21 May 2024 04:50:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716292235; cv=pass; d=google.com; s=arc-20160816; b=ru45Yh8JBCLpyG6opp0rRAU05EjxD6eXkDHh8Ra97JR449Hgtr28p0Mc0frekNz/OS 10gfj2dBJnyYrdKVijHw2s+3rC5NcQCuwqe+7SIEuL+J4FDhHz/NVic5es0QO1IKV2t8 hsLwht0WVUPHPyFHZmgMscUN+31K9jdDf+571AD4WKtkxMa/cJXKJtQtPV639LAT+1In HtGMlJsIU36DVjbsM5AuIyqiKjs5Ce42OdSNE2zhZxDuWLi81z1XBu2YBG9ri0P/lyRK 5DUQVMEftcfCXn2z1j4/syuPRC+9qyUSz8ohk0XK+TePWDws5galxNqg+t/phn5D8Qjz +lPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=DGC1ckiZkCk/XZCjCVHkpwlmQjUt2YFRxuhk7fYc4O4=; fh=/tocBNknTX0CBdcxdKGUdCq+MQUhEmbYJSr49AVQ1Gk=; b=EzjLF1mU48S0cjpdg27tHEGBXrcyC5QvgMiYKKY0gPZ6W7934AGMlFhUqkvakWeExJ l/IA61uJ0KF08frzsCFe6CwOpj2VaoUkiEU7l2caRedzAIzqSDtTBfEi2P2S1xdcOL3a 42MtZTJaxHE3g+XRyinxZhihyxW0n32eUC6g0Af0NrQEcAUcbdPAYiVT5QNK3HfjKrwj xP7V9w8uQIBvIEyIVQpL+OzFjfPatzaMeskeLDKlFgub7Uw/I9CcVBKadRqJsoVaOsx7 8vnMDP0+uqd90P0hs0Cn9+Mqf9jSRz2m0V9GaGa/g4FENQxJL6iEzSbTsl5kn4Hmv1EP Ntbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UEzghIrA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f29d5e1si277352166d6.252.2024.05.21.04.50.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 04:50:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UEzghIrA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-184904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A09211C20ED6 for ; Tue, 21 May 2024 11:50:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D90757BAE3; Tue, 21 May 2024 11:49:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UEzghIrA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12E717B3E1 for ; Tue, 21 May 2024 11:49:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716292156; cv=none; b=m5qH6BR1ih1Xd3OX/ujvGA9C2L4ASw7XX39EfHZWklYbuqPhmkPaq9Cg9pqGevIBj7KO2p+a2suC+gFZt9a1zESMY8xjkgZg/Hwjku7LMCH727Mz4BWNp2rNwFXMVpzcJxZuTY9xvmhPPrBkMAIYDokwA/fLVeNOxmgKcOdOXwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716292156; c=relaxed/simple; bh=i0Ih+w27uGb8ApwJcyy8K/wXBEe5AomGLiW94Z7779U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=rPkL0gn2F2hqPELW2sTHqbpFwfT66i/q4cRzOuFlfTk+aJRID66k+eDnpaEXCj2ak0jAmLeeq6crZF0sJgJHr/O7p3wTOvKnAWrJOn+LeeOZgGsG+hJW7T343v6SsDcPLWDxxNKowBm8wvNFzPB9bnXSkOwz9RSgvZwQL4iOnsM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UEzghIrA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3296AC4AF0E; Tue, 21 May 2024 11:49:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716292155; bh=i0Ih+w27uGb8ApwJcyy8K/wXBEe5AomGLiW94Z7779U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UEzghIrA4Xj8E+KJcv5rV4Fg3OTCWpAUwdbjYoPWT7gVOSRV6SQWe8m/tqWm/Z9j5 LOq8iVVDdA9rPeFRqn06kyALX/Y+uzSJpXu3xND6BGYItuRbp/7eyMzvWoJ0sru44g x4d1w6d0UF1SDAapeQK/4zR5j4SC+2FuKlwzMgObcR/47F8hL81htaSV4Rnu0ZDg4e fEo46pfirWJf5acsZojEOXkrupLGS8O0Hsh4ukXb9lgUJXlztR8hWESUBNwCG8lIb8 KgEaYeUmtF8QkqoLyQKmF8kJUAICzjbt8epkz2evCCZ1IFxRnNAHVmemOu17uDk2yJ LmoRZmxGAxPhQ== From: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= To: Alexandre Ghiti , Albert Ou , David Hildenbrand , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org, Oscar Salvador Cc: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Andrew Bresticker , Chethan Seshadri , Lorenzo Stoakes , Santosh Mamila , Sivakumar Munnangi , Sunil V L , linux-kernel@vger.kernel.org, linux-mm@kvack.org, virtualization@lists.linux-foundation.org Subject: [PATCH v3 7/9] riscv: Enable memory hotplugging for RISC-V Date: Tue, 21 May 2024 13:48:28 +0200 Message-Id: <20240521114830.841660-8-bjorn@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240521114830.841660-1-bjorn@kernel.org> References: <20240521114830.841660-1-bjorn@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Björn Töpel Enable ARCH_ENABLE_MEMORY_HOTPLUG and ARCH_ENABLE_MEMORY_HOTREMOVE for RISC-V. Signed-off-by: Björn Töpel --- arch/riscv/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index fe5281398543..2724dc2af29f 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -16,6 +16,8 @@ config RISCV select ACPI_REDUCED_HARDWARE_ONLY if ACPI select ARCH_DMA_DEFAULT_COHERENT select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION + select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM_VMEMMAP && 64BIT && MMU + select ARCH_ENABLE_MEMORY_HOTREMOVE if MEMORY_HOTPLUG select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE select ARCH_HAS_BINFMT_FLAT -- 2.40.1