mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC Patch 0/3] mm/mm_init: fix and cleanup mirrored_kernelcore
@ 2026-06-23  9:23 Wei Yang
  2026-06-23  9:23 ` [RFC Patch 1/3] mm/mm_init: adjust overlapped zone for mirror memory too Wei Yang
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Wei Yang @ 2026-06-23  9:23 UTC (permalink / raw)
  To: rppt, akpm, izumi.taku; +Cc: linux-mm, linux-kernel, david, yuan1.liu, Wei Yang

When reviewing patch set "mm/memory_hotplug: optimize zone contiguous check
when changing pfn range" [1], we notice mirrored_kernelcore introduced some
special case to handle.

While during the discussion and test, it shows current mirrored_kernelcore
implementation breaks other memmap_init() behavior:

  * disturbs defer_init()
  * some Movable zone range would be initialized twice

The reason is Zone Movable and Zone Normal overlaps and current logic doesn't
handle it well.

As Yuan shows in [2], physical overlapped zone seems not exist in practice. If
remove the possibility of overlapped zone, problem could be solved. And also
could benefit zone contiguous optimization, IIUC.

Patch [1]: remove the overlapped zone, which fix the above two problem
Patch [2]: remove overlap_memmap_init() as there is no overlapped zone, but
           record current double initialize problem for reference
Patch [3]: remove absent pages calculation for mirrored_kernelcore

[1]: https://lore.kernel.org/all/20260520093457.3719960-1-yuan1.liu@intel.com/T/#u
[2]: https://lore.kernel.org/all/20260520093457.3719960-1-yuan1.liu@intel.com/T/#mb0bd07ffd562a5b029f0f07751e580ca339c5b51

Cc: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: Yuan Liu <yuan1.liu@intel.com>

Wei Yang (3):
  mm/mm_init: adjust overlapped zone for mirror memory too
  mm/mm_init: remove overlap_memmap_init() as no overlapped zone
  mm/mm_init: remove special handling absent pages for
    mirrored_kernelcore

 mm/mm_init.c | 58 ++--------------------------------------------------
 1 file changed, 2 insertions(+), 56 deletions(-)

---

This series is based on one proposed fix for node_spanned_pages:

https://lore.kernel.org/linux-mm/20260622022403.16375-1-richard.weiyang@gmail.com/

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-25  6:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-23  9:23 [RFC Patch 0/3] mm/mm_init: fix and cleanup mirrored_kernelcore Wei Yang
2026-06-23  9:23 ` [RFC Patch 1/3] mm/mm_init: adjust overlapped zone for mirror memory too Wei Yang
2026-06-23  9:23 ` [RFC Patch 2/3] mm/mm_init: remove overlap_memmap_init() as no overlapped zone Wei Yang
2026-06-23  9:23 ` [RFC Patch 3/3] mm/mm_init: remove special handling absent pages for mirrored_kernelcore Wei Yang
2026-06-25  6:36 ` [RFC Patch 0/3] mm/mm_init: fix and cleanup mirrored_kernelcore David Hildenbrand (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®