Bug 3913 - 64k页add_default_hugepagesz添加的huge page size错误
Summary: 64k页add_default_hugepagesz添加的huge page size错误
Status: NEW
Alias: None
Product: ANCK 4.19 Dev
Classification: ANCK
Component: ARM (show other bugs) ARM
Version: unspecified
Hardware: aarch64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: fghui_kernel
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-01 10:56 UTC by jiaoff
Modified: 2023-02-01 11:44 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jiaoff 2023-02-01 10:56:02 UTC
Description of problem:
64k页的HugeTLB registered 128 GiB page size错误

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


How reproducible:
将内核编译为64K页

Steps to Reproduce:
1.将内核编译为64K页
2.开机启动
3.通过dmesg|grep -i huge查看结果

Actual results:
[    0.123329] HugeTLB registered 128 GiB page size, pre-allocated 0 pages
[    0.123333] HugeTLB registered 512 MiB page size, pre-allocated 0 pages

Expected results:
[    0.123099] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.123102] HugeTLB registered 512 MiB page size, pre-allocated 0 pages

Additional info:
Comment 1 jiaoff 2023-02-01 11:44:56 UTC
该问题由于"1d3401428797 arm64/mm: Redefine CONT_{PTE, PMD}_SHIFT"这次提交引入
comit 1d3401428797修改了CONT_PTE_SHIFT的值,但是在使用CONT_PTE_SHIFT的add_default_hugepagesz()函数中,并没有将对应使用修改

修改pr:
https://gitee.com/anolis/cloud-kernel/pulls/1122