From mboxrd@z Thu Jan 1 00:00:00 1970 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 5DFAC4DD6C6 for ; Wed, 13 May 2026 17:46:42 +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=1778694402; cv=none; b=f6IQtCSc/wbrZNgwU7XW6TH59M+e0IpLitl0sJWAdYBXMLzFob5Kl0A2nPLk/6Nq3SdUcFBDvhR93S0UylMAlRQqRxfGqTR9qC10Z5WWEfL4Z1hxsagGcJExXF0NqCwJ3eGJ7qvc9HjEF34nLEjk1PqVwyVOqvGQ2yZ7QoFB6Y8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778694402; c=relaxed/simple; bh=EvrM3uz6EOhLIcr/NdISliy5/4+6NtJJVBVMpjRPn7o=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=ZOyow3r2wUIRg8UeXFXV63byPcN2icGNCdHYZ5V9SB0NqwxCIAGE+DYRlS2H6L4x2tPKQ5/l+/przFldbKg8HvXhvdVArwc6drDMOCydJXO2j/eTOTh5VoI1pNKCfnl3np6fvWG7AiF9cFLiP1yx3GGAmBb9iSiYNWK58ken7I8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=BsfZzrgC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="BsfZzrgC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37904C19425; Wed, 13 May 2026 17:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1778694401; bh=EvrM3uz6EOhLIcr/NdISliy5/4+6NtJJVBVMpjRPn7o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BsfZzrgCAKpVLGW+zLYqSFHcPyq87YZ8baXJG3nnULrm3Z+RuAAKdtgbdqYF/xcPp LaIyzOwnzGxY2wcl2jy6+8nQwTZZV7ipeDmZATx+i3waJHlqutAHx5FH+Y8h+ipAOP Cwxqkkec6wE+E4hm4PRn631DaNoGQYC3o/VkP+gc= Date: Wed, 13 May 2026 10:46:40 -0700 From: Andrew Morton To: Muchun Song Cc: David Hildenbrand , Muchun Song , Oscar Salvador , 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: <20260513104640.b0f02b844c57f92bc954878e@linux-foundation.org> In-Reply-To: <20260513130542.35604-1-songmuchun@bytedance.com> References: <20260513130542.35604-1-songmuchun@bytedance.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit 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? Perhaps you could prepare such things as a separate series. Or tell me which ones are suitable and I'll fudge up a [0/N]?