Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2709703lqo; Tue, 14 May 2024 07:06:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmHwMFdwtxWqqtui6/Xeo0HcTFMLdFZw/zjmIRrchCpvLLwljrTLcQr5hO0gCG1xpkaB01Uccx6rPVraguPrwyt1WOjMHKKOk8n1g9OA== X-Google-Smtp-Source: AGHT+IHdFiUvbxf+AFMrTI8isqlOKG377oLFZDidX24hkbs7LeN4dgT13JR3Y5+/ria89ZUdRvPU X-Received: by 2002:a05:6214:5347:b0:6a0:b1a2:7540 with SMTP id 6a1803df08f44-6a16824c289mr161771906d6.61.1715695604174; Tue, 14 May 2024 07:06:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715695604; cv=pass; d=google.com; s=arc-20160816; b=eYBFSNxGNpa2DEoBVrq/hsuiEmdIOlPE2GlfGqSbwyU6oBX00Qi8zqYr5hCnmDyw94 nozKINvLEJI58ywTY4ai/opJvzCB+Bb9v4Uk85uyv4XfEsh5tdyJlqXMYADe+bQGrk9X 7DA2KhQHU8TcQmAp9SvSSWQ3kroYF0w4h2Wal1CTihCUEE/kBjJEI6YjmuAhlkFKM0Na zFui9kxlGGjuy7zYmmKQgyMq3EL3C1ivT+2X779WgdMy5hZKfNeHX+t7Fomn1NUkkNcn B68x9PMgV3rp6lX1cvtymMBMt28AK7hTDG+O4IdU+KuDV1Qf9x7VnBvvC09dWeIuD90U amlw== 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=/56fCBGstP/3s2ip8CZfHqAcktkqIv0lnVUx5MFhgcc=; fh=uMFliFihFxUmoRF8pjhRbK6V6DFjFNjH6h18EfWUiEU=; b=Z+ym8QY7dGkWwqOJp4jwL5IC7w2tAjyHh3A2u2vgoA8HyhEHEI12FvwdWcpGXOAnJV VOpeRPA4+mmki2H1l040JYA8ZK863HVz42NLn/sPP51JLUFsUgg5ZOawjTv6ZyJN76+6 iiUf/mPj6IaVp1gq9+73TYHRX5lkrobAt+qr80769cfJwzC2ZGOgBTGlFt1A/eu4iE9G n/QAxSDDUBxTEsobYBPtNNAVx3ArS7c4y5KcMtoaHSwrbDVesDOKYcU4V+Ar1h6ACQKL DYIYSnhw1ARjnR3w/fZ9lFT2mRWoiNDg6YuyR7JPRj5pb3VAaAMcc87bMYRPcqnCbZSh 80cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="T0t8ZY/k"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178785-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 d75a77b69052e-43e22fd508esi27827321cf.475.2024.05.14.07.06.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 07:06:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178785-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="T0t8ZY/k"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-178785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178785-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 343F61C21A42 for ; Tue, 14 May 2024 14:06:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 062FF145345; Tue, 14 May 2024 14:05:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T0t8ZY/k" 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 2ED40145340 for ; Tue, 14 May 2024 14:05:31 +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=1715695531; cv=none; b=SjfwkgelxU0suxkL1/5MVmGVUElwxkEux32cH/BngGZU2e/s+NDBGkjPGkT0biYw5T6XefUei9nlzWASWRXUAyRq1boXZza4saS0JSfljV+DDcmVl2+pZJSw01FVudil3/1KkDFvtEX4Krqv36f3XgNHW0JMafH1LleIJKHY+3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715695531; c=relaxed/simple; bh=0+IP68HpeOuix87ttHx6QCBPaROV37lTjVVbI88agM4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=FpAV/aMnGMm+WG5rlGL7Nosbt7MIUSXbt3Xvu8IXjSx19+t7WKlWoO9P+hUVyM+gMbDJEmyhbF9P1Gh8lNYonFbtCQM/F6f2SU6Euhb6WCvvTKI1lIxCO49dlQJnU9uy2ZodXj4lV+F0HZJYgov96hhGwBmT6k38tDtYFD3oEdo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T0t8ZY/k; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07D16C32781; Tue, 14 May 2024 14:05:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715695531; bh=0+IP68HpeOuix87ttHx6QCBPaROV37lTjVVbI88agM4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=T0t8ZY/krMImQEE1pbX37Lqd9otojKaCNU52Jdf+6IsnQPuwbjYf/17i4Dfm9wU/N cG8ZVIKuEChYfl+ArN6nlpcBLN94ethBeWZaRLHF2O26wOR/YjsM4iypPJlep2EOIs WnQduiMtRTX6HihYJYNGu+Zvx4ZfY6kifpj7mrb3c0qzOXrMObRZ+pyv1Di+53Y4BR yVzogJGugSULHDBgRoPYVq0AQf3NMvV11V+DCtVicxdz9nCIPrBc3BZjkQibvEOlkP LsDeyAlUKQ2u6jbtG/qyTzE50IDMatmyZSG5pDBfnCFVFZOhVoq3W+Su/3lVcXaMJx OvCy8N0USQs3Q== 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 Cc: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Andrew Bresticker , Chethan Seshadri , Lorenzo Stoakes , Oscar Salvador , Santosh Mamila , Sivakumar Munnangi , Sunil V L , linux-kernel@vger.kernel.org, linux-mm@kvack.org, virtualization@lists.linux-foundation.org Subject: [PATCH v2 6/8] riscv: Enable memory hotplugging for RISC-V Date: Tue, 14 May 2024 16:04:44 +0200 Message-Id: <20240514140446.538622-7-bjorn@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240514140446.538622-1-bjorn@kernel.org> References: <20240514140446.538622-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 6bec1bce6586..b9398b64bb69 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 && 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