Re: [PATCH] iommu: Don't call .probe_finalize() under group->mutex

2020-05-19 Thread Yong Wu
On Tue, 2020-05-19 at 15:28 +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The .probe_finalize() call-back of some IOMMU drivers calls into > arm_iommu_attach_device(). This function will call back into the > IOMMU core code, where it tries to take group->mutex again, resulting > in a deadlo

[PATCH] iommu: Don't call .probe_finalize() under group->mutex

2020-05-19 Thread Joerg Roedel
From: Joerg Roedel The .probe_finalize() call-back of some IOMMU drivers calls into arm_iommu_attach_device(). This function will call back into the IOMMU core code, where it tries to take group->mutex again, resulting in a deadlock. As there is no reason why .probe_finalize() needs to be called