diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-19 10:12:25 -0400 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2018-10-25 07:45:07 -0400 |
commit | ca05359f1e64cf8303ee532e50efe4ab7563d4a9 (patch) | |
tree | 853e9e47b788fa72fcc5b0cd099e4199ad6c78a0 /include/linux/reservation.h | |
parent | 27836b641c1bf693c96c627388497b4e0f57441b (diff) |
dma-buf: allow reserving more than one shared fence slot
Let's support simultaneous submissions to multiple engines.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Link: https://patchwork.kernel.org/patch/10626149/
Diffstat (limited to 'include/linux/reservation.h')
-rw-r--r-- | include/linux/reservation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/reservation.h b/include/linux/reservation.h index 54cf6773a14c..5ddb0e143721 100644 --- a/include/linux/reservation.h +++ b/include/linux/reservation.h | |||
@@ -261,7 +261,8 @@ reservation_object_get_excl_rcu(struct reservation_object *obj) | |||
261 | return fence; | 261 | return fence; |
262 | } | 262 | } |
263 | 263 | ||
264 | int reservation_object_reserve_shared(struct reservation_object *obj); | 264 | int reservation_object_reserve_shared(struct reservation_object *obj, |
265 | unsigned int num_fences); | ||
265 | void reservation_object_add_shared_fence(struct reservation_object *obj, | 266 | void reservation_object_add_shared_fence(struct reservation_object *obj, |
266 | struct dma_fence *fence); | 267 | struct dma_fence *fence); |
267 | 268 | ||