Re: [PATCH] dma-buf: Eliminate all duplicate fences in dma_fence_unwrap_merge

2024-10-21 Thread Christian König
Am 18.10.24 um 21:17 schrieb Friedrich Vock: [SNIP]   if (tmp) { -    array[count++] = dma_fence_get(tmp); +    for (j = 0; j < count; ++j) { +    if (array[count] == tmp) +    break; +    } +    if (j == count) +   

Re: [PATCH] dma-buf: Eliminate all duplicate fences in dma_fence_unwrap_merge

2024-10-18 Thread Friedrich Vock
Hi, On 18.10.24 10:56, Christian König wrote: Am 18.10.24 um 07:46 schrieb Friedrich Vock: When dma_fence_unwrap_merge is called on fence chains where the fences aren't ordered by context, the merging logic breaks down and we end up inserting fences twice. Doing this repeatedly leads to the num

Re: [PATCH] dma-buf: Eliminate all duplicate fences in dma_fence_unwrap_merge

2024-10-18 Thread Christian König
Am 18.10.24 um 07:46 schrieb Friedrich Vock: When dma_fence_unwrap_merge is called on fence chains where the fences aren't ordered by context, the merging logic breaks down and we end up inserting fences twice. Doing this repeatedly leads to the number of fences going up exponentially, and in som