Skip to content

Commit 8f02f36

Browse files
committed
Merge tag 'iommu-drivers-move-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull iommu driver directory structure cleanup from Joerg Roedel: "Move the Intel and AMD IOMMU drivers into their own subdirectory. Both drivers consist of several files by now and giving them their own directory unclutters the IOMMU top-level directory a bit" * tag 'iommu-drivers-move-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: iommu/vt-d: Move Intel IOMMU driver into subdirectory iommu/amd: Move AMD IOMMU driver into subdirectory
2 parents 5c2fb57 + 672cf6d commit 8f02f36

File tree

17 files changed

+16
-17
lines changed

17 files changed

+16
-17
lines changed

MAINTAINERS

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ M: Joerg Roedel <[email protected]>
884884
885885
S: Maintained
886886
T: git git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
887-
F: drivers/iommu/amd_iommu*.[ch]
887+
F: drivers/iommu/amd/
888888
F: include/linux/amd-iommu.h
889889

890890
AMD KFD
@@ -8735,8 +8735,7 @@ M: Lu Baolu <[email protected]>
87358735
87368736
S: Supported
87378737
T: git git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
8738-
F: drivers/iommu/dmar.c
8739-
F: drivers/iommu/intel*.[ch]
8738+
F: drivers/iommu/intel/
87408739
F: include/linux/intel-iommu.h
87418740
F: include/linux/intel-svm.h
87428741

drivers/iommu/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ obj-$(CONFIG_IOASID) += ioasid.o
1111
obj-$(CONFIG_IOMMU_IOVA) += iova.o
1212
obj-$(CONFIG_OF_IOMMU) += of_iommu.o
1313
obj-$(CONFIG_MSM_IOMMU) += msm_iommu.o
14-
obj-$(CONFIG_AMD_IOMMU) += amd_iommu.o amd_iommu_init.o amd_iommu_quirks.o
15-
obj-$(CONFIG_AMD_IOMMU_DEBUGFS) += amd_iommu_debugfs.o
16-
obj-$(CONFIG_AMD_IOMMU_V2) += amd_iommu_v2.o
14+
obj-$(CONFIG_AMD_IOMMU) += amd/iommu.o amd/init.o amd/quirks.o
15+
obj-$(CONFIG_AMD_IOMMU_DEBUGFS) += amd/debugfs.o
16+
obj-$(CONFIG_AMD_IOMMU_V2) += amd/iommu_v2.o
1717
obj-$(CONFIG_ARM_SMMU) += arm_smmu.o
1818
arm_smmu-objs += arm-smmu.o arm-smmu-impl.o arm-smmu-qcom.o
1919
obj-$(CONFIG_ARM_SMMU_V3) += arm-smmu-v3.o
20-
obj-$(CONFIG_DMAR_TABLE) += dmar.o
21-
obj-$(CONFIG_INTEL_IOMMU) += intel-iommu.o intel-pasid.o
22-
obj-$(CONFIG_INTEL_IOMMU) += intel-trace.o
23-
obj-$(CONFIG_INTEL_IOMMU_DEBUGFS) += intel-iommu-debugfs.o
24-
obj-$(CONFIG_INTEL_IOMMU_SVM) += intel-svm.o
20+
obj-$(CONFIG_DMAR_TABLE) += intel/dmar.o
21+
obj-$(CONFIG_INTEL_IOMMU) += intel/iommu.o intel/pasid.o
22+
obj-$(CONFIG_INTEL_IOMMU) += intel/trace.o
23+
obj-$(CONFIG_INTEL_IOMMU_DEBUGFS) += intel/debugfs.o
24+
obj-$(CONFIG_INTEL_IOMMU_SVM) += intel/svm.o
2525
obj-$(CONFIG_IPMMU_VMSA) += ipmmu-vmsa.o
26-
obj-$(CONFIG_IRQ_REMAP) += intel_irq_remapping.o irq_remapping.o
26+
obj-$(CONFIG_IRQ_REMAP) += intel/irq_remapping.o irq_remapping.o
2727
obj-$(CONFIG_MTK_IOMMU) += mtk_iommu.o
2828
obj-$(CONFIG_MTK_IOMMU_V1) += mtk_iommu_v1.o
2929
obj-$(CONFIG_OMAP_IOMMU) += omap-iommu.o
File renamed without changes.
File renamed without changes.
File renamed without changes.

drivers/iommu/amd_iommu_init.c renamed to drivers/iommu/amd/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <linux/crash_dump.h>
3434

3535
#include "amd_iommu.h"
36-
#include "irq_remapping.h"
36+
#include "../irq_remapping.h"
3737

3838
/*
3939
* definitions for the ACPI scanning code

drivers/iommu/amd_iommu.c renamed to drivers/iommu/amd/iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include <asm/dma.h>
4444

4545
#include "amd_iommu.h"
46-
#include "irq_remapping.h"
46+
#include "../irq_remapping.h"
4747

4848
#define CMD_SET_TYPE(cmd, t) ((cmd)->data[1] |= ((t) << 28))
4949

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)