Message ID | 20230512145737.985671-6-bjorn@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 DDB75C7EE26 for <linux-mm@archiver.kernel.org>; Fri, 12 May 2023 14:58:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 690186B007D; Fri, 12 May 2023 10:58:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 63F856B007E; Fri, 12 May 2023 10:58:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 507956B0080; Fri, 12 May 2023 10:58:15 -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 41EB16B007D for <linux-mm@kvack.org>; Fri, 12 May 2023 10:58:15 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id E92E7140E8B for <linux-mm@kvack.org>; Fri, 12 May 2023 14:58:14 +0000 (UTC) X-FDA: 80781908508.01.DD636E0 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf23.hostedemail.com (Postfix) with ESMTP id 3320E140018 for <linux-mm@kvack.org>; Fri, 12 May 2023 14:58:13 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=qQzflYqn; spf=pass (imf23.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683903493; 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=RHoSFbyGi0eW5u3jgCSI5Cav0nRvNf1gitJMGy1VIBE=; b=HtZHRfXoYFDLNu91jvtf+pj0DV8ZuURkvlg4NUcu4MWJWlJb7uXfeWuiTeMPlg0fOllS9d tKzXfsT2Q1k1pySmtrr5EWrEjezJZ7d4DOMwXVnr+kFR2Rqdmy8gxw8yr6j4Erj3cLATuO ScdnYBTDuVE6Vt2GL4HX5oiZVj2bPrE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1683903493; a=rsa-sha256; cv=none; b=BfdTkA5ds0IFzBukec5gW7GxwdVFHEWNAq5vyDxQE9f8xM8K6Nz988i/GcGAxg4FTqiRaO 53rBq9ekmCS0cRYKEEs915DKZyW6GrP+6NzkemBrzGML3el89Bnt5OfNV4gC6k+DRs1Hzq zmQIRkS3uAkjneODPON0/n2GHAL0Qg0= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=qQzflYqn; spf=pass (imf23.hostedemail.com: domain of bjorn@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=bjorn@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 573A061137; Fri, 12 May 2023 14:58:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5593AC4339E; Fri, 12 May 2023 14:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683903492; bh=Pna6hgXZPMsGHenSDkIIzlTOUDQrq5sDRKKv7+K0xpY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qQzflYqn6X1XwTYqDskdaUvkozpqmlKiTZ7sJZMcSXHaRn188NF1w4O4Gcg9IS09k oKwEhmh46ngeDtbZCpX71wFNrPl+kK3Y4p+ewFov1/UkgDjuFqVOTty0tiMMSElTNb yMuyw+QZmlU6JyZOeqC3QUttWJyV6GkHm73I62awiyhzXWWbPf3Lm1PjNuZoNrq0QB VApf+wgzHLHZ2xAEvvSCNJwzRHGvl/v5NT9pDPzmfOPYPJjDHZOW346ZF/PUDBnppQ xqqHnvoiJdxwAchWZf8t4aSIlDXEgYY06mtzf3klWqYHbjBSQG5Jhc3+1nVtzW5hkE X+9KbCvtUB98A== From: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@kernel.org> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, linux-riscv@lists.infradead.org Cc: =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= <bjorn@rivosinc.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, David Hildenbrand <david@redhat.com>, Oscar Salvador <osalvador@suse.de>, virtualization@lists.linux-foundation.org, linux@rivosinc.com, Alexandre Ghiti <alexghiti@rivosinc.com> Subject: [PATCH 5/7] riscv: Enable memory hot add/remove arch kbuild support Date: Fri, 12 May 2023 16:57:35 +0200 Message-Id: <20230512145737.985671-6-bjorn@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230512145737.985671-1-bjorn@kernel.org> References: <20230512145737.985671-1-bjorn@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Stat-Signature: ufa1rg3rchqp5shpi6jqghn4yi7aqowd X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 3320E140018 X-Rspam-User: X-HE-Tag: 1683903493-962761 X-HE-Meta: U2FsdGVkX1844OCxhLhpe2SRMliuO4eC2d6392H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UB1dbY4J6NLY++Y37IHLeV6t/k9o7ahhKEYVJb1qWI528TtvDq+7KWuem1YkXJY2+6Rp6kFfk+qJgCi+zo694decXgXdUjTFrAw3bY0jxL32D9VS3sOl4RU2vJ/eNFPWS/WxZ4DtXRyaUF5MvN1vGszYL2Aykw/IFCGExlzGRs1gBDygSYEG+eqe3bKxGC3XG+O0XdWF95Yyjsp5XjRM2g6paxM3mOtEROCBlE1N/KX5qbWQnoHMzRefgwGUG8AlgcG6bFl/o9kGGM3o128wnzlYhB/tV3flIEKfQae5YUsEsH 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: <linux-mm.kvack.org> |
Series |
riscv: Memory Hot(Un)Plug support
|
expand
|
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 348c0fa1fc8c..81b3f188f396 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -14,6 +14,8 @@ config RISCV def_bool y select ARCH_DMA_DEFAULT_COHERENT select ARCH_ENABLE_HUGEPAGE_MIGRATION if HUGETLB_PAGE && MIGRATION + select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && 64BIT && MMU + select ARCH_ENABLE_MEMORY_HOTREMOVE if SPARSEMEM && 64BIT && MMU select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE select ARCH_HAS_BINFMT_FLAT