Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2934478lqo; Tue, 14 May 2024 14:08:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX22k+i2CSbId4XQGbIayXqXBVQgXZH6FFcMLNR6MX4gqHXdYvbXkDA8LvGLoCXKuxsw5GxUKAwzJ/JM85b/uUdd7yTfSw4z98uRYCPtQ== X-Google-Smtp-Source: AGHT+IGAHml2fZqbvyv7Lur1TcG/FLsn27mO1TgqdjdzJNQqDD9bHbb/e9Ynn62WGvw+E0AJo9k9 X-Received: by 2002:a05:6a20:7350:b0:1af:d043:8714 with SMTP id adf61e73a8af0-1afddeef6eamr21826411637.0.1715720893057; Tue, 14 May 2024 14:08:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715720893; cv=pass; d=google.com; s=arc-20160816; b=bn4Ll1WUBitNmVyYNSV6g6B9dqPxFdMijuRpFbG1lKQ3E5ez2qhxsI/zbHdPqiiJOk 0KFPsFPtGS31ThxdLw/luEdYf55MZlUYvSYlUxBbdCs1+U9dYOoGYF7r3yGWm2nWzCYJ ermxBLxbMu/W6qX1Zw7NuZJbCns7yjBrYDwQ3wC4YGGE4espbENPfYwoPGAG0eJMFaOt fyp0aS7A9AqO4YC0KgIAVvbmyQEISpn1NNWGB8ISaCvg2nl251z36WJ3ysIYAgVj+smY onZG8zfHV7JVtzpXk1ushCfaQ4kqt6EexZKu3VZAM0k3Iz8Hn8u1q9TKqNvn0VQQxhjR tOyA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=qMfKixceV4qr83nNPK38FwuyfKkOiLi4Qx7Rk6Mapug=; fh=wEiMiW2Sn0oGK4b8yKj/oMA/PpvDwOj4jA+xBYuqt3Y=; b=qshwLM9Bn89YnxANyoLh2As7FGoSOKZPZvGSLWxDMcsbKrtjXUqhdIZJv0xtSUuamz GgZkPU83V6ogHlgLsMGzolQy/E14gAPvPsP35kJL6Z26sDnVuy7aWNEHpMq/fl7aHTuE oBn0Hg7veDySCnBYeYwpbhwZkxcLIOiarNJnzLBfMipxZw01FjTgI2y86Ea4bHxpFCss JQI+EV4lHx1L1SLwvzto5tAiMD9+rdH0fkKXs49d4we/Om3K//a1OtLxn5Tw1WpuUfnB YUklKGFfxpmG3DCmUqCqqds76joxztLGKVA9KjetruofgMzR91cpzVw2w4kmgoOWf03N pC2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hHft803e; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hHft803e; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-179169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412e1ef9fsi12131442a12.761.2024.05.14.14.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 14:08:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hHft803e; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hHft803e; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-179169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 79A3DB2200F for ; Tue, 14 May 2024 21:07:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0084181B93; Tue, 14 May 2024 21:06:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="hHft803e"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="wMWfzj2H"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="hHft803e"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="wMWfzj2H" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 355D41DFD1 for ; Tue, 14 May 2024 21:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715720808; cv=none; b=W0Q7qOqhE41wLQK9SqBt6V70zbAly6HO7GwZJd8VyZsjEDp4Ad+Tni4zSQ8fKrPZ47Il+AJSRkfshtz41sj9wPc28GNonpcxuP1O7DYpoZvPV6T9CpKwPfRzHyFOA2vOe4VqS8GNYKkVYMBNgyJfCgvqCV18zaICO97GnIKSsBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715720808; c=relaxed/simple; bh=gYCUW4tqnJup9F7JzVjpKyNyJPHk/tRp5a9F0VQighA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a283lbMfGBTRO97l+PcUt3J9j7QJTM4PMxnx6XbWQRb1ufFLed20pev43Ylo2CGSPXpciFXMNhbJTGQauMBDGYyhh/9FbAkM2ddxOxv86qnkbPOem9awB2X7GHct2yWi5O6PXuzb/yNyROqAtIud81iPmwzuovntyw4yaUtG2KQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=hHft803e; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=wMWfzj2H; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=hHft803e; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=wMWfzj2H; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 670E51FBAB; Tue, 14 May 2024 21:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1715720805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qMfKixceV4qr83nNPK38FwuyfKkOiLi4Qx7Rk6Mapug=; b=hHft803ecNlAb2YgHf6izR+uuw6VXIVGwgEFzoR3J5Fmy5mxhCGpMIwVP/QgnoAuADzfR8 3fBt2jrbi3GFXS3JqjP3piN11nmBrP+zcHEkBhDSoXVP0kPQC3xT8lJyOMt8SqNesYXY9U NeV9r4RpUeBPDj9g0R0N3D5bQ7WuMoY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1715720805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qMfKixceV4qr83nNPK38FwuyfKkOiLi4Qx7Rk6Mapug=; b=wMWfzj2HuRxxULRaIM/Wsg5cwWf03TJ88p+VC7oC193PoZn+9GVXkz0sGMRxpDwJhL28LZ O6TSPa/HhmUko3AA== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=hHft803e; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=wMWfzj2H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1715720805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qMfKixceV4qr83nNPK38FwuyfKkOiLi4Qx7Rk6Mapug=; b=hHft803ecNlAb2YgHf6izR+uuw6VXIVGwgEFzoR3J5Fmy5mxhCGpMIwVP/QgnoAuADzfR8 3fBt2jrbi3GFXS3JqjP3piN11nmBrP+zcHEkBhDSoXVP0kPQC3xT8lJyOMt8SqNesYXY9U NeV9r4RpUeBPDj9g0R0N3D5bQ7WuMoY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1715720805; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qMfKixceV4qr83nNPK38FwuyfKkOiLi4Qx7Rk6Mapug=; b=wMWfzj2HuRxxULRaIM/Wsg5cwWf03TJ88p+VC7oC193PoZn+9GVXkz0sGMRxpDwJhL28LZ O6TSPa/HhmUko3AA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 7E7D21372E; Tue, 14 May 2024 21:06:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QUEoHGTSQ2bjKAAAD6G6ig (envelope-from ); Tue, 14 May 2024 21:06:44 +0000 Date: Tue, 14 May 2024 23:06:43 +0200 From: Oscar Salvador To: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= Cc: Alexandre Ghiti , Albert Ou , David Hildenbrand , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org, =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= , 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: Re: [PATCH v2 6/8] riscv: Enable memory hotplugging for RISC-V Message-ID: References: <20240514140446.538622-1-bjorn@kernel.org> <20240514140446.538622-7-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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240514140446.538622-7-bjorn@kernel.org> X-Spam-Level: X-Spamd-Result: default: False [-6.50 / 50.00]; BAYES_HAM(-2.99)[99.95%]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_TWELVE(0.00)[17]; RCVD_TLS_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[rivosinc.com,eecs.berkeley.edu,redhat.com,dabbelt.com,sifive.com,lists.infradead.org,catalinasystems.io,gmail.com,ventanamicro.com,vger.kernel.org,kvack.org,lists.linux-foundation.org]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim,rivosinc.com:email]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 670E51FBAB X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Flag: NO X-Spam-Score: -6.50 On Tue, May 14, 2024 at 04:04:44PM +0200, Bj?rn T?pel wrote: > 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 Hopefully this should be SPARSEMEM_VMEMMAP. We are trying to deprecate memory-hotplug on !SPARSEMEM_VMEMMAP. And it is always easier to do it now that when the code goes already in, so please consider if you really need SPARSEMEM and why (I do not think you do). -- Oscar Salvador SUSE Labs