Page MenuHomeFreeBSD

LinuxKPI: always use contig allocations in linux_alloc_kmem()
Needs ReviewPublic

Authored by bz on Thu, Sep 12, 9:25 PM.
Tags
None
Referenced Files
F98671076: D46661.diff
Fri, Oct 4, 7:24 AM
F98584903: D46661.id143297.diff
Thu, Oct 3, 10:55 PM
Unknown Object (File)
Wed, Oct 2, 10:18 PM
Unknown Object (File)
Wed, Oct 2, 3:10 PM
Unknown Object (File)
Wed, Oct 2, 2:04 AM
Unknown Object (File)
Tue, Oct 1, 5:52 PM
Unknown Object (File)
Sat, Sep 28, 3:37 PM
Unknown Object (File)
Sun, Sep 22, 4:22 AM
Subscribers

Details

Reviewers
jhb
Group Reviewers
linuxkpi
Summary

In linux_alloc_kmem() [used by *get_page*()] we always at least allocate
PAGE_SIZE and we want the allocation to be contiguous so it can be passed
to DMA. Always use kmem_alloc_contig() and only change the low argument
depending on the GFP_DMA32 flag being given or not.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 59470
Build 56357: arc lint + arc unit