Re: [RFC PATCH] iommu: create direct_mapping after device attached

2016-07-20 Thread Joerg Roedel
On Wed, Jul 20, 2016 at 08:49:21PM +0800, honghui.zh...@mediatek.com wrote: > From: Honghui Zhang > > For mtk iommu, the domain_finalize was called in device attatch, the mtk > iommu iopgt ops was allocated and initialized in domain_finalize, the > iommu_group_create_direct_mappings would call th

[RFC PATCH] iommu: create direct_mapping after device attached

2016-07-20 Thread honghui.zhang
From: Honghui Zhang For mtk iommu, the domain_finalize was called in device attatch, the mtk iommu iopgt ops was allocated and initialized in domain_finalize, the iommu_group_create_direct_mappings would call the map interface to implement the map. If it's earlier than device attach, there would