Re: [RFC PATCH] dma-buf: Fix dma reservation with zero fences

2023-12-15 Thread Mika Kuoppala
Christian König writes: > Am 14.12.23 um 13:08 schrieb Mika Kuoppala: >> Driver can initialize without any fences. If so >> roundup_power_of_two will overflow as it will try to >> subtract one from initial value before shift, >> (1 << fls_long(-1)). > > Ah, yes that reminds me that I wanted to ta

Re: [RFC PATCH] dma-buf: Fix dma reservation with zero fences

2023-12-14 Thread Christian König
Am 14.12.23 um 13:08 schrieb Mika Kuoppala: Driver can initialize without any fences. If so roundup_power_of_two will overflow as it will try to subtract one from initial value before shift, (1 << fls_long(-1)). Ah, yes that reminds me that I wanted to take care of this as well. But solving it