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

(cherry picked from commit 3532bcd282b3ba508f0b39560626983463512813)

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
rG6cc68da14658: libarchive: import changes from upstream
Branches
Unknown
Tags
Unknown