Page MenuHomeFreeBSD

snd_hda: Enable bus_dmamap_sync operations, both new and uncommented
ClosedPublic

Authored by jhibbits on Jul 30 2018, 8:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 7:55 AM
Unknown Object (File)
Thu, Nov 28, 7:55 AM
Unknown Object (File)
Thu, Nov 28, 7:54 AM
Unknown Object (File)
Thu, Nov 28, 7:35 AM
Unknown Object (File)
Nov 23 2024, 9:21 PM
Unknown Object (File)
Nov 18 2024, 6:08 PM
Unknown Object (File)
Nov 4 2024, 8:02 PM
Unknown Object (File)
Oct 19 2024, 4:54 PM
Subscribers

Details

Summary

Make sure both sides of the memory accesses in snd_hda (device and CPU)
can see coherent memory. This is needed on weakly ordered architectures
including PowerPC and ARM. Patch originally by mmel, with small changes.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The commit message is a bit misleading. This patch ensures DMA coherency only for control structures but audio data buffers are not covered by required bus_dmamap_sync() operations. (We simply don't have right sync operation for syncing in progress DMA buffers - something like make buffer range snapshot before CPU read and make buffer range snapshot after CPU write).
Can you, please, elaborate this fact in commit message.

Otherwise, LGTM.

This revision is now accepted and ready to land.Aug 1 2018, 8:40 AM
This revision was automatically updated to reflect the committed changes.