[PATCH] dma-buf: add a warning when drv try to reserve 0 fence slots

Matthew Auld matthew.auld at intel.com
Wed May 29 10:38:18 UTC 2024


On 29/05/2024 09:43, Christian König wrote:
> When dma_resv_reserve_fences() is called with num_fences=0 it usually
> means that a driver or other component messed up its calculation how
> many fences are needed. Warn in that situation.
> 
> When no fence are needed the function shouldn't be called in the first
> place.
> 
> Signed-off-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>



More information about the dri-devel mailing list