]> git.baikalelectronics.ru Git - 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)
commit5cbd810fea525341cede55f58c8f73c640857f55
tree3a97c9f15ca9dbde6f98b5822f71682219386711
parent21f3462fd76fd1feab182363335e4d3fd905171a
ASoC: rcar: revert IOMMU support so far

commit 1bb3b1670380 ("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