HomeFreeBSD

x86 busdma_bounce: use malloc_domainset_aligned(9).

Description

x86 busdma_bounce: use malloc_domainset_aligned(9).

This stops busdma bounce making assumptions about alignment of malloc(9)
results, which are no longer true.

Also add assert that the result of malloc_aligned() fits into single
page, which is the assumption of the code.

Reported by: dim
Reviewed by: andrew, jah, markj
Tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28147

Details

Provenance
kibAuthored on Jan 14 2021, 4:02 AM
Reviewer
andrew
Differential Revision
D28147: Add malloc_domainset_aligned(9) and use it in x86 busdma bounce.
Parents
rG3b15beb30b3b: Implement malloc_domainset_aligned(9).
Branches
Unknown
Tags
Unknown