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)
Sun, Oct 5, 5:03 AM
Unknown Object (File)
Sat, Oct 4, 5:16 AM
Unknown Object (File)
Sat, Sep 20, 2:34 PM
Unknown Object (File)
Sat, Sep 20, 8:37 AM
Unknown Object (File)
Sat, Sep 20, 7:50 AM
Unknown Object (File)
Sat, Sep 20, 7:42 AM
Unknown Object (File)
Sat, Sep 20, 6:31 AM
Unknown Object (File)
Thu, Sep 18, 4:53 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