Bug 23752 - __e820_range_add函数报错
Summary: __e820_range_add函数报错
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: mm (show other bugs) mm
Version: 5.10.y-17
Hardware: All Linux
: P3-Medium S2-major
Target Milestone: ---
Assignee: baolinwang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-15 15:45 UTC by wangchuanguo_lc
Modified: 2025-10-16 11:20 UTC (History)
1 user (show)

See Also:


Attachments
dmesg日志 (31.14 KB, text/plain)
2025-08-15 15:45 UTC, wangchuanguo_lc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wangchuanguo_lc inspur_group 2025-08-15 15:45:47 UTC
Created attachment 1367 [details]
dmesg日志

Description of problem:
系统启动的时候报错:too many entries; ignoring [mem 0x70695000-0x70696fff]

Version-Release number of selected component (if applicable):


How reproducible:
插上CXL设备,循环启动,偶现


Actual results:
系统启动的时候报错:too many entries; ignoring [mem 0x70695000-0x70696fff]

Expected results:
无报错

Additional info:
Comment 1 wangchuanguo_lc inspur_group 2025-08-15 15:49:56 UTC
有部分数据无法写入到E820表里,系统能正常启动。
来自UEFI的内存分片数量应该是320+25条(因为报错了25次)
Comment 2 zelin alibaba_cloud_group 2025-10-16 10:33:38 UTC
by designed, 因为内核的e820 table当前最大可以存放320条entries,除了默认的还会把boot parameter里传入的entries append到e820 table entries的末尾。这里可以推测是bios通过boot parameter传入的entries过多。 需要评估是否把config_nodes_shift扩大以支持更多的entries。
Comment 3 zelin alibaba_cloud_group 2025-10-16 11:20:40 UTC
(In reply to zelin from comment #2)
> by designed, 因为内核的e820 table当前最大可以存放320条entries,除了默认的还会把boot
> parameter里传入的entries append到e820 table entries的末尾。这里可以推测是bios通过boot
> parameter传入的entries过多。 需要评估是否把config_nodes_shift扩大以支持更多的entries。

另外确认了一下不能在config里扩展nodes_shift,否则会导致page flags不够用。可以考虑直接增大e820 table的entries size。 可以转交给x86的同学评估一下