Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e8161134 authored by Will Deacon's avatar Will Deacon Committed by Chintan Pandya
Browse files

iommu/arm: Add support for ARM Ltd. System MMU architecture



This patch adds support for SMMUs implementing the ARM System MMU
architecture versions 1 or 2. Both arm and arm64 are supported, although
the v7s descriptor format is not used.

Change-Id: I7cc12be4ae1b75f6c6d44515d3eab8c2daa1b0da
Cc: Rob Herring <robherring2@gmail.com>
Cc: Andreas Herrmann <andreas.herrmann@calxeda.com>
Cc: Olav Haugan <ohaugan@codeaurora.org>
Cc: Joerg Roedel <joro@8bytes.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Acked-by: default avatarAndreas Herrmann <andreas.herrmann@calxeda.com>
Signed-off-by: default avatarJoerg Roedel <joro@8bytes.org>
Git-commit: 45ae7cff3684ab45f57fc13fc242c8546536a84e
Git-repo: https://www.codeaurora.org/cgit/external/gigabyte/kernel/msm/


Signed-off-by: default avatarChintan Pandya <cpandya@codeaurora.org>
parent 568a7d3d
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -331,4 +331,17 @@ config SHMOBILE_IOMMU_L1SIZE
	default 256 if SHMOBILE_IOMMU_ADDRSIZE_64MB
	default 128 if SHMOBILE_IOMMU_ADDRSIZE_32MB

config ARM_SMMU
	bool "ARM Ltd. System MMU (SMMU) Support"
	depends on ARM64 || (ARM_LPAE && OF)
	select IOMMU_API
	select ARM_DMA_USE_IOMMU if ARM
	help
	  Support for implementations of the ARM System MMU architecture
	  versions 1 and 2. The driver supports both v7l and v8l table
	  formats with 4k and 64k page sizes.

	  Say Y here if your SoC includes an IOMMU device implementing
	  the ARM SMMU architecture.

endif # IOMMU_SUPPORT
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@ obj-$(CONFIG_MSM_IOMMU_V1) += msm_iommu_pagetable.o
endif
obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o
obj-$(CONFIG_AMD_IOMMU_V2) += amd_iommu_v2.o
obj-$(CONFIG_ARM_SMMU) += arm-smmu.o
obj-$(CONFIG_DMAR_TABLE) += dmar.o
obj-$(CONFIG_INTEL_IOMMU) += iova.o intel-iommu.o
obj-$(CONFIG_IRQ_REMAP) += intel_irq_remapping.o irq_remapping.o
+1969 −0

File added.

Preview size limit exceeded, changes collapsed.