Page MenuHomeFreeBSD

cgem: improve usage of busdma(9) KPI
ClosedPublic

Authored by mhorne on Feb 18 2021, 5:11 PM.
Tags
None
Referenced Files
F165840226: D28775.diff
Mon, Aug 10, 4:10 AM
F165840224: D28775.diff
Mon, Aug 10, 4:10 AM
F165840222: D28775.diff
Mon, Aug 10, 4:10 AM
F165809348: D28775.diff
Sun, Aug 9, 10:34 PM
Unknown Object (File)
Fri, Aug 7, 1:38 PM
Unknown Object (File)
Fri, Aug 7, 4:21 AM
Unknown Object (File)
Sun, Aug 2, 5:21 AM
Unknown Object (File)
Sun, Aug 2, 3:23 AM
Subscribers

Details

Summary

BUS_DMA_NOCACHE should only be used when one needs to guarantee the
created mapping has uncached memory attributes, usually as a result of buggy
hardware. Normal use cases should pass BUS_DMA_COHERENT, to create an
appropriate mapping based on the flags passed to bus_dma_tag_create().

This should have no functional change, since the DMA tags in this driver are
created without the BUS_DMA_COHERENT flag.

Reported by: mmel

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37162
Build 34051: arc lint + arc unit