Re: [RFC 2/7] iommu/vt-d: Remove iova handling code from non-dma ops path

2019-05-04 Thread Lu Baolu
Hi, On 5/5/19 9:19 AM, Lu Baolu wrote: Hi, On 5/4/19 9:23 PM, Tom Murphy via iommu wrote: @@ -4181,58 +4168,37 @@ static int intel_iommu_memory_notifier(struct notifier_block *nb, unsigned long val, void *v)   {   struct memory_notify *mhp = v; -    unsigned long

Re: [RFC 2/7] iommu/vt-d: Remove iova handling code from non-dma ops path

2019-05-04 Thread Lu Baolu
Hi, On 5/4/19 9:23 PM, Tom Murphy via iommu wrote: @@ -4181,58 +4168,37 @@ static int intel_iommu_memory_notifier(struct notifier_block *nb, unsigned long val, void *v) { struct memory_notify *mhp = v; - unsigned long long start, end; -

[RFC 2/7] iommu/vt-d: Remove iova handling code from non-dma ops path

2019-05-04 Thread Tom Murphy via iommu
There is no reason to keep track of the iovas in the non-dma ops path. All this code seems to be pointless and can be removed. Signed-off-by: Tom Murphy --- drivers/iommu/intel-iommu.c | 94 + 1 file changed, 33 insertions(+), 61 deletions(-) diff --git a/dri