Skip to content

Commit 0cacaf5

Browse files
committed
Merge tag 'iommu-fixes-v3.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull two IOMMU fixes from Joerg Roedel: "The first is an additional fix for the OMAP initialization order issue and the second patch fixes a possible section mismatch which can lead to a kernel crash in the AMD IOMMU driver when suspend/resume is used and the compiler has not inlined the iommu_set_device_table function." * tag 'iommu-fixes-v3.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: x86/amd: iommu_set_device_table() must not be __init ARM: OMAP: fix iommu, not mailbox
2 parents 45b8da9 + 6b7f000 commit 0cacaf5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/arm/mach-omap2/mailbox.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,7 @@ static void __exit omap2_mbox_exit(void)
420420
platform_driver_unregister(&omap2_mbox_driver);
421421
}
422422

423-
/* must be ready before omap3isp is probed */
424-
subsys_initcall(omap2_mbox_init);
423+
module_init(omap2_mbox_init);
425424
module_exit(omap2_mbox_exit);
426425

427426
MODULE_LICENSE("GPL v2");

‎arch/arm/mach-omap2/omap-iommu.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ static int __init omap_iommu_init(void)
150150
platform_device_put(omap_iommu_pdev[i]);
151151
return err;
152152
}
153-
module_init(omap_iommu_init);
153+
/* must be ready before omap3isp is probed */
154+
subsys_initcall(omap_iommu_init);
154155

155156
static void __exit omap_iommu_exit(void)
156157
{

‎drivers/iommu/amd_iommu_init.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void iommu_set_exclusion_range(struct amd_iommu *iommu)
275275
}
276276

277277
/* Programs the physical address of the device table into the IOMMU hardware */
278-
static void __init iommu_set_device_table(struct amd_iommu *iommu)
278+
static void iommu_set_device_table(struct amd_iommu *iommu)
279279
{
280280
u64 entry;
281281

0 commit comments

Comments
 (0)