Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3078393lqo; Tue, 21 May 2024 06:24:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWnFVJFK6PLFzUWIf/LK67WZv8o4u+UYJ877ZUDdLVEgBUmD6lxE0PAOXMvrERavpNTGGkSAJ0TbenB4yg4Gmn+thUELxOok5bB8MHfEg== X-Google-Smtp-Source: AGHT+IFG3nrx0a6YQWla/IKOCqhN5roGVRy6yFEY6A9y72mM3iEKYfmre/WQct4OKuxMODHGnBaX X-Received: by 2002:ac8:5d12:0:b0:43a:bcd9:1425 with SMTP id d75a77b69052e-43dfdb81cbbmr381631061cf.49.1716297849404; Tue, 21 May 2024 06:24:09 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43e12b82946si220609101cf.508.2024.05.21.06.24.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 06:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=Yh1ebM59; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-185005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185005-linux.lists.archive=gmail.com@vger.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 2660B1C21932 for ; Tue, 21 May 2024 13:24:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAA32770F2; Tue, 21 May 2024 13:24:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="Yh1ebM59" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 374A06EB5D for ; Tue, 21 May 2024 13:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716297841; cv=none; b=GrtJ1NR4I5rBLKYJRNen0DI8tWpsgxVuMjqcQ63kWtQDzqUm8KnPo5DNi9jD0OvASW2VZzn7DR606vGwI3RGObvkrJVvLFnwDTIgGMWLlfSnEsYr8QOC94cbgdZduveAseJri2tUQSwVzxitpNR19S2DiRXLzggR30kZ5lnEp3w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716297841; c=relaxed/simple; bh=HtMYnwo+7zhOK7FuVJSuWZ8y7KproGqd4tIRPgFjtdM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NLBDzJvm5ECdmEBEboiPAO/fRtRVjEJWAR4SnCoEdoJSStSS9yCcevvOgPLgdnjxnjW5b9U0wFcpTZKDO8h3NEqJbQRFGERlDUSIYrWS2kPvCS4kckDbAUeTqWCfhInrHwHZgv9mlSHpXk2lpKFLCsWZ1TOgz5vaSO1JdbdmwFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=Yh1ebM59; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a5a5c930cf6so863619966b.0 for ; Tue, 21 May 2024 06:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1716297838; x=1716902638; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ch94/MUKajfhml6j4NyfbEOexox9CsSjGOQusf6QZ7Y=; b=Yh1ebM59W3TYA2jLsOKMr2Du7Pw5d4zi4bkyPTo5Nr9YioKGEtQSqAu/c5sSLR29j5 iAXDm+K6F5hlTTeQTua2OJbRSJW66uiEuuDlLqek1GoqR+ZXyMz63mbYKMduV4fGMnO9 1jbjFMGXNFpbHLmKp8lG9vRopG6xLpr0ywAyZCYm+jeHE3aBoqr8IOK548G2y8vqI9aq 8jpG0jObG5nXGPblIWLCB5Rd0nK2+Tkr9BpSwQ8cYA3Iw9Jf7PkZ/Pw1q8g0zXo83ZVB glBag4xuU0ms6m9uESlJW/12HFnhxdJMqU3e9D4YOzYR/0B74ofZEy9yIq9fOUuPt229 CQQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716297838; x=1716902638; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ch94/MUKajfhml6j4NyfbEOexox9CsSjGOQusf6QZ7Y=; b=DGAyHDGFQC6qvT/bgXIuuMNrwl7mE2TRiHxWULq8oXWU8T6avdE3uFKoVWeCCByILS pNDEPRwUelvvEK1vLdkPrEXictk2sAxdMpBYhlafC4IuY+U4YixA9CY83Q165Gd9WdMe JdmAIMmiMZ/Fqg+8zUM41SZ+8qvcgK7P8YPWqc16WQjVc/9AgS7BEEy0ORIVUKskLtV/ witcF3sVZFKR1hYMe0zK/OixVt3dsXW3KcZBGbodniMTDcIotJjjhTKsNdNq1q/xE0cE MCJDAg75B3qC1QgmTGWvI78l3ju6lvQrmQMG0wPUgUs49r4awKGNfkTnrYzPaqz05dUM 6miA== X-Forwarded-Encrypted: i=1; AJvYcCXzZKIiaRRjO71Pam3NiQJTliCwPzbzCpHEuH6DDzKSYThINnZHjpE+N3VeCrXbDKpqoI+EDFXEUSqq3aOFLNfhalMbRS5O3nP0IEuF X-Gm-Message-State: AOJu0Yx0QgGh/Rp3ZZjTLHbDdspoJnFbV1FmRYWN5xpuV3Ldve1OChnM efy0CKQh+kVnTluSKMs7Pf9nTgEjEQ0Nmy0egHpucentNZ0awYj9/i6kDQQIWBWTE73KWCwgM/+ 7L8qz4ax0IYbfZPXZlZmi9MBCWoQiMmFYT2DhGQ== X-Received: by 2002:a17:906:ca8a:b0:a5c:df23:c9c6 with SMTP id a640c23a62f3a-a5cdf23d59cmr1178417366b.47.1716297838602; Tue, 21 May 2024 06:23:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240521114830.841660-1-bjorn@kernel.org> <20240521114830.841660-8-bjorn@kernel.org> In-Reply-To: <20240521114830.841660-8-bjorn@kernel.org> From: Alexandre Ghiti Date: Tue, 21 May 2024 15:23:47 +0200 Message-ID: Subject: Re: [PATCH v3 7/9] riscv: Enable memory hotplugging for RISC-V To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= Cc: Albert Ou , David Hildenbrand , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org, Oscar Salvador , =?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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 21, 2024 at 1:49=E2=80=AFPM Bj=C3=B6rn T=C3=B6pel wrote: > > From: Bj=C3=B6rn T=C3=B6pel > > Enable ARCH_ENABLE_MEMORY_HOTPLUG and ARCH_ENABLE_MEMORY_HOTREMOVE for > RISC-V. > > Signed-off-by: Bj=C3=B6rn T=C3=B6pel > --- > 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 && MIGRATIO= N > + select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM_VMEMMAP && 64BIT &= & MMU Not sure you need 64BIT && MMU here since ARCH_SPARSEMEM_ENABLE depends on MMU and SPARSEMEM_VMEMMAP_ENABLE is only enabled on 64BIT. > + 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 > But anyway, to me that does not require a new version so you can add: Reviewed-by: Alexandre Ghiti Thanks, Alex