Skip to content

Commit 12243a8

Browse files
Dimitri Sivanichjoergroedel
authored andcommitted
iommu/amd: Fix panic accessing amd_iommu_enable_faulting
This fixes a bug introduced by commit d74169c ("iommu/vt-d: Allocate DMAR fault interrupts locally"). The panic happens when amd_iommu_enable_faulting is called from CPUHP_AP_ONLINE_DYN context. Fixes: d74169c ("iommu/vt-d: Allocate DMAR fault interrupts locally") Signed-off-by: Dimitri Sivanich <sivanich@hpe.com> Tested-by: Yi Zhang <yi.zhang@redhat.com> Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Link: https://lore.kernel.org/r/ZljHE/R4KLzGU6vx@hpe.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 83a7eef commit 12243a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/amd/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3362,7 +3362,7 @@ int amd_iommu_reenable(int mode)
33623362
return 0;
33633363
}
33643364

3365-
int __init amd_iommu_enable_faulting(unsigned int cpu)
3365+
int amd_iommu_enable_faulting(unsigned int cpu)
33663366
{
33673367
/* We enable MSI later when PCI is initialized */
33683368
return 0;

0 commit comments

Comments
 (0)