linux_dsm_epyc7002/sound/soc/amd/raven
Vijendar Mukunda 30c21734d8
ASoC: amd: acp3x: use dma address for acp3x dma driver
We shouldn't assume CPU physical address we get from page_to_phys()
is same as DMA address we get from dma_alloc_coherent(). On x86_64,
we won't run into any problem with the assumption when dma_ops is
nommu_dma_ops. However, DMA address is IOVA when IOMMU is enabled.
And it's most likely different from CPU physical address when AMD
IOMMU is not in passthrough mode.

This patch fixes page faults when IOMMU is enabled.

Signed-off-by: Vijendar Mukunda <vijendar.mukunda@amd.com>
Link: https://lore.kernel.org/r/1564753899-17124-2-git-send-email-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-08-02 19:04:43 +01:00
..
acp3x-pcm-dma.c ASoC: amd: acp3x: use dma address for acp3x dma driver 2019-08-02 19:04:43 +01:00
acp3x.h ASoC: amd: Switch to SPDX identifier 2018-11-15 11:19:04 -08:00
chip_offset_byte.h ASoC: amd: Switch to SPDX identifier 2018-11-15 11:19:04 -08:00
Makefile ASoC: amd: Switch to SPDX identifier 2018-11-15 11:19:04 -08:00
pci-acp3x.c ASoC: amd: Fix a NULL vs IS_ERR() check in probe 2018-11-26 12:22:56 +00:00