Re: [PATCH v4 2/7] iommu/mediatek: Add a new tlb_lock for tlb_flush

2019-10-24 Thread Yong Wu
On Wed, 2019-10-23 at 17:52 +0100, Will Deacon wrote: > On Wed, Oct 16, 2019 at 11:33:07AM +0800, Yong Wu wrote: > > The commit 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API > > TLB sync") help move the tlb_sync of unmap from v7s into the iommu > > framework. It helps add a new func

Re: [PATCH v4 2/7] iommu/mediatek: Add a new tlb_lock for tlb_flush

2019-10-23 Thread Will Deacon
On Wed, Oct 16, 2019 at 11:33:07AM +0800, Yong Wu wrote: > The commit 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API > TLB sync") help move the tlb_sync of unmap from v7s into the iommu > framework. It helps add a new function "mtk_iommu_iotlb_sync", But it > lacked the lock, then it

[PATCH v4 2/7] iommu/mediatek: Add a new tlb_lock for tlb_flush

2019-10-15 Thread Yong Wu
The commit 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API TLB sync") help move the tlb_sync of unmap from v7s into the iommu framework. It helps add a new function "mtk_iommu_iotlb_sync", But it lacked the lock, then it will cause the variable "tlb_flush_active" may be changed unexpe