]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Add iova_region structure
authorYong Wu <yong.wu@mediatek.com>
Mon, 11 Jan 2021 11:19:07 +0000 (19:19 +0800)
committerWill Deacon <will@kernel.org>
Mon, 1 Feb 2021 11:31:19 +0000 (11:31 +0000)
commitca2452ec46f9c81c5cb628bc4bc40effabc730bb
treedffb0d35ef5e7622c2d56f39c869f2cc8d20e527
parent92fba7b7412be3279197375a54c1573d7cd59ea7
iommu/mediatek: Add iova_region structure

Add a new structure for the iova_region. Each a region will be a
independent iommu domain.

For the previous SoC, there is single iova region(0~4G). For the SoC
that need support multi-domains, there will be several regions.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20210111111914.22211-27-yong.wu@mediatek.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/mtk_iommu.c
drivers/iommu/mtk_iommu.h