From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: Wupeng Ma <mawupeng1@huawei.com>, <akpm@linux-foundation.org>,
<rppt@kernel.org>
Cc: <linux-mm@kvack.org>
Subject: Re: [PATCH v2] mm: disable kernelcore=mirror when no mirror memory
Date: Thu, 3 Aug 2023 11:06:12 +0800 [thread overview]
Message-ID: <3148c449-ecd5-91f4-cc48-7de22f4c04da@huawei.com> (raw)
In-Reply-To: <20230802072328.2107981-1-mawupeng1@huawei.com>
On 2023/8/2 15:23, Wupeng Ma wrote:
> From: Ma Wupeng <mawupeng1@huawei.com>
>
> For system with kernelcore=mirror enabled while no mirrored memory is
> reported by efi. This could lead to kernel OOM during startup since
> all memory beside zone DMA are in the movable zone and this prevents
> the kernel to use it.
>
> Zone DMA/DMA32 initialization is independent of mirrored memory and
> their max pfn is set in zone_sizes_init(). Since kernel can fallback
> to zone DMA/DMA32 if there is no memory in zone Normal, these zones
> are seen as mirrored memory no mather their memory attributes are.
>
> To solve this problem, disable kernelcore=mirror when there is no real
> mirrored memory exists.
>
> Suggested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> Suggested-by: Mike Rapoport <rppt@kernel.org>
> Signed-off-by: Ma Wupeng <mawupeng1@huawei.com>
Reviewed-by: Kefeng Wang <wangkefeng.wang@huawei.com>
next prev parent reply other threads:[~2023-08-03 3:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-02 7:23 Wupeng Ma
2023-08-02 18:44 ` Mike Rapoport
2023-08-03 3:06 ` Kefeng Wang [this message]
2023-08-03 17:53 ` Andrew Morton
2023-08-04 1:44 ` Kefeng Wang
2023-08-06 18:55 ` Yun Levi
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=3148c449-ecd5-91f4-cc48-7de22f4c04da@huawei.com \
--to=wangkefeng.wang@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=mawupeng1@huawei.com \
--cc=rppt@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox