]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ASoC: rcar: revert IOMMU support so far
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 16 Nov 2017 04:36:51 +0000 (04:36 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 16 Nov 2017 11:02:04 +0000 (11:02 +0000)
commitc20c6704bf2dafaba0d90c8310ef9e919fe4d2e2
tree3a97c9f15ca9dbde6f98b5822f71682219386711
parentdf6a3e245541ac61cc99f2887437e0a43dd08f2e
ASoC: rcar: revert IOMMU support so far

commit 4821d914fe74 ("ASoC: rsnd: use dma_sync_single_for_xxx() for
IOMMU") had supported IOMMU, but it breaks normal sound "recorde"
and both PulseAudio's "playback/recorde". The sound will be noisy.

That commit was using dma_sync_single_for_xxx(), and driver should
make sure memory is protected during CPU or Device are using it.
But if driver returns current "residue" data size correctly on pointer
function, player/recorder will access to protected memory.

IOMMU feature should be supported, but I don't know how to handle it
without memory cache problem at this point.
Thus, this patch simply revert it to avoid current noisy sound.

Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Tested-by: Ryo Kodama <ryo.kodama.vz@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c
sound/soc/sh/rcar/dma.c