Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2871090lqo; Tue, 14 May 2024 11:43:13 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUUkdsb5U/nhb4s4JO60RDnvJKUy7m+SkuyAUEIPETDiI/yTc62nFR1/JVWXcv1prPC+Zrmwb5EzwXV1tT87IYItaL1sEDPrVQjgLnR5A== X-Google-Smtp-Source: AGHT+IG9R73nFg0vWg571zoB+zKsle0ErGCVSBmCQJeSLAmQqcxmDDoURY+icNgr7lXoqAzs6PJH X-Received: by 2002:a17:907:320b:b0:a59:b177:22d7 with SMTP id a640c23a62f3a-a5a2d53b75emr1655617666b.8.1715712193133; Tue, 14 May 2024 11:43:13 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17be63a1si649604866b.709.2024.05.14.11.43.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 11:43:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179074-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=neutral (body hash did not verify) header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=TdYQVhB3; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-179074-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179074-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DE3E01F222B3 for ; Tue, 14 May 2024 18:43:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DC53180A8D; Tue, 14 May 2024 18:42:11 +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="TdYQVhB3" Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 DD973181D1B for ; Tue, 14 May 2024 18:42:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715712130; cv=none; b=GQHQTjfmV8td/5LRUDqfR0PtMMgod/BNkZEb6vJZRdCnJ5qHbNNg4G/ELWB0PTM8wC6MEvRnnqD9S34cUGXpNLqr9z/+KSIM+qcuq6cFT5Kd/Af+Uf/WJavXtGYDUDPFrxk+un8kx9cNbo7trbHO6LYPKHSh1gllh5RbWgz/ey4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715712130; c=relaxed/simple; bh=hCWkqLqTv3ItUHoFzIgYNgbikvR26cFj8jMx1uex/2w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=MsCpxkRWIRRC1oWtHbzjBJtslV2cdoK4+XMB35qWnIHzBiljroaRq0nHV/8X01Fljl2xv+99L2APdpOFJSGZGtOtYtJ2l3Q8YPl9K8sGTvRmriwpIS1NkbZwyAegdmOcmeM/oH33rNBuhuQjs8HS2LiH+YK2ucBwfV5QbT9xH+4= 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=TdYQVhB3; arc=none smtp.client-ip=209.85.208.41 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-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-572a93890d1so641934a12.3 for ; Tue, 14 May 2024 11:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1715712127; x=1716316927; 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=x6ryeUi7qTJoBD/62OgqeYM1G6ocyge361mggTj3ews=; b=TdYQVhB3Isq1myW6mEzdVYsmN5zUejFysulaz6CHYZowW1kr6qTBGjymR0TPEINdyh sgrlzpoXETSyf4XEWFjew5nTpbZKQ/AvtKUtBv83q7eUzLL/VhQH0YoIO6yttJwIqk6z X7QQLiSJvZTIjkfUV+oWX/ltYdP0yN1cHOZ2NhIqtnRvPd+GKbr1lCXGafvPiKg76GEg 50u0wEeA8bLcA7GmyixI+2RYvI/qCffNRMhrG7W/K+DWBNeqet2ESLytYG7mrC4I5aN1 W7FrUfWvw5bpYDQO6JniDh1a6uP7/kIEohPvsiVl6/rhDNHmFBiWnZwJ3TcjLMvgMy5W mmiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715712127; x=1716316927; 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=x6ryeUi7qTJoBD/62OgqeYM1G6ocyge361mggTj3ews=; b=VG88I+L+cYLJt8NJ1c5OOgngK9LG0w9xoEIzUJ4S1b/P9mxThFnLPegaheKicGaTYZ bR4nFFvSj1NzuRjxPUYHSuD6/vV4CmR2CozVsXI8LmTt7mO1DpSGCH/fKzqz6J8IoXM7 UFnAGLTYFm6kGYK1xNvnlZfq/Atwy2VeC6bmsUi83jUdqZqulI3j8hHjgsRVl8wE668H IXSsd1rxgPdPi9w2xG/vxgKecL7POCsTKc81JjNC5TlejZUDLL+QCXUsXnnOw++xQD9g MGZPZPSt06P7n+R3qXi2ByxujWXb1h9SVf5Vh4QanQd/NfPdU+SB27LIBEHyRrNOZEtc v2tA== X-Forwarded-Encrypted: i=1; AJvYcCXXp3v/udV1X36owu2STiHp7b99uNy3uBcfmBmUhxsSbHX/JsRlm9JDwghWuEYgzMGNdEzrM8J1y0F18LBBEzIhH0wej/++0vUtjMqo X-Gm-Message-State: AOJu0Yy6AhjT7joxGXe7nb+jYzxztgq028PtZQqZhU8w8wUnnAdSH9Et urWiCzsS74vNxFu++kOS8E4Nl6nHde0Y2911N+Gp2LXxJcOiP9pnNcz45nNNmm+1n48IsKscU6r YKRl8HxX/i9cPe4vn0LrodgNW+szI8UqFsxhywg== X-Received: by 2002:a50:9b05:0:b0:572:47be:a81e with SMTP id 4fb4d7f45d1cf-5734d707234mr10945519a12.40.1715712127280; Tue, 14 May 2024 11:42:07 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240514140446.538622-1-bjorn@kernel.org> <20240514140446.538622-7-bjorn@kernel.org> <87r0e4l0m6.fsf@all.your.base.are.belong.to.us> In-Reply-To: <87r0e4l0m6.fsf@all.your.base.are.belong.to.us> From: Alexandre Ghiti Date: Tue, 14 May 2024 20:41:56 +0200 Message-ID: Subject: Re: [PATCH v2 6/8] 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, =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 14, 2024 at 8:17=E2=80=AFPM Bj=C3=B6rn T=C3=B6pel wrote: > > Alexandre Ghiti writes: > > > On Tue, May 14, 2024 at 4:05=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 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 && MIGRA= TION > >> + select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && 64BIT && MMU > > > > I think this should be SPARSEMEM_VMEMMAP here. > > Hmm, care to elaborate? I thought that was optional. My bad, I thought VMEMMAP was required in your patchset. Sorry for the nois= e!