]> www.infradead.org Git - users/dwmw2/linux.git/commit
iommu/amd: Fix panic accessing amd_iommu_enable_faulting
authorDimitri Sivanich <sivanich@hpe.com>
Thu, 30 May 2024 18:36:03 +0000 (13:36 -0500)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Jun 2024 09:16:05 +0000 (11:16 +0200)
commit12243a8115f8583a6bcada7717c01fb164e23c89
tree75b0815ff134f5d4d0692480d9a5fba41bc42e83
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
iommu/amd: Fix panic accessing amd_iommu_enable_faulting

This fixes a bug introduced by commit d74169ceb0d2 ("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: d74169ceb0d2 ("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>
drivers/iommu/amd/init.c