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. > > >From the original comment, we should take care overlap, otherwise, > iommu_map may return -EEXIST. In this overlap case, we should map the > previous region before overlap firstly. then map the left part. > > [...]
Applied to arm64 (for-next/iommu/misc), thanks! [1/1] iommu: Improve the performance for direct_mapping https://git.kernel.org/arm64/c/093b32a849b3 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev