From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-69.mta0.migadu.com [91.218.175.69]) (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 6C9833FF8B0 for ; Tue, 25 Aug 2026 12:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787662217; cv=none; b=QFbJHfDjYi40168ASEBCc1pr2S3MKvX578SgCj74Y1FYkleXw5fYP5ln16R+O3c7FFi+gt0FZVDMamMwbR7MuYA77Wa+81TchoYy1qOTi9BHZeKClKvzOI/4L2z2PWjVQti259cTai3llIcmigUpIEIA6nwD7fiv24iSDStOkjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787662217; c=relaxed/simple; bh=/JEQv7N3pOC5lUkF3ZduCEmcdMDk6jtj3oMONbUDQz0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W6MIGvaOC0CBb4qYjDn6OHk6vai+JhTgtr8tlzsNO0Enggl8rcE6WUUPeAsh0frtrSJAB/HHNLvnAe/HvYHhXbypZ7ZO+eRzb2AOWn7lQR6sQ3pneHLdwKLWRyne/9OyU522uTllgWmMJSDWPgLUExTo28G5vVNEURsOyMKX48s= 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=IWvGCjkF; arc=none smtp.client-ip=91.218.175.69 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="IWvGCjkF" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=/JEQv7N3pOC5lUkF3ZduCEmcdMDk6jtj3oMONbUDQz0=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1787662214; v=1; x=1788267014; b=IWvGCjkFplV1rx38zEDs3FADzm98J/nxCftTnVY19JDTEBIlLgGk5867bW54GZy2f68m80z5 VjfXBW3e+iLRHiVk79+1Bqf8XekIHgVws0FHYv2bDqpvt10C8PQzxt+E5O4fml9/MasUdsW8hUp xwn/0asszVuPUVAcnZhMsPe8= X-Envelope-To: linux-kernel@vger.kernel.org Received: from [10.254.116.35] (101.126.56.83) by smtp.migadu.com with ESMTPS id 3f54450150a7adc7; Tue, 25 Aug 2026 12:50:04 +0000 X-Mizu-Trace-ID: 3f54450150a7adc7 X-Migadu-Flow: FLOW_OUT Message-ID: Date: Tue, 25 Aug 2026 20:49:45 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 09/17] mm/sparse: initialize memory sections earlier To: Muchun Song , Andrew Morton , Oscar Salvador , David Hildenbrand Cc: Mike Rapoport , Vlastimil Babka , Lorenzo Stoakes , Michal Hocko , David Laight , "Liam R . Howlett" , Suren Baghdasaryan , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song References: <20260825084608.47437-1-songmuchun@bytedance.com> <20260825084608.47437-10-songmuchun@bytedance.com> From: Qi Zheng In-Reply-To: <20260825084608.47437-10-songmuchun@bytedance.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/25/26 4:46 PM, Muchun Song wrote: > Upcoming HugeTLB bootmem changes need sparsemem section metadata before > the HugeTLB bootmem allocation path runs. The memory sections are > initialized from sparse_init(), which is called too late for that setup. > > Move the code that initializes sparsemem section metadata for memblock > ranges into mm_core_init_early(), before free_area_init() and the HugeTLB > bootmem setup. Rename the helper to sparse_sections_init() so the new > caller describes the sparsemem-specific initialization step. > > This is a preparatory change. > > Signed-off-by: Muchun Song > Reviewed-by: Mike Rapoport (Microsoft) Acked-by: Qi Zheng Thanks, Qi