hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/include/drm/ttm/ttm_execbuf_util.h
....@@ -40,13 +40,13 @@
4040 *
4141 * @head: list head for thread-private list.
4242 * @bo: refcounted buffer object pointer.
43
- * @shared: should the fence be added shared?
43
+ * @num_shared: How many shared fences we want to add.
4444 */
4545
4646 struct ttm_validate_buffer {
4747 struct list_head head;
4848 struct ttm_buffer_object *bo;
49
- bool shared;
49
+ unsigned int num_shared;
5050 };
5151
5252 /**
....@@ -58,9 +58,8 @@
5858 * Undoes all buffer validation reservations for bos pointed to by
5959 * the list entries.
6060 */
61
-
62
-extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket,
63
- struct list_head *list);
61
+void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket,
62
+ struct list_head *list);
6463
6564 /**
6665 * function ttm_eu_reserve_buffers
....@@ -70,6 +69,7 @@
7069 * @list: thread private list of ttm_validate_buffer structs.
7170 * @intr: should the wait be interruptible
7271 * @dups: [out] optional list of duplicates.
72
+ * @del_lru: true if BOs should be removed from the LRU.
7373 *
7474 * Tries to reserve bos pointed to by the list entries for validation.
7575 * If the function returns 0, all buffers are marked as "unfenced",
....@@ -95,10 +95,9 @@
9595 * ttm_eu_fence_buffer_objects() when command submission is complete or
9696 * has failed.
9797 */
98
-
99
-extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
100
- struct list_head *list, bool intr,
101
- struct list_head *dups);
98
+int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket,
99
+ struct list_head *list, bool intr,
100
+ struct list_head *dups);
102101
103102 /**
104103 * function ttm_eu_fence_buffer_objects.
....@@ -112,9 +111,8 @@
112111 * It also unreserves all buffers, putting them on lru lists.
113112 *
114113 */
115
-
116
-extern void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
117
- struct list_head *list,
118
- struct dma_fence *fence);
114
+void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket,
115
+ struct list_head *list,
116
+ struct dma_fence *fence);
119117
120118 #endif