[PATCH v3 3/6] iommu/rockchip: support virtual iommu slave device

2016-06-16 Thread Tomasz Figa
Hi Shunqian, On Wed, Jun 15, 2016 at 9:04 PM, Shunqian Zheng wrote: > An virtual master device like DRM need to attach to iommu > domain to share the mapping with VOPs(the one with actual > iommu slaves). > DRM attaches to iommu and allocates buffers before VOPs enabled, > which means there may

[PATCH v3 3/6] iommu/rockchip: support virtual iommu slave device

2016-06-15 Thread Shunqian Zheng
An virtual master device like DRM need to attach to iommu domain to share the mapping with VOPs(the one with actual iommu slaves). DRM attaches to iommu and allocates buffers before VOPs enabled, which means there may have not real iommu devices can be used to do dma mapping. This patch creates a