Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iommu: Add iommu probe for CDX bus

Add CDX bus to iommu_buses so that IOMMU probe is called
for it.

Signed-off-by: Nipun Gupta <nipun.gupta@amd.com>
Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Tested-by: Nikhil Agarwal <nikhil.agarwal@amd.com>
Link: https://lore.kernel.org/r/20230313132636.31850-3-nipun.gupta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Nipun Gupta and committed by
Greg Kroah-Hartman
3f47d3e4 2959ab24

+4
+4
drivers/iommu/iommu.c
··· 28 28 #include <linux/fsl/mc.h> 29 29 #include <linux/module.h> 30 30 #include <linux/cc_platform.h> 31 + #include <linux/cdx/cdx_bus.h> 31 32 #include <trace/events/iommu.h> 32 33 #include <linux/sched/mm.h> 33 34 #include <linux/msi.h> ··· 129 128 #endif 130 129 #ifdef CONFIG_TEGRA_HOST1X_CONTEXT_BUS 131 130 &host1x_context_device_bus_type, 131 + #endif 132 + #ifdef CONFIG_CDX_BUS 133 + &cdx_bus_type, 132 134 #endif 133 135 }; 134 136