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)
Tue, Oct 29, 4:01 PM
Unknown Object (File)
Sep 22 2024, 1:54 AM
Unknown Object (File)
Sep 11 2024, 8:00 PM
Unknown Object (File)
Sep 11 2024, 8:00 PM
Unknown Object (File)
Sep 5 2024, 11:23 PM
Unknown Object (File)
Aug 13 2024, 7:23 AM
Unknown Object (File)
Jul 6 2024, 9:59 AM
Unknown Object (File)
Jun 26 2024, 8:46 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