From patchwork Tue May 21 11:48:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= X-Patchwork-Id: 13669348 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71F09C25B74 for ; Tue, 21 May 2024 11:49:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2DABA6B00A6; Tue, 21 May 2024 07:49:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1781C6B00A7; Tue, 21 May 2024 07:49:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0185F6B00A8; Tue, 21 May 2024 07:49:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id C66436B00A6 for ; Tue, 21 May 2024 07:49:18 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 7BADEA238C for ; Tue, 21 May 2024 11:49:18 +0000 (UTC) X-FDA: 82142232396.06.16B712E Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf14.hostedemail.com (Postfix) with ESMTP id D191510000A for ; Tue, 21 May 2024 11:49:16 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=UEzghIrA; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716292156; h=from:from:sender: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:dkim-signature; bh=DGC1ckiZkCk/XZCjCVHkpwlmQjUt2YFRxuhk7fYc4O4=; b=zGk2clVLYLYLhO7WNIeXBgkacXHIMDA6kA777CnWagRjYDAYRl2UT7hLWO6PH0KSVX0/fB 7nnzEmuGHKdbvfZdHRzF2oM7bilhSf5MqNnhNeXwPM+e0RoQ/8pXW/wwGVXe9f5LoP7OBU Nn26JyOAnenR7aHhBmHaLUghKjI/z1g= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=UEzghIrA; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf14.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716292156; a=rsa-sha256; cv=none; b=VYRBp0/lr3mlkLXuxzDRZDVeE5a7ncChc1ZtOW4V3y6YCPa5q/mvuemR/HlHOfyljjKXio oVnjmCmQnAMlw2y7y5jU3DmYPI34c0XjC56Y9jmYfzgd3k3T4wUjEdKE3Kwkx07q9HvvHI cSyjOXGmQGWXjrQB0rsX+gSIw1N6JLA= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 20AB662213; Tue, 21 May 2024 11:49:16 +0000 (UTC) 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?b?QmrDtnJuIFTDtnBlbA==?= To: Alexandre Ghiti , Albert Ou , David Hildenbrand , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org, Oscar Salvador Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , 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> MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: D191510000A X-Stat-Signature: 9jffh5pc6shb4uoyo19s1yoeewqij6gp X-HE-Tag: 1716292156-556827 X-HE-Meta: U2FsdGVkX18qbkBJLI2ibb8pBUnqhqdPvMEdpvZinVGg+48etmSp/UkW7HEcBIKVDfRb44NXeuVYCX5fZdGnFPLjO4O5CAckyjXT03bWVTF3kd9UqZ5kUJtf01/2zzKTl4qnfcETw2feswho9qMP0zgCiOTnXLDTA/oUu+E5Ex6Q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//5TdkOggQYXlmikCrok5XrcnoTJsfz5p0SKubZb01L+cEyHxcYkSI+//aLvVeLSKu5TYlmf0QuHay1KgN8CqTi3uYU9K86vN347SxlwtQ7h 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: List-Subscribe: List-Unsubscribe: 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 Reviewed-by: Alexandre Ghiti --- 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