2011-06-02 06:48:05 +07:00
|
|
|
obj-$(CONFIG_IOMMU_API) += iommu.o
|
2013-08-16 00:59:23 +07:00
|
|
|
obj-$(CONFIG_IOMMU_API) += iommu-traces.o
|
2014-06-13 05:12:24 +07:00
|
|
|
obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
|
2015-10-02 02:13:58 +07:00
|
|
|
obj-$(CONFIG_IOMMU_DMA) += dma-iommu.o
|
2014-11-15 00:16:49 +07:00
|
|
|
obj-$(CONFIG_IOMMU_IO_PGTABLE) += io-pgtable.o
|
2014-11-15 00:18:23 +07:00
|
|
|
obj-$(CONFIG_IOMMU_IO_PGTABLE_LPAE) += io-pgtable-arm.o
|
2015-01-13 00:51:13 +07:00
|
|
|
obj-$(CONFIG_IOMMU_IOVA) += iova.o
|
2012-06-25 18:23:54 +07:00
|
|
|
obj-$(CONFIG_OF_IOMMU) += of_iommu.o
|
2011-06-02 07:20:08 +07:00
|
|
|
obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o msm_iommu_dev.o
|
2011-06-14 21:44:25 +07:00
|
|
|
obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o
|
2011-11-09 18:31:15 +07:00
|
|
|
obj-$(CONFIG_AMD_IOMMU_V2) += amd_iommu_v2.o
|
2013-06-25 00:31:25 +07:00
|
|
|
obj-$(CONFIG_ARM_SMMU) += arm-smmu.o
|
2015-05-27 23:25:59 +07:00
|
|
|
obj-$(CONFIG_ARM_SMMU_V3) += arm-smmu-v3.o
|
2011-08-24 07:05:25 +07:00
|
|
|
obj-$(CONFIG_DMAR_TABLE) += dmar.o
|
2015-01-13 00:51:13 +07:00
|
|
|
obj-$(CONFIG_INTEL_IOMMU) += intel-iommu.o
|
2015-03-24 21:54:56 +07:00
|
|
|
obj-$(CONFIG_INTEL_IOMMU_SVM) += intel-svm.o
|
2014-04-02 17:47:37 +07:00
|
|
|
obj-$(CONFIG_IPMMU_VMSA) += ipmmu-vmsa.o
|
2012-03-31 01:47:08 +07:00
|
|
|
obj-$(CONFIG_IRQ_REMAP) += intel_irq_remapping.o irq_remapping.o
|
2011-08-16 03:21:41 +07:00
|
|
|
obj-$(CONFIG_OMAP_IOMMU) += omap-iommu.o
|
|
|
|
obj-$(CONFIG_OMAP_IOMMU_DEBUG) += omap-iommu-debug.o
|
iommu/rockchip: rk3288 iommu driver
The rk3288 has several iommus. Each iommu belongs to a single master
device. There is one device (ISP) that has two slave iommus, but that
case is not yet supported by this driver.
At subsys init, the iommu driver registers itself as the iommu driver for
the platform bus. The master devices find their slave iommus using the
"iommus" field in their devicetree description. Since each slave iommu
belongs to exactly one master, their is no additional data needed at probe
to associate a slave with its master.
An iommu device's power domain, clock and irq are all shared with its
master device, and the master device must be careful to attach from the
iommu only after powering and clocking it (and leave it powered and
clocked before detaching). Because their is no guarantee what the status
of the iommu is at probe, and since the driver does not even know if the
device is powered, we delay requesting its irq until the master device
attaches, at which point we have a guarantee that the device is powered
and clocked and we can reset it and disable its interrupt mask.
An iommu_domain describes a virtual iova address space. Each iommu_domain
has a corresponding page table that lists the mappings from iova to
physical address.
For the rk3288 iommu, the page table has two levels:
The Level 1 "directory_table" has 1024 4-byte dte entries.
Each dte points to a level 2 "page_table".
Each level 2 page_table has 1024 4-byte pte entries.
Each pte points to a 4 KiB page of memory.
An iommu_domain is created when a dma_iommu_mapping is created via
arm_iommu_create_mapping. Master devices can then attach themselves to
this mapping (or attach the mapping to themselves?) by calling
arm_iommu_attach_device(). This in turn instructs the iommu driver to
write the page table's physical address into the slave iommu's "Directory
Table Entry" (DTE) register.
In fact multiple master devices, each with their own slave iommu device,
can all attach to the same mapping. The iommus for these devices will
share the same iommu_domain and therefore point to the same page table.
Thus, the iommu domain maintains a list of iommu devices which are
attached. This driver relies on the iommu core to ensure that all devices
have detached before destroying a domain.
v6: - add .add/remove_device() callbacks.
- parse platform_device device tree nodes for "iommus" property
- store platform device pointer as group iommudata
- Check for existence of iommu group instead of relying on a
dev_get_drvdata() to return NULL for a NULL device.
v7: - fixup some strings.
- In rk_iommu_disable_paging() # and % were reversed.
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2014-11-03 09:53:27 +07:00
|
|
|
obj-$(CONFIG_ROCKCHIP_IOMMU) += rockchip-iommu.o
|
2011-11-16 22:36:37 +07:00
|
|
|
obj-$(CONFIG_TEGRA_IOMMU_GART) += tegra-gart.o
|
2011-11-17 12:31:31 +07:00
|
|
|
obj-$(CONFIG_TEGRA_IOMMU_SMMU) += tegra-smmu.o
|
2012-05-12 03:56:09 +07:00
|
|
|
obj-$(CONFIG_EXYNOS_IOMMU) += exynos-iommu.o
|
2013-01-21 17:54:26 +07:00
|
|
|
obj-$(CONFIG_SHMOBILE_IOMMU) += shmobile-iommu.o
|
|
|
|
obj-$(CONFIG_SHMOBILE_IPMMU) += shmobile-ipmmu.o
|
2013-07-15 11:50:57 +07:00
|
|
|
obj-$(CONFIG_FSL_PAMU) += fsl_pamu.o fsl_pamu_domain.o
|
2015-08-27 20:33:03 +07:00
|
|
|
obj-$(CONFIG_S390_IOMMU) += s390-iommu.o
|