Skip to content

Commit

Permalink
thunderbolt: Initialize after IOMMUs
Browse files Browse the repository at this point in the history
If IOMMU is enabled and Thunderbolt driver is built into the kernel
image, it will be probed before IOMMUs are attached to the PCI bus.
Because of this DMA mappings the driver does will not go through IOMMU
and start failing right after IOMMUs are enabled.

For this reason move the Thunderbolt driver initialization happen at
rootfs level.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Mika Westerberg authored and Greg Kroah-Hartman committed Oct 2, 2018
1 parent 86da809 commit eafa717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thunderbolt/nhi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,5 +1191,5 @@ static void __exit nhi_unload(void)
tb_domain_exit();
}

fs_initcall(nhi_init);
rootfs_initcall(nhi_init);
module_exit(nhi_unload);

0 comments on commit eafa717

Please sign in to comment.