aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/iommu.c
diff options
context:
space:
mode:
authorGanapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>2018-09-05 09:57:36 +0530
committerJoerg Roedel <jroedel@suse.de>2018-09-25 10:18:27 +0200
commitbee60e94a1e20ec0b8ffdafae270731d8fda4551 (patch)
tree4bccce9ad467acc31c8a127ff57d06947f8c72d7 /drivers/iommu/iommu.c
parentLinux 4.19-rc5 (diff)
downloadlinux-dev-bee60e94a1e20ec0b8ffdafae270731d8fda4551.tar.xz
linux-dev-bee60e94a1e20ec0b8ffdafae270731d8fda4551.zip
iommu/iova: Optimise attempts to allocate iova from 32bit address range
As an optimisation for PCI devices, there is always first attempt been made to allocate iova from SAC address range. This will lead to unnecessary attempts, when there are no free ranges available. Adding fix to track recently failed iova address size and allow further attempts, only if requested size is lesser than a failed size. The size is updated when any replenish happens. Reviewed-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iommu.c')
0 files changed, 0 insertions, 0 deletions