Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ttm: fix logic inversion in ttm_eu_reserve_buffers

That should have been max, not min.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: c8d4c18bfbc4 ("dma-buf/drivers: make reserving a shared slot mandatory v4")
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220411134537.2854-1-christian.koenig@amd.com

+1 -1
+1 -1
drivers/gpu/drm/ttm/ttm_execbuf_util.c
··· 101 101 continue; 102 102 } 103 103 104 - num_fences = min(entry->num_shared, 1u); 104 + num_fences = max(entry->num_shared, 1u); 105 105 if (!ret) { 106 106 ret = dma_resv_reserve_fences(bo->base.resv, 107 107 num_fences);