From mboxrd@z Thu Jan 1 00:00:00 1970 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 7D10A3655DB for ; Wed, 13 May 2026 18:27:04 +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=1778696825; cv=none; b=gGKgr+ZLl1swOhpSAHBtgJQH1BbJKvHtXETNEzCe9rZRvjPaHkgsbnHF7Qk7dA+uq5SNefl6beUrNDVWFITzxfyJ657AD/CWyf571y881QRkBxXmyCg9B2p/mgYRy4eBe3l44viQ1IetrZPV8ZLqMyuXQAXRbSigFg7lBAv1MB0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778696825; c=relaxed/simple; bh=wvJA/gueXge9DjMg6eJ31IWTWYvmErHXwLDRYVC/REQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sEa1MSu3STN+rnD9WxqSvQImWmKBvAn4bKCrL0hBVVw779+YenSQsz8XOExm+cr2LZbtJ9qEYaZ2xhwToF5fwZ6a/yBcfmkqd9PUCvA6PTFv1aZBpzKPtTG17SJboi5WzypbykhKXM8qtrfIJmbMmcd+oUSZrHuiYzar+6sx0Vg= 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=FhMJJ1Xk; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=UWfRRZTE; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=FhMJJ1Xk; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=UWfRRZTE; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="FhMJJ1Xk"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="UWfRRZTE"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="FhMJJ1Xk"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="UWfRRZTE" Received: from imap1.dmz-prg2.suse.org (unknown [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 2A4E1685BE; Wed, 13 May 2026 18:26:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778696817; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CMY3vjl7HirudEIlBL9RQXThipPsv2YSmm9hm08krqM=; b=FhMJJ1Xk2ZqhzR8+BOHNu26g3TctsKnhgOuylmu2zcMuQ9ewQgmJSWlsfYsCiplTR3qmed 8HXR8BmdcN2BnUs04wQUFnkyXxeh27JKHAbSnHLYxMXAxJs/KT6r4t4eqlGtp/DeAf+1OB d610aUqO/vVb7CB2bXQFdREMX9YB43U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778696817; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CMY3vjl7HirudEIlBL9RQXThipPsv2YSmm9hm08krqM=; b=UWfRRZTEAe5DK2MG9+vW7LYL4ie/9230tpzuWeR8U+Se0O0iSLkfpegh/KmTfRzPRONU27 sCnPCB7pFBrJLHAw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1778696817; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CMY3vjl7HirudEIlBL9RQXThipPsv2YSmm9hm08krqM=; b=FhMJJ1Xk2ZqhzR8+BOHNu26g3TctsKnhgOuylmu2zcMuQ9ewQgmJSWlsfYsCiplTR3qmed 8HXR8BmdcN2BnUs04wQUFnkyXxeh27JKHAbSnHLYxMXAxJs/KT6r4t4eqlGtp/DeAf+1OB d610aUqO/vVb7CB2bXQFdREMX9YB43U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1778696817; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CMY3vjl7HirudEIlBL9RQXThipPsv2YSmm9hm08krqM=; b=UWfRRZTEAe5DK2MG9+vW7LYL4ie/9230tpzuWeR8U+Se0O0iSLkfpegh/KmTfRzPRONU27 sCnPCB7pFBrJLHAw== 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 4A108593A9; Wed, 13 May 2026 18:26:56 +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 WgTxD3DCBGqKCAAAD6G6ig (envelope-from ); Wed, 13 May 2026 18:26:56 +0000 Date: Wed, 13 May 2026 20:26:54 +0200 From: Oscar Salvador To: Andrew Morton Cc: Muchun Song , David Hildenbrand , Muchun Song , Michael Ellerman , Madhavan Srinivasan , Lorenzo Stoakes , "Liam R . Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Nicholas Piggin , Christophe Leroy , Ackerley Tng , Frank van der Linden , aneesh.kumar@linux.ibm.com, joao.m.martins@oracle.com, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 00/69] mm: Generalize HVO for HugeTLB and device DAX Message-ID: References: <20260513130542.35604-1-songmuchun@bytedance.com> <20260513104640.b0f02b844c57f92bc954878e@linux-foundation.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=us-ascii Content-Disposition: inline In-Reply-To: <20260513104640.b0f02b844c57f92bc954878e@linux-foundation.org> X-Spam-Level: X-Spamd-Result: default: False [-8.30 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_CC(0.00)[bytedance.com,kernel.org,linux.dev,ellerman.id.au,linux.ibm.com,oracle.com,google.com,suse.com,gmail.com,kvack.org,lists.ozlabs.org,vger.kernel.org]; RCPT_COUNT_TWELVE(0.00)[21]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[] X-Spam-Flag: NO X-Spam-Score: -8.30 On Wed, May 13, 2026 at 10:46:40AM -0700, Andrew Morton wrote: > On Wed, 13 May 2026 21:04:28 +0800 Muchun Song wrote: > > > In this series, HVO is redefined as Hugepage Vmemmap Optimization: a > > general vmemmap optimization model for large hugepage-backed mappings, > > rather than a HugeTLB-only implementation detail. > > > > The existing code grew around the original HugeTLB-specific HVO path, > > while device DAX developed similar but separate vmemmap optimization > > handling. As a result, the current implementation carries duplicated > > logic, boot-time special cases, and subsystem-specific interfaces around > > what is fundamentally the same sparse-vmemmap optimization. > > > > This series generalizes that optimization into a common framework used > > by both HugeTLB and device DAX. > > > > The first few patches include some minor bug fixes found during AI-aided > > review of the current code. These fixes are not the main goal of the > > series, but the later refactoring and unification work depends on them, > > so they are included here as preparatory changes. > > > > The series then reworks the relevant early boot and sparse > > initialization paths, introduces a generic section-based sparse-vmemmap > > optimization infrastructure, switches HugeTLB and device DAX over to the > > shared implementation, and removes the old special-case code. > > > > ... > > > > 46 files changed, 743 insertions(+), 1812 deletions(-) > > Gulp. > > I think the first 15ish patches (little fixes and cleanups and > refactorings) are ready to go in immediately? I plan to have a (partial ) look at this tomorrow/Friday, but splitting this series in fixes-that-can-go-straight-away and the feature itself would make more sense and help ease the review. Head tends to spin a bit when the patchset grows beyond certain number of patches :-D. Would that be possible Munchun? -- Oscar Salvador SUSE Labs