diff options
author | Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> | 2018-09-05 07:27:36 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2018-09-25 11:18:27 +0300 |
commit | bee60e94a1e20ec0b8ffdafae270731d8fda4551 (patch) | |
tree | 4bccce9ad467acc31c8a127ff57d06947f8c72d7 /drivers/iommu/intel-pasid.h | |
parent | 6bf4ca7fbc85d80446ac01c0d1d77db4d91a6d84 (diff) | |
download | linux-bee60e94a1e20ec0b8ffdafae270731d8fda4551.tar.xz |
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/intel-pasid.h')
0 files changed, 0 insertions, 0 deletions