diff options
author | Yong Wu <yong.wu@mediatek.com> | 2017-08-21 19:00:17 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-08-22 16:37:59 +0200 |
commit | 7c3a2ec02806a6f83270f34f8ab4e501e7d8ea69 (patch) | |
tree | 883982558e8cc0ae2e19ae29dc3b7f92f33459cb /drivers/iommu/mtk_iommu.h | |
parent | e6dec92308628cff5f1f8bd1bcdf87581c9dc676 (diff) |
iommu/mediatek: Merge 2 M4U HWs into one iommu domain
In theory, If there are 2 M4U HWs, there should be 2 IOMMU domains.
But one IOMMU domain(4GB iova range) is enough for us currently,
It's unnecessary to maintain 2 pagetables.
Besides, This patch can simplify our consumer code largely. They don't
need map a iova range from one domain into another, They can share the
iova address easily.
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/mtk_iommu.h')
-rw-r--r-- | drivers/iommu/mtk_iommu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/mtk_iommu.h b/drivers/iommu/mtk_iommu.h index 462e593b7d71..b4451a1c7c2f 100644 --- a/drivers/iommu/mtk_iommu.h +++ b/drivers/iommu/mtk_iommu.h @@ -57,6 +57,8 @@ struct mtk_iommu_data { struct iommu_device iommu; enum mtk_iommu_plat m4u_plat; + + struct list_head list; }; static inline int compare_of(struct device *dev, void *data) |