iommu/amd: Fix panic accessing amd_iommu_enable_faulting
This fixes a bug introduced by commitd74169ceb0
("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:d74169ceb0
("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>
This commit is contained in:
parent
83a7eefedc
commit
12243a8115
@ -3362,7 +3362,7 @@ int amd_iommu_reenable(int mode)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int __init amd_iommu_enable_faulting(unsigned int cpu)
|
||||
int amd_iommu_enable_faulting(unsigned int cpu)
|
||||
{
|
||||
/* We enable MSI later when PCI is initialized */
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user