Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp233813lqr; Wed, 5 Jun 2024 04:43:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPtOSNSFR31GpuziHDRbQi1tGLHDIO48vdmmzWd8K+H0IQ/zbbBDnLqddCLds1+wJI72GwcZFjEQs62/HPt0QgbAtlheR/yyLR5/lRKQ== X-Google-Smtp-Source: AGHT+IFhL3CFh1R5jqrOugYuJqi3EgtP34FRhy8I7aX6ru+CXMgO+ikYjetAO0OBX87JLcC2n05r X-Received: by 2002:a50:cd08:0:b0:572:a7fb:b6ad with SMTP id 4fb4d7f45d1cf-57a8b69cee2mr1471426a12.5.1717587814073; Wed, 05 Jun 2024 04:43:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717587814; cv=pass; d=google.com; s=arc-20160816; b=qDRQMNR2pexv7TRJfFtuDK0UVKrULJKrVVbFXgGWTnXq+yuY3j2xMZndDqGKAxZd2Z 6IDYk1Ny8SvPpa6nFH45t17/jQDoBg0qEipOoa16pvQmlFd7HEbLWhzCkdb5gJgPBWvh Oe7DShTGOFkm82DKmFZjkiwRYB10zAsyazFLevQnRojBpOX0mQ3jPkMdVDB/RBp3b+Kv +XyRecqSqURcwaa19lTQdvWrDds67QpTrKjGBnn9sVg2TY9SpteWvzC4nlnw1NhoOlKE KDPP14P2FJhcTi9b0/XbCgIRbP/nQ+FiERufoVqTLo1+QrSxtVN+H26HJWwm8rzzhgxW m5ow== 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=WkxblJ1gobgM+JXKqAse9j+xJDQ9TiFZ7lAYSIVKF8o=; fh=/tocBNknTX0CBdcxdKGUdCq+MQUhEmbYJSr49AVQ1Gk=; b=F7juFuSesRQ3qjzFTGxL8iUxumWu8lhF6Mo7W2rTXUqUQMYq2tb64sThJJVV6nonL2 MRBtfIiV2FuRFqE/BUVcWFKLJd/pWNizXuLlDMhf2vy09gti1DYiWiI9WoObOm9Hft7y wUN/sjnYttcy1QuctNMwZgA/laTBhjPehpZc68zRERIDdMMDWcO2sLXbnD7VyIlwH3iJ cqlGH3vS9YFgUJq5poZMahuU/nmfzQeucnkbhe5DNDAd7BxultwDgbBkfJVxUo8FIofg juao+3cVHzTWfp54yXJx73l/ZbNjoRyLqT79iTZqdsSim6ZVl1P1Z51kpHzL8GpRANNr oDBw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nB+tpFCK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31b819c9si6348318a12.110.2024.06.05.04.43.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 04:43:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nB+tpFCK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202283-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B90941F22597 for ; Wed, 5 Jun 2024 11:43:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECF14195FEA; Wed, 5 Jun 2024 11:41:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nB+tpFCK" 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 249E1193078 for ; Wed, 5 Jun 2024 11:41:53 +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=1717587713; cv=none; b=u7sq86NVxFjRB4G/2vwIDl28zK1xO+sIE4UksPSu5JEwj4fk8pBkkrUmiD1oz1e+OIEw2mfW/i3ibMJPTGaNLxVsNEhpZejt52leYHeerQRE3hWeEp9hpnsuFmn1YAC9CwaVNOqA6WNJpiXd5FDGZArlBDvqR6cNT5R1wlA4GdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717587713; c=relaxed/simple; bh=L6J14KqpfXLFzLpqo0wTWwklGSKZlK82ek5ghR0epQs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TJwKQwst7/dqYSLWSnxMU+iFUstIC5vkYCrTHbnD0hAfu+P79HZv6o5pnGhe4ghyW9j/D0XBW51FzX6FUbS6WjdoGSvVwmMtaWfJ8nuwdVQk7Ey6D3cTEOiSrxqJfhfPS0whXaWGw28QqKgbbkO1aTFGBCNVU5XvMu80VSA66wE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nB+tpFCK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB9B2C4AF09; Wed, 5 Jun 2024 11:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717587713; bh=L6J14KqpfXLFzLpqo0wTWwklGSKZlK82ek5ghR0epQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nB+tpFCKWoin2Io1tYNh/CpS+b2KOE96Igf2M+PajeAiqjcAwFpQdkIQ1roxi2gFS ybrJ6R3VNsPGfwYETuovRb8MmTUuzJYXMZkdk5PkklSmzl/mvUssCtdc8sq6Nn+608 Msnb1PAycmOOBfXZz9FDQCndMLunP+YGOi1F1+qIlP3WKOUwv5u+jFCiovPNw7bR/f mDZYBsTyIzCYUGva5g5QSNHBpM7IOMr7msMbj2JmcxdV3QiHfU6VxtsKG0bPV/tDWi hYQBxxJxkhebALDI+e5GZRgBFT6W8RxUwONIgOVjjb2cDwx5omNGuOKTPYICI4q2OY 63QpUaPxQzQfw== 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 v4 08/11] riscv: Enable memory hotplugging for RISC-V Date: Wed, 5 Jun 2024 13:40:51 +0200 Message-ID: <20240605114100.315918-9-bjorn@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605114100.315918-1-bjorn@kernel.org> References: <20240605114100.315918-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. Reviewed-by: Alexandre Ghiti Signed-off-by: Björn Töpel --- arch/riscv/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 0525ee2d63c7..8d860ad3b171 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 + 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 @@ -46,6 +48,7 @@ config RISCV select ARCH_HAS_UBSAN select ARCH_HAS_VDSO_DATA select ARCH_KEEP_MEMBLOCK if ACPI + select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE if 64BIT && MMU select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT select ARCH_STACKWALK -- 2.43.0