From: Mike Rapoport <rppt@kernel.org>
To: Wei Yang <richard.weiyang@gmail.com>
Cc: akpm@linux-foundation.org, izumi.taku@jp.fujitsu.com,
linux-mm@kvack.org, Yuan Liu <yuan1.liu@intel.com>
Subject: Re: [PATCH] mm/mm_init: fix incorrect node_spanned_pages
Date: Mon, 22 Jun 2026 16:58:47 +0300 [thread overview]
Message-ID: <ajk_l8cT0mIyhs4r@kernel.org> (raw)
In-Reply-To: <20260622022403.16375-1-richard.weiyang@gmail.com>
Hi Wei,
On Mon, Jun 22, 2026 at 02:24:03AM +0000, Wei Yang wrote:
> Current node_spanned_pages is got as a summation of all zone's spanned page
> in calculate_node_totalpages(). Generally this is good, but if we use
> kernelcore=mirror, it is would be wrong.
>
> As we already passed in node_start_pfn and node_end_pfn, fix this by get it
> from (node_start_pfn - node_end_pfn) directly.
>
> Fixes: 342332e6a925 ("mm/page_alloc.c: introduce kernelcore=mirror option")
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
> Cc: Yuan Liu <yuan1.liu@intel.com>
I queued it for now, will push to one of memblock branches after merge
window closes.
> ---
> mm/mm_init.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
--
Sincerely yours,
Mike.
prev parent reply other threads:[~2026-06-22 13:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-22 2:24 [PATCH] mm/mm_init: fix incorrect node_spanned_pages Wei Yang
2026-06-22 13:58 ` Mike Rapoport [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ajk_l8cT0mIyhs4r@kernel.org \
--to=rppt@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=izumi.taku@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=richard.weiyang@gmail.com \
--cc=yuan1.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.