Commit 7f2272f7 authored by Yang Qiang's avatar Yang Qiang Committed by guzitao
Browse files

efi/sw_64: work around adding memblock regions

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I73O7S



--------------------------------

BIOS released version before V100.50.2.4.0 will cause a warning message
as below:

Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>

------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at mm/memblock.c:579
memblock_add_range+0x3f0/0x450
Modules linked in:c
CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.180-xuelang-ge081d6a68bfa
Trace:
[<ffffffff80918940>] walk_stackframe+0x0/0x110
[<ffffffff818e4890>] dump_stack+0xc8/0x108
[<ffffffff818d7418>] __warn.part.3+0x110/0x15c
[<ffffffff80b547dc>] memblock_add_range+0x3ec/0x450
[<ffffffff80b548dc>] memblock_add+0x5c/0xb0
[<ffffffff81e285e4>] early_init_dt_add_memory_arch+0x12c/0x150
[<ffffffff81e87470>] efi_init+0x21c/0x314
[<ffffffff81e25178>] setup_arch+0x9c8/0xb18
[<ffffffff81e25164>] setup_arch+0x9b4/0xb18
[<ffffffff81e1ead4>] start_kernel+0xcc/0x9d4
[<ffffffff80a3726c>] pids_css_free+0x2c/0x30
[<ffffffff81e256e0>] sw64_start_kernel+0x64/0x7c
[<ffffffff80910034>] _stext+0x34/0x40

We commit this patch to work around this problem with respect to
original released version, however, there is a risk that some unexpected
faults may occur due to the failure of reserving memblocks.

Signed-off-by: default avatarYang Qiang <yangqiang@wxiat.com>
parent ebe8524a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment