Page MenuHomeFreeBSD

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

Authored by bz on Sep 12 2024, 9:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 12, 1:12 AM
Unknown Object (File)
Nov 12 2024, 3:43 PM
Unknown Object (File)
Oct 26 2024, 5:36 AM
Unknown Object (File)
Oct 24 2024, 12:48 AM
Unknown Object (File)
Oct 10 2024, 10:37 PM
Unknown Object (File)
Oct 4 2024, 5:07 PM
Unknown Object (File)
Oct 4 2024, 2:15 PM
Unknown Object (File)
Oct 4 2024, 7:24 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