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
F112063199: D34763.diff
Wed, Mar 12, 7:27 AM
F112054973: D34763.diff
Wed, Mar 12, 4:31 AM
Unknown Object (File)
Sun, Mar 2, 7:52 PM
Unknown Object (File)
Sun, Mar 2, 5:20 PM
Unknown Object (File)
Fri, Feb 28, 6:28 PM
Unknown Object (File)
Sat, Feb 22, 11:12 PM
Unknown Object (File)
Dec 30 2024, 10:47 AM
Unknown Object (File)
Dec 5 2024, 7:15 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44980
Build 41868: arc lint + arc unit