HomeFreeBSD

snd_hda: Synchronize DMA buffers for the control path

Description

snd_hda: Synchronize DMA buffers for the control path

Make sure both sides of the DMA buffer memory accesses for the CORB and RIRB
(control buffers) 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.

This does not cover the data path of snd_hda. We don't have sync operations
for in-progress DMA buffers, to sync ranges of a map.

Reviewed By: mmel
Differential Revision: https://reviews.freebsd.org/D16517

Details

Provenance
jhibbitsAuthored on
Reviewer
mmel
Differential Revision
D16517: snd_hda: Enable bus_dmamap_sync operations, both new and uncommented
Parents
rS337042: MFC r322596:
Branches
Unknown
Tags
Unknown