Page MenuHomeFreeBSD

vm_phys_early_alloc(): Align to PAGE_SIZE; Review callers' alignment
AcceptedPublic

Authored by olce on Jan 23 2025, 5:16 PM.
Tags
None
Referenced Files
F153566309: D48637.id149793.diff
Tue, Apr 21, 11:28 PM
F153565919: D48637.id149793.diff
Tue, Apr 21, 11:24 PM
F153425801: D48637.id.diff
Tue, Apr 21, 2:40 AM
Unknown Object (File)
Mon, Apr 20, 11:40 PM
Unknown Object (File)
Sun, Apr 19, 7:59 AM
Unknown Object (File)
Thu, Apr 16, 5:20 PM
Unknown Object (File)
Sat, Mar 28, 11:42 AM
Unknown Object (File)
Mar 22 2026, 7:04 PM

Details

Reviewers
markj
dougm
alc
Summary

Switch alignment of vm_phys_early_alloc() to PAGE_SIZE as it is the most
used one.

Review all calling points and change those where greater alignment is
really needed to use vm_phys_early_alloc_ex().

In particular, in PowerPC's moea64_page_array_startup(), reduce the
requested alignment to what the hardware actually requires
('moea64_large_page_size') instead of the size of the page array portion
for a full domain.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61936
Build 58820: arc lint + arc unit

Event Timeline

olce requested review of this revision.Jan 23 2025, 5:16 PM
olce edited the summary of this revision. (Show Details)

Explicitly mention the change in moea64_page_array_startup() in the commit message.

Impacts of vm_phys_early_alloc_ex()'s change of signature.

Fix a small typo "bug" in mmu_radix_page_array_startup() (a 0 instead of a -1
for the domain value; however, this code is under #ifdef notyet, so not
active).

This revision is now accepted and ready to land.Feb 18 2025, 9:05 PM