Re: [PATCH 1/2] iommu/vt-d: Fix lock inversion between iommu->lock and device_domain_lock

2019-06-18 Thread Lu Baolu
Hi Chris, On 6/19/19 5:02 AM, Chris Wilson wrote: Quoting Lu Baolu (2019-05-21 08:30:15) From: Dave Jiang Lockdep debug reported lock inversion related with the iommu code caused by dmar_insert_one_dev_info() grabbing the iommu->lock and the device_domain_lock out of order versus the code

Re: [PATCH 1/2] iommu/vt-d: Fix lock inversion between iommu->lock and device_domain_lock

2019-06-18 Thread Chris Wilson
Quoting Lu Baolu (2019-05-21 08:30:15) > From: Dave Jiang > > Lockdep debug reported lock inversion related with the iommu code > caused by dmar_insert_one_dev_info() grabbing the iommu->lock and > the device_domain_lock out of order versus the code path in > iommu_flush_dev_iotlb(). Expanding

Re: [PATCH 1/2] iommu/vt-d: Fix lock inversion between iommu->lock and device_domain_lock

2019-05-27 Thread Joerg Roedel
On Tue, May 21, 2019 at 03:30:15PM +0800, Lu Baolu wrote: > --- > drivers/iommu/intel-iommu.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) Applied both, thanks.

[PATCH 1/2] iommu/vt-d: Fix lock inversion between iommu->lock and device_domain_lock

2019-05-21 Thread Lu Baolu
From: Dave Jiang Lockdep debug reported lock inversion related with the iommu code caused by dmar_insert_one_dev_info() grabbing the iommu->lock and the device_domain_lock out of order versus the code path in iommu_flush_dev_iotlb(). Expanding the scope of the iommu->lock and reversing the order