aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorVijendar Mukunda <[email protected]>2019-08-02 19:21:24 +0530
committerMark Brown <[email protected]>2019-08-02 19:04:43 +0100
commit30c21734d853dae99d05a5295a59b7e26ccd5135 (patch)
tree40b9570c6876f4912cabb011b9fd7893626fceb7 /lib/test_overflow.c
parent88639051017fb61a414b636dd0fc490da2b62b64 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions