Re: [PATCH] iommu: Add a check to avoid invalid iotlb sync

2021-03-30 Thread chenxiang (M)
在 2021/3/30 17:25, Will Deacon 写道: On Tue, Mar 30, 2021 at 10:04:53AM +0100, Robin Murphy wrote: On 2021-03-30 02:22, chenxiang (M) wrote: Hi Will, 在 2021/3/29 22:45, Will Deacon 写道: On Sat, Mar 27, 2021 at 02:23:10PM +0800, chenxiang wrote: From: Xiang Chen Currently it will send a iot

Re: [PATCH] iommu: Add a check to avoid invalid iotlb sync

2021-03-30 Thread Will Deacon
On Tue, Mar 30, 2021 at 10:04:53AM +0100, Robin Murphy wrote: > On 2021-03-30 02:22, chenxiang (M) wrote: > > Hi Will, > > > > > > 在 2021/3/29 22:45, Will Deacon 写道: > > > On Sat, Mar 27, 2021 at 02:23:10PM +0800, chenxiang wrote: > > > > From: Xiang Chen > > > > > > > > Currently it will send

Re: [PATCH] iommu: Add a check to avoid invalid iotlb sync

2021-03-30 Thread Robin Murphy
On 2021-03-30 02:22, chenxiang (M) wrote: Hi Will, 在 2021/3/29 22:45, Will Deacon 写道: On Sat, Mar 27, 2021 at 02:23:10PM +0800, chenxiang wrote: From: Xiang Chen Currently it will send a iotlb sync at end of iommu unmap even if iotlb_gather is not valid (iotlb_gather->pgsize = 0). Actually

Re: [PATCH] iommu: Add a check to avoid invalid iotlb sync

2021-03-29 Thread chenxiang (M)
Hi Will, 在 2021/3/29 22:45, Will Deacon 写道: On Sat, Mar 27, 2021 at 02:23:10PM +0800, chenxiang wrote: From: Xiang Chen Currently it will send a iotlb sync at end of iommu unmap even if iotlb_gather is not valid (iotlb_gather->pgsize = 0). Actually it is not necessary, so add a check to avoi

Re: [PATCH] iommu: Add a check to avoid invalid iotlb sync

2021-03-29 Thread Will Deacon
On Sat, Mar 27, 2021 at 02:23:10PM +0800, chenxiang wrote: > From: Xiang Chen > > Currently it will send a iotlb sync at end of iommu unmap even if > iotlb_gather is not valid (iotlb_gather->pgsize = 0). Actually it is not > necessary, so add a check to avoid invalid iotlb sync. > > Signed-off-b

[PATCH] iommu: Add a check to avoid invalid iotlb sync

2021-03-26 Thread chenxiang
From: Xiang Chen Currently it will send a iotlb sync at end of iommu unmap even if iotlb_gather is not valid (iotlb_gather->pgsize = 0). Actually it is not necessary, so add a check to avoid invalid iotlb sync. Signed-off-by: Xiang Chen --- include/linux/iommu.h | 3 +++ 1 file changed, 3 inse