Rev 3391 | Rev 4568 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3391 | Rev 4065 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | }; |
55 | }; |
Line 56... | Line 56... | ||
56 | 56 | ||
57 | /** |
57 | /** |
58 | * function ttm_eu_backoff_reservation |
58 | * function ttm_eu_backoff_reservation |
- | 59 | * |
|
59 | * |
60 | * @ticket: ww_acquire_ctx from reserve call |
60 | * @list: thread private list of ttm_validate_buffer structs. |
61 | * @list: thread private list of ttm_validate_buffer structs. |
61 | * |
62 | * |
62 | * Undoes all buffer validation reservations for bos pointed to by |
63 | * Undoes all buffer validation reservations for bos pointed to by |
63 | * the list entries. |
64 | * the list entries. |
Line 64... | Line 65... | ||
64 | */ |
65 | */ |
- | 66 | ||
Line 65... | Line 67... | ||
65 | 67 | extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, |
|
66 | extern void ttm_eu_backoff_reservation(struct list_head *list); |
68 | struct list_head *list); |
67 | 69 | ||
- | 70 | /** |
|
68 | /** |
71 | * function ttm_eu_reserve_buffers |
69 | * function ttm_eu_reserve_buffers |
72 | * |
70 | * |
73 | * @ticket: [out] ww_acquire_ctx returned by call. |
71 | * @list: thread private list of ttm_validate_buffer structs. |
74 | * @list: thread private list of ttm_validate_buffer structs. |
72 | * |
75 | * |
Line 88... | Line 91... | ||
88 | * a call to either ttm_eu_backoff_reservation() or |
91 | * a call to either ttm_eu_backoff_reservation() or |
89 | * ttm_eu_fence_buffer_objects() when command submission is complete or |
92 | * ttm_eu_fence_buffer_objects() when command submission is complete or |
90 | * has failed. |
93 | * has failed. |
91 | */ |
94 | */ |
Line 92... | Line 95... | ||
92 | 95 | ||
- | 96 | extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, |
|
Line 93... | Line 97... | ||
93 | extern int ttm_eu_reserve_buffers(struct list_head *list); |
97 | struct list_head *list); |
94 | 98 | ||
95 | /** |
99 | /** |
- | 100 | * function ttm_eu_fence_buffer_objects. |
|
96 | * function ttm_eu_fence_buffer_objects. |
101 | * |
97 | * |
102 | * @ticket: ww_acquire_ctx from reserve call |
98 | * @list: thread private list of ttm_validate_buffer structs. |
103 | * @list: thread private list of ttm_validate_buffer structs. |
99 | * @sync_obj: The new sync object for the buffers. |
104 | * @sync_obj: The new sync object for the buffers. |
100 | * |
105 | * |
101 | * This function should be called when command submission is complete, and |
106 | * This function should be called when command submission is complete, and |
102 | * it will add a new sync object to bos pointed to by entries on @list. |
107 | * it will add a new sync object to bos pointed to by entries on @list. |
103 | * It also unreserves all buffers, putting them on lru lists. |
108 | * It also unreserves all buffers, putting them on lru lists. |
Line 104... | Line 109... | ||
104 | * |
109 | * |
- | 110 | */ |
|
Line 105... | Line 111... | ||
105 | */ |
111 |