Re: [PATCH v5 02/15] iommu/arm-smmu-v3: Add arm_smmu_attach_release()
From: Jason Gunthorpe
Date: Wed Sep 23 2026 - 14:42:21 EST
On Tue, 15 Sep 2026 09:38:14 -0700, Nicolin Chen <nicolinc@xxxxxxxxxx> wrote:
> The IOPF teardown is done in arm_smmu_remove_master_domain() when releasing
> the master_domain on detach, under the global arm_smmu_asid_lock mutex.
>
> A later change will add an IOPF workqueue flush to that teardown, which can
> block on a user-faulting page-fault handler. Holding the arm_smmu_asid_lock
> across it would stall every unrelated attachment in the system.
>
> [...]
Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
--
Jason