Page MenuHomeFreeBSD

ttm_vm_page_alloc: use vm_page_alloc for pages without dma32 restriction
ClosedPublic

Authored by avg on Jun 12 2015, 2:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 5 2024, 6:05 AM
Unknown Object (File)
Jun 13 2024, 6:22 PM
Unknown Object (File)
Jun 8 2024, 11:39 PM
Unknown Object (File)
May 27 2024, 2:04 AM
Unknown Object (File)
Feb 14 2024, 9:01 PM
Unknown Object (File)
Feb 3 2024, 11:47 AM
Unknown Object (File)
Jan 5 2024, 5:37 AM
Unknown Object (File)
Aug 26 2023, 7:52 PM
Subscribers
None

Details

Reviewers
kib
Summary

This change re-organizes code a little bit to extract common pieces
of ttm_alloc_new_pages() and ttm_get_pages() into dedicated functions.
Also, for requests with address restrictions regular vm_page_alloc() is used.
Lastly, when vm_page_alloc_contig() fails we call VM_WAIT before calling
vm_pageout_grow_cache() to ensure that there is enough free pages at all.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

avg retitled this revision from to ttm_vm_page_alloc: use vm_page_alloc for pages without dma32 restriction.
avg updated this object.
avg edited the test plan for this revision. (Show Details)
avg added a reviewer: kib.
kib edited edge metadata.
This revision is now accepted and ready to land.Jun 12 2015, 8:23 PM