diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-11-11 21:35:46 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-11-15 14:39:52 +0300 |
commit | 62280cf2e8bb46d14b47b198720ab2d69b43faf7 (patch) | |
tree | 7134cc1db3960d9f5912244d05fbbac90e37496a /drivers/iommu/amd_iommu_v2.c | |
parent | 5d1d43b0f6231cfffde61f8774283f170c040776 (diff) | |
download | linux-62280cf2e8bb46d14b47b198720ab2d69b43faf7.tar.xz |
iommu/iova: Extend cached node lookup condition
When searching for a free IOVA range, we optimise the tree traversal
by starting from the cached32_node, instead of the last node, when
limit_pfn is equal to dma_32bit_pfn. However, if limit_pfn happens to
be smaller, then we'll go ahead and start from the top even though
dma_32bit_pfn is still a more suitable upper bound. Since this is
clearly a silly thing to do, adjust the lookup condition appropriately.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_v2.c')
0 files changed, 0 insertions, 0 deletions