Re: [PATCH v2] iommu: Improve the performance for direct_mapping

2020-12-07 Thread Will Deacon
On Mon, 7 Dec 2020 17:35:53 +0800, Yong Wu wrote: > Currently direct_mapping always use the smallest pgsize which is SZ_4K > normally to mapping. This is unnecessary. we could gather the size, and > call iommu_map then, iommu_map could decide how to map better with the > just right pgsize. > > >Fr

[PATCH v2] iommu: Improve the performance for direct_mapping

2020-12-07 Thread Yong Wu
Currently direct_mapping always use the smallest pgsize which is SZ_4K normally to mapping. This is unnecessary. we could gather the size, and call iommu_map then, iommu_map could decide how to map better with the just right pgsize. >From the original comment, we should take care overlap, otherwis