Re: [PATCH] iommu/amd: Fix panic accessing amd_iommu_enable_faulting

From: Joerg Roedel
Date: Thu Jun 13 2024 - 05:16:42 EST


On Thu, May 30, 2024 at 01:36:03PM -0500, Dimitri Sivanich wrote:
> 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@xxxxxxx>
> Tested-by: Yi Zhang <yi.zhang@xxxxxxxxxx>
> ---
> drivers/iommu/amd/init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to iommu/fixes, thanks.