diff options
| author | Christian König <[email protected]> | 2018-09-19 14:12:25 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2018-10-25 11:45:07 +0000 |
| commit | ca05359f1e64cf8303ee532e50efe4ab7563d4a9 (patch) | |
| tree | 853e9e47b788fa72fcc5b0cd099e4199ad6c78a0 /drivers/gpu/drm/ttm/ttm_execbuf_util.c | |
| parent | dma-buf: remove shared fence staging in reservation object (diff) | |
| download | kernel-ca05359f1e64cf8303ee532e50efe4ab7563d4a9.tar.gz kernel-ca05359f1e64cf8303ee532e50efe4ab7563d4a9.zip | |
dma-buf: allow reserving more than one shared fence slot
Let's support simultaneous submissions to multiple engines.
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Junwei Zhang <[email protected]>
Reviewed-by: Huang Rui <[email protected]>
Link: https://patchwork.kernel.org/patch/10626149/
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_execbuf_util.c')
| -rw-r--r-- | drivers/gpu/drm/ttm/ttm_execbuf_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c index e73ae0d22897..e493edb0d3e7 100644 --- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c +++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c @@ -129,7 +129,7 @@ int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, if (!entry->shared) continue; - ret = reservation_object_reserve_shared(bo->resv); + ret = reservation_object_reserve_shared(bo->resv, 1); if (!ret) continue; } @@ -151,7 +151,7 @@ int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, } if (!ret && entry->shared) - ret = reservation_object_reserve_shared(bo->resv); + ret = reservation_object_reserve_shared(bo->resv, 1); if (unlikely(ret != 0)) { if (ret == -EINTR) |
