Skip to content
Snippets Groups Projects
Commit c9402efe authored by Christian König's avatar Christian König Committed by Christian König
Browse files

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


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: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240529084322.2284-1-christian.koenig@amd.com


Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
parent c4e32678
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment