Re: [PATCH 3/7] iommu: prepare for the non-strict mode support

2018-06-04 Thread Leizhen (ThunderTown)
On 2018/5/31 21:04, Robin Murphy wrote: > On 31/05/18 08:42, Zhen Lei wrote: >> In common, a IOMMU unmap operation follow the below steps: >> 1. remove the mapping in page table of the specified iova range >> 2. execute tlbi command to invalid the mapping which is cached in TLB >> 3. wait for th

Re: [PATCH 3/7] iommu: prepare for the non-strict mode support

2018-05-31 Thread Robin Murphy
On 31/05/18 08:42, Zhen Lei wrote: In common, a IOMMU unmap operation follow the below steps: 1. remove the mapping in page table of the specified iova range 2. execute tlbi command to invalid the mapping which is cached in TLB 3. wait for the above tlbi operation to be finished 4. free the IOVA

[PATCH 3/7] iommu: prepare for the non-strict mode support

2018-05-31 Thread Zhen Lei
In common, a IOMMU unmap operation follow the below steps: 1. remove the mapping in page table of the specified iova range 2. execute tlbi command to invalid the mapping which is cached in TLB 3. wait for the above tlbi operation to be finished 4. free the IOVA resource 5. free the physical memory