From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A1743CD343F for ; Thu, 21 May 2026 05:04:30 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4gLbtN71czz2xSN; Thu, 21 May 2026 15:04:28 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=95.215.58.179 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779339868; cv=none; b=UfL6lxTLNt1FX8NXCTPGtpzPKDC23upGb9togVnU5oRgA2hgiwWVsskOjzWDyE9TBHLb+Ds5LP7EDHspSSSq2ezSDrknCUb76Pzcn2fZYJJhvzyrfSdFpAbRGhsvnEtmHtZdIQDLHaaDmBN+Tyg9vJit6kIqLsvvAXZyalaFwg/9ObBMKPo0+haiXoyaoZUL+MSyTHsfAn+HIpTZqum/B1PTsjc8aircEQ7vXjbtifaivCbT/QaPp9hxIfVLg9/yOZpbu0979vi1wK/oxd/c0Rjx/Ef56U3PYUkub/net+j4PU7wHD5JZ4z9RhNjIj1kZsqnaYN0d2NdnHDb+ffJvQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1779339868; c=relaxed/relaxed; bh=udD7mWlkd64piA/1uV3JoogXR6FhB2/z0dczFUqXvp4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=NS+XT6Txq99q9SI8W6+6R5mtf5S2MI2UQx+1SeR4EoR6GQ7jtkIcVr6SyIzmlspvbNcWC3rNZRPkKjunEK4Dr2x+xmoFuQdymsES4QkRlCwFhqpGSXe1ZdloBGwwWVcHJfLqqVDAfbOeLmZmMuEvIJecjHyYjcXvPw5yeN+6jcn3hQSR3NfRXMNF4avudvm+kPycX3XpsB2t+IQZVmc04G6vKlQQrsJTBlmwU+BKFOv6a+1R0svEzXIQx7ZRogwKzALDan3zeSJtda816RM3wsEJ7ud2SIa6pZZY6qyOnlSQge5ioy3ZOoHUuMRnI1pA4GzJjOzfbbgUimepIpAl1A== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.dev; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=JULoXvF9; dkim-atps=neutral; spf=pass (client-ip=95.215.58.179; helo=out-179.mta1.migadu.com; envelope-from=lance.yang@linux.dev; receiver=lists.ozlabs.org) smtp.mailfrom=linux.dev Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=JULoXvF9; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linux.dev (client-ip=95.215.58.179; helo=out-179.mta1.migadu.com; envelope-from=lance.yang@linux.dev; receiver=lists.ozlabs.org) Received: from out-179.mta1.migadu.com (out-179.mta1.migadu.com [95.215.58.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4gLbtK0wnpz2xQD for ; Thu, 21 May 2026 15:04:23 +1000 (AEST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1779339843; 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=udD7mWlkd64piA/1uV3JoogXR6FhB2/z0dczFUqXvp4=; b=JULoXvF9rBrdxisl033+Bdt9vswxhIhpTxZDs+FlAdkNcEg3HR7Hnujny9LdUKuej4hxLJ iCfAds7VXyCqv+FOPxCKSMUoBQwrw59yeCxPcn5xYNCHYWFqJD7LIMlHe1JAMI794A1wmX BdOajcXyff9GzuTfn9ACSh0PO5UhgKo= From: Lance Yang To: david@kernel.org Cc: davem@davemloft.net, andreas@gaisler.com, rppt@kernel.org, akpm@linux-foundation.org, agordeev@linux.ibm.com, gerald.schaefer@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, borntraeger@linux.ibm.com, svens@linux.ibm.com, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, ljs@kernel.org, liam@infradead.org, vbabka@kernel.org, surenb@google.com, mhocko@suse.com, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Lance Yang Subject: Re: [PATCH 6/8] mm/bootmem_info: stop marking mem_section_usage as MIX_SECTION_INFO Date: Thu, 21 May 2026 13:03:39 +0800 Message-Id: <20260521050339.65872-1-lance.yang@linux.dev> In-Reply-To: <20260511-bootmem_info_prep-v1-6-3fb0be6fc688@kernel.org> References: <20260511-bootmem_info_prep-v1-6-3fb0be6fc688@kernel.org> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On Mon, May 11, 2026 at 04:05:34PM +0200, David Hildenbrand (Arm) wrote: >We never free the ms->usage data for boot memory sections (see >section_deactivate()). And to identify whether ms->usage was allocated >from memblock, we simply identify it by looking at PG_reserved. Yep, PageReserved() is already enough to tell that case apart :) >Consequently, there is no need to mark ms->usage as MIX_SECTION_INFO. >Let's just stop doing that. Right, MIX_SECTION_INFO doesn't add much here. For ms->usage, removal code doesn't use MIX_SECTION_INFO at all :) >Signed-off-by: David Hildenbrand (Arm) >--- LGTM, feel free to add: Reviewed-by: Lance Yang