Re: [PATCH v3 1/3] driver/base: Optimize memory block registration to reduce boot time

From: Donet Tom
Date: Sun May 11 2025 - 02:41:27 EST



On 5/10/25 2:40 AM, Andrew Morton wrote:
On Fri, 9 May 2025 21:10:34 +0530 Donet Tom <donettom@xxxxxxxxxxxxx> wrote:

Then we can drop the call to register_memory_blocks_under_node() from
register_one_node() and add creation of memory blocks to
node_dev_init(),
i.e.

node_dev_init()
   for_each_node(nid)
     __register_one_node(nid)
       for_each_mem_region()
         /* create memory block if node matches */
Yes exactly, that makes sense.
Hi Andrew and Mike

Based on the discussion so far, it is clear that the patch will work in all cases,
including when CONFIG_ARCH_KEEP_MEMBLOCK  is disabled. Just checking —
would you prefer to take this version, or should I send a v4?
My mind is a blank and perhaps some alterations were picked up along
the way so I think a full resend would be safer, please.


Sure. I will do that.

Thank you