Skip to content

Commit

Permalink
MSM8916: iommu/qcom: Select IOMMU_DMA instead of ARM_DMA_USE_IOMMU (v3)
Browse files Browse the repository at this point in the history
The ARM32 IOMMU DMA implementation does not really work properly
with qcom_iommu. It fails to attach to any IOMMU because a domain
is created by default in the driver.

Now that there is IOMMU_DMA support for ARM32, select it instead
of ARM_DMA_USE_IOMMU.

v2: 'depend on' instead of 'select' to fix circular dependency
v3: Move "select IOMMU_DMA" to CONFIG_ARCH_MSM8916
  • Loading branch information
stephan-gh committed Nov 12, 2021
1 parent f6c8b32 commit ec15620
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions arch/arm/mach-qcom/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ config ARCH_MSM8X60
config ARCH_MSM8916
bool "Enable support for MSM8916"
select HAVE_ARM_ARCH_TIMER
select IOMMU_DMA
help
Enable support for the Qualcomm Snapdragon 410 (MSM8916/APQ8016).

Expand Down
1 change: 0 additions & 1 deletion drivers/iommu/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ config QCOM_IOMMU
select QCOM_SCM
select IOMMU_API
select IOMMU_IO_PGTABLE_LPAE
select ARM_DMA_USE_IOMMU
help
Support for IOMMU on certain Qualcomm SoCs.

Expand Down

0 comments on commit ec15620

Please sign in to comment.