HomeFreeBSD

Fix a coherent bus check in the arm64 busdma

Description

Fix a coherent bus check in the arm64 busdma

In the arm64 busdma we have an internal flag to signal when a tag is
for a cache-coherent device. In this case we don't need to adjust the
size and alignment of allocated buffers to be within a cache line.

The cache line adjustment was incorrectly using the coherent flag
passed in to bus_dma_tag_create and not the internal flag. Fix it to
use the latter to reduce the memory usage slightly.

Reviewed by: bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34763

Details

Provenance
andrewAuthored on Apr 4 2022, 9:28 AM
Reviewer
bz
Differential Revision
D34763: Fix a coherent bus check in the arm64 busdma
Parents
rGbcd763b642ab: Move the arm64 DMAP creation to C
Branches
Unknown
Tags
Unknown