From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 BA1A53CB2D0 for ; Wed, 3 Jun 2026 12:35:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780490151; cv=none; b=budBpWigncIkiQurSkG7m3BCHFDNqNOjyNH16AXMVZryJ88+sKAKT7U1OM806tXLodhcrh++iZeXpH2kSsJ7w1W4g6A5/DhxOcuXEh3SOO99XOa7S+us2TXOpxJarp/umLEB0/o98z8gWldwuEPk1iayNXbLCdfCqQBBZG2fbQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780490151; c=relaxed/simple; bh=KSECbkIib0eqBvexaXWtxA79EIVw3n09aUx74ayyuNw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=XxYXwGo7qy58+g0uOaji1qNxT0T5gCI+62X6FGq73yJ22PHq0cPMlsUAWdHAgXXnvOn/cm/4/1cv7S7d1aGVXkUpYA0mb9c6fNd75J/9YApzk0IUUzB1tL3zgD4TxASyVV0+7vFWg3N6NVKIJzFqyJGdstaKymeCWH96X8nZnSs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=mfH39SgR; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="mfH39SgR" Message-ID: <79118b43-78d2-42da-b552-ba8b5859fdc7@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1780490141; h=from:from:reply-to:subject:subject: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=/9sR5yqOCGgeVlEaAS9Soc3bRmMTmesBZYBPLglueNQ=; b=mfH39SgRWtk3Q6TdmUau9qBKNIw1TnDmHXu8H0o13+pe/fgdf3g2HcIbMceCONX/LZGySx 40rPnip78y3PfLSthqGi43RLqdSXW3D6qZOH8HFlJyqFeoL6mJwQne1WmYwMCiA+v20plk xiNVsRdSxIC8nWQpJX+NECvDOZAR7wk= Date: Wed, 3 Jun 2026 13:35:28 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v3 15/19] mm/hugetlb_vmemmap: Move bootmem HVO setup to early init To: Muchun Song Cc: Oscar Salvador , David Hildenbrand , Andrew Morton , Madhavan Srinivasan , Michael Ellerman , Mike Rapoport , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Nicholas Piggin , "Christophe Leroy (CS GROUP)" , "Ritesh Harjani (IBM)" , "Aneesh Kumar K.V" , linuxppc-dev@lists.ozlabs.org, Muchun Song References: <20260603120246.1572177-1-usama.arif@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Usama Arif In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 03/06/2026 13:24, Muchun Song wrote: > > > On 2026/6/3 20:02, Usama Arif wrote: >> On Tue,  2 Jun 2026 18:10:35 +0800 Muchun Song wrote: >> >>> Bootmem HugeTLB pages currently defer HVO setup to >>> hugetlb_vmemmap_init_late(), because the optimization needs zone >>> information. >>> >>> Now that zone initialization is available earlier, the bootmem HVO setup >>> can be done directly from hugetlb_vmemmap_init_early(). This lets >>> gigantic HugeTLB pages apply HVO as soon as they are allocated. >>> >>> Bootmem gigantic pages that span multiple zones are now filtered out >>> when they are allocated, so the remaining bootmem gigantic pages seen by >>> later hugetlb initialization are already zone-valid. As a result, >>> hugetlb_vmemmap_init_late() no longer needs to handle bootmem HVO setup. >>> >>> Signed-off-by: Muchun Song >>> --- Acked-by: Usama Arif