Page MenuHomeFreeBSD

Fix a coherent bus check in the arm64 busdma
ClosedPublic

Authored by andrew on Apr 4 2022, 11:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 1:15 PM
Unknown Object (File)
Jan 14 2024, 4:56 PM
Unknown Object (File)
Jan 10 2024, 6:28 PM
Unknown Object (File)
Dec 12 2023, 2:10 AM
Unknown Object (File)
Nov 28 2023, 3:56 AM
Unknown Object (File)
Oct 21 2023, 1:14 PM
Unknown Object (File)
Oct 13 2023, 5:54 PM
Unknown Object (File)
Aug 15 2023, 9:24 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable