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
Unknown Object (File)
Fri, Feb 21, 12:31 PM
Unknown Object (File)
Sun, Feb 16, 8:26 AM
Unknown Object (File)
Sun, Feb 16, 7:17 AM
Unknown Object (File)
Sun, Feb 16, 4:09 AM
Unknown Object (File)
Sat, Feb 15, 10:29 PM
Unknown Object (File)
Sun, Feb 9, 8:42 AM
Unknown Object (File)
Sat, Feb 8, 1:04 AM
Unknown Object (File)
Tue, Feb 4, 8:28 AM

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 62305
Build 59189: 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.Tue, Feb 18, 9:05 PM