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)
Thu, Jun 25, 3:17 AM
Unknown Object (File)
Tue, Jun 16, 3:05 AM
Unknown Object (File)
Mon, Jun 15, 11:29 AM
Unknown Object (File)
Fri, Jun 12, 12:10 AM
Unknown Object (File)
Sun, Jun 7, 2:42 PM
Unknown Object (File)
May 19 2026, 9:17 PM
Unknown Object (File)
May 17 2026, 8:13 AM
Unknown Object (File)
May 16 2026, 11:18 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44980
Build 41868: arc lint + arc unit