Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2860611lqo; Tue, 14 May 2024 11:19:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRNZcTJ6+jXTROtS84IYb8wjS3kq/N9WOKLhgg6hmtAgy8sfLo0V+5pwXA1jyPjZgkRpke2PC02WGlGslru+OAwhi+EgOnkMXVfJk8Nw== X-Google-Smtp-Source: AGHT+IFjszGBQr9kKm6tHHyh5+gh37u+Gqf91DaXAkOX8jwRHq0RAOsPvJJfijEUwnuapp94gw0E X-Received: by 2002:a05:6358:2486:b0:186:1864:81b1 with SMTP id e5c5f4694b2df-193bcfda663mr1413093955d.21.1715710760251; Tue, 14 May 2024 11:19:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715710760; cv=pass; d=google.com; s=arc-20160816; b=Vbp4H7q6swOZcEZ9kYGk+u6IZ4sNca9FFEb1o168a4msG2bVcok4Nhtu9DkC4ppQqh dAHqiNd7JgDg9BeRw7dIQmjmSykFR469eAyMVAvwVMPCp8q77135gIKPC7KlXB5w00Tw LXbUIlYxu+gu8klpInLdNLQUhqux1fGMnGxC3LJSqeOpF1PrP/XEDAmRuxxSzJNse8ES 35kRLckB8d4N9gfBPji+CpOPH1ka8Ff/K1opaA7XwwVYFwRWb3OGL12k55oP8yAmduOC IvXD6Ypczs9mPbKPD73SWrYWyt5EDKrERGx1d/yY1jBG0tdAAX6K2z7VQUGsCjvVe/cn KIEw== 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:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=jh46cXV1onfIoiUarQgjSmJp1vK5+8P+enF6SJVb70w=; fh=oZi5eKU0QjNjqhVy+lIrjjGGjaz7VxxV59RKsfbjyYw=; b=z1N7Ir8KL09cY/iyy3tkbtEp7R0i6Hxkn6mExoZcl52HzHj3mX/EhDR7DBGP7aPY5N +7qjtixMPsDhRmyG2M3cZLzakxwyGQyTpSDKDcyqeoxrL/yL9vmw1vIJfm6cG4zOA6xP HWirm8nM1XJmul4EZlOqWHaBc52DSN1k1X1Zopol//qbINtQfBJivJoovnis5opcX25u NL9Q4tI0+f+hky8e3qptaIcQEKpPnBJLly9I4Es7JnuFALrzbx90f9+bUOg5Q6neq8rH CAG/FZ/OizVjRqW2cz/sjvcu0NKpeTlSHBo54MT+Eb6cddut3dtQhis9US/djiKbcjrP sG1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u38RF5v7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341180d604si10370909a12.487.2024.05.14.11.19.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 11:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u38RF5v7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179050-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9D3D6B22238 for ; Tue, 14 May 2024 18:18:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 710B3181CE5; Tue, 14 May 2024 18:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u38RF5v7" 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 8FA01180A63 for ; Tue, 14 May 2024 18:17:10 +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=1715710630; cv=none; b=CWm0mulDZJ+SlgspCfZ9o4QGuI9P1njbYQ9pUMM4YBGZWgHmthf2x9ki/iPvh2Z0BD4KDFTaxJchsTN34ReB1HLP1dmafCd6GbvoX8jJ+48dMmBcQIdamwMGnD652/h43j9KUZhv8MS++auqwRVN8uqWoxcdk7pYMRrehX4DPL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715710630; c=relaxed/simple; bh=uzmplbv5D7iNpVC5UJ5KWf/1DYXGoJz78n4vD8h3RCI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ekDAZ/V5QN1GVfa8bIiQKYbwop2zstMXVpWPp0nzhD1g+clGPjFfGm4Xsxdgnx0UjlqCcjf166lENIuconztGWSbUcM7jmJDr9aR2jfZ/sPEwRujtM8UBsC/bdiDmdxY894jtNFlfM9H7gDLoW72DioofVeeOor1I9EymUJf6Y0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u38RF5v7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 144BBC32782; Tue, 14 May 2024 18:17:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715710630; bh=uzmplbv5D7iNpVC5UJ5KWf/1DYXGoJz78n4vD8h3RCI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=u38RF5v7U/Hj9CZLp1QiPYeERCnEJgoh07ZTr+NKJv4kYr6gTe+D0EMu11P6CY8WM /VfOglY7oR6cehdaIV8d5RfRqP3YkvRPS6ZuFytkN9ntM2JD3fnW9WVcVZX+YPfn1s V1JJgAkfMSmbtlqYqWLmuCpUHKlabxHwkmygy68bRl7MFYxLgZpGDfOSgKNIgHLLS6 mJphqO0rTj088VEgKiFLU+djfgj7UyrKYsvnbKp7uj9Pp5HYfONWTVRtwLk6i+/rs7 AKsfNR1dGyB4iibT2WBW09lq69oEBj3rFdo/HNilveyC2k1vfSie5VIQtaj4urzRoD 5YC3msP+vLJjQ== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Alexandre Ghiti 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 Subject: Re: [PATCH v2 6/8] riscv: Enable memory hotplugging for RISC-V In-Reply-To: References: <20240514140446.538622-1-bjorn@kernel.org> <20240514140446.538622-7-bjorn@kernel.org> Date: Tue, 14 May 2024 20:17:05 +0200 Message-ID: <87r0e4l0m6.fsf@all.your.base.are.belong.to.us> 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: quoted-printable 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 && MIGRATI= ON >> + 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.