iommu/iova: Optimise attempts to allocate iova from 32bit address range
mainline inclusion from mainline-4.20-rc1 commit: bee60e94a1e20ec0b8ffdafae270731d8fda4551 category: feature feature: IOMMU performance bugzilla: NA CVE: NA -------------------------------------------------- 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: NRobin Murphy <robin.murphy@arm.com> Signed-off-by: NGanapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> Signed-off-by: NJoerg Roedel <jroedel@suse.de> Signed-off-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录