Skip to content

Commit 9ae0b37

Browse files
committed
Merge tag 'iommu-fixes-v4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull IOMMU fixes from Joerg Roedel: - two Kconfig fixes to fix dependencies that cause compile failures when they are not fulfilled. - a section mismatch fix for Intel VT-d - a fix for PCI topology detection in ARM device-tree code * tag 'iommu-fixes-v4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: iommu/of: Remove PCI host bridge node check iommu/qcom: Depend on HAS_DMA to fix compile error iommu/vt-d: Fix harmless section mismatch warning iommu: Add missing dependencies
2 parents d21b8ea + c0d05cd commit 9ae0b37

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

drivers/iommu/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ config EXYNOS_IOMMU_DEBUG
278278
config IPMMU_VMSA
279279
bool "Renesas VMSA-compatible IPMMU"
280280
depends on ARM || IOMMU_DMA
281-
depends on ARCH_RENESAS || COMPILE_TEST
281+
depends on ARCH_RENESAS || (COMPILE_TEST && !GENERIC_ATOMIC64)
282282
select IOMMU_API
283283
select IOMMU_IO_PGTABLE_LPAE
284284
select ARM_DMA_USE_IOMMU
@@ -373,7 +373,8 @@ config MTK_IOMMU_V1
373373
config QCOM_IOMMU
374374
# Note: iommu drivers cannot (yet?) be built as modules
375375
bool "Qualcomm IOMMU Support"
376-
depends on ARCH_QCOM || COMPILE_TEST
376+
depends on ARCH_QCOM || (COMPILE_TEST && !GENERIC_ATOMIC64)
377+
depends on HAS_DMA
377378
select IOMMU_API
378379
select IOMMU_IO_PGTABLE_LPAE
379380
select ARM_DMA_USE_IOMMU

drivers/iommu/dmar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ static int dmar_parse_one_rhsa(struct acpi_dmar_header *header, void *arg)
497497
#define dmar_parse_one_rhsa dmar_res_noop
498498
#endif
499499

500-
static void __init
500+
static void
501501
dmar_table_print_dmar_entry(struct acpi_dmar_header *header)
502502
{
503503
struct acpi_dmar_hardware_unit *drhd;

drivers/iommu/of_iommu.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,7 @@ static int of_pci_iommu_init(struct pci_dev *pdev, u16 alias, void *data)
157157

158158
err = of_iommu_xlate(info->dev, &iommu_spec);
159159
of_node_put(iommu_spec.np);
160-
if (err)
161-
return err;
162-
163-
return info->np == pdev->bus->dev.of_node;
160+
return err;
164161
}
165162

166163
const struct iommu_ops *of_iommu_configure(struct device *dev,

0 commit comments

Comments
 (0)