summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/irq_remapping.c
diff options
context:
space:
mode:
authorShunqian Zheng2016-06-24 04:13:29 +0200
committerJoerg Roedel2016-06-27 14:50:08 +0200
commit4f0aba676735c653b4e739b760c1e66cd520d3e3 (patch)
tree69d0c011f1379b5b60c57fd822fd575f5fc5825d /drivers/iommu/irq_remapping.c
parentiommu/rockchip: Fix allocation of bases array in driver probe (diff)
downloadkernel-qcow2-linux-4f0aba676735c653b4e739b760c1e66cd520d3e3.tar.gz
kernel-qcow2-linux-4f0aba676735c653b4e739b760c1e66cd520d3e3.tar.xz
kernel-qcow2-linux-4f0aba676735c653b4e739b760c1e66cd520d3e3.zip
iommu/rockchip: Use DMA API to manage coherency
Use DMA API instead of architecture internal functions like __cpuc_flush_dcache_area() etc. The biggest difficulty here is that dma_map and _sync calls require some struct device, while there is no real 1:1 relation between an IOMMU domain and some device. To overcome this, a simple platform device is registered for each allocated IOMMU domain. With this patch, this driver can be used on both ARM and ARM64 platforms, such as RK3288 and RK3399 respectively. Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com> Signed-off-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/irq_remapping.c')
0 files changed, 0 insertions, 0 deletions