Re: [PATCH v5 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-11-09 Thread John Garry
On 03/11/2020 15:59, Robin Murphy wrote: alloc failure even after retry as global rcache is holding the iova's which can cause fragmentation. So, free the global iova rcache as well and then go for the retry. If we do clear all the CPU rcaches, it would nice to have something immediately ava

Re: [PATCH v5 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-11-03 Thread Robin Murphy
On 2020-11-03 14:31, John Garry wrote: On 03/11/2020 12:35, Robin Murphy wrote: On 2020-09-30 08:44, vji...@codeaurora.org wrote: From: Vijayanand Jitta When ever an iova alloc request fails we free the iova ranges present in the percpu iova rcaches and then retry but the global iova rcache i

Re: [PATCH v5 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-11-03 Thread John Garry
On 03/11/2020 12:35, Robin Murphy wrote: On 2020-09-30 08:44, vji...@codeaurora.org wrote: From: Vijayanand Jitta When ever an iova alloc request fails we free the iova ranges present in the percpu iova rcaches and then retry but the global iova rcache is not freed as a result we could still s

Re: [PATCH v5 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-11-03 Thread Robin Murphy
On 2020-09-30 08:44, vji...@codeaurora.org wrote: From: Vijayanand Jitta When ever an iova alloc request fails we free the iova ranges present in the percpu iova rcaches and then retry but the global iova rcache is not freed as a result we could still see iova alloc failure even after retry as

Re: [PATCH v5 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-10-20 Thread Vijayanand Jitta
On 9/30/2020 1:14 PM, vji...@codeaurora.org wrote: > From: Vijayanand Jitta > > When ever an iova alloc request fails we free the iova > ranges present in the percpu iova rcaches and then retry > but the global iova rcache is not freed as a result we could > still see iova alloc failure even a

[PATCH v5 2/2] iommu/iova: Free global iova rcache on iova alloc failure

2020-09-30 Thread vjitta
From: Vijayanand Jitta When ever an iova alloc request fails we free the iova ranges present in the percpu iova rcaches and then retry but the global iova rcache is not freed as a result we could still see iova alloc failure even after retry as global rcache is holding the iova's which can cause