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)
Sat, Apr 20, 12:50 PM
Unknown Object (File)
Jan 30 2024, 11:11 PM
Unknown Object (File)
Dec 24 2023, 3:43 PM
Unknown Object (File)
Dec 22 2023, 9:56 PM
Unknown Object (File)
Dec 14 2023, 10:33 PM
Unknown Object (File)
Dec 9 2023, 7:55 PM
Unknown Object (File)
Nov 5 2023, 5:50 AM
Unknown Object (File)
Jun 20 2023, 5:13 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.