iommu/dma: Finish optimising higher-order allocations
authorRobin Murphy <robin.murphy@arm.com>
Wed, 13 Apr 2016 16:29:10 +0000 (17:29 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 9 May 2016 13:33:29 +0000 (15:33 +0200)
commit3b6b7e19e31a816ee02a8d4372cbea9ad7db3784
tree28196392e6972feaf5ead20f9ecaf8e9af7ca140
parentd16e0faab911cc0e100a1e8e93635b432566608e
iommu/dma: Finish optimising higher-order allocations

Now that we know exactly which page sizes our caller wants to use in the
given domain, we can restrict higher-order allocation attempts to just
those sizes, if any, and avoid wasting any time or effort on other sizes
which offer no benefit. In the same vein, this also lets us accommodate
a minimum order greater than 0 for special cases.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Tested-by: Yong Wu <yong.wu@mediatek.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/arm64/mm/dma-mapping.c
drivers/iommu/dma-iommu.c
include/linux/dma-iommu.h