HomeFreeBSD

Bounce in more cases in the arm64 busdma

Description

Bounce in more cases in the arm64 busdma

We need to use a bounce buffer when the memory we are operating on is not
aligned to a cacheline, and not aligned to the maps alignment.

The former is to stop other threads from dirtying the cacheline while we
are performing DMA operations with it. The latter is to check memory
passed in by a driver is correctly aligned for the device.

Reviewed by: mmel
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D26496

Details

Provenance
andrewAuthored on
Reviewer
mmel
Differential Revision
D26496: Bounce in more cases in the arm64 busdma
Parents
rS366105: Ensure we always align and size arm64 busdma allocations to a cacheline
Branches
Unknown
Tags
Unknown