diff options
| author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2014-01-09 05:03:08 -0500 |
|---|---|---|
| committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2014-09-01 04:16:43 -0400 |
| commit | 58b4d720c1620bbf09e42b4f218dcb2d0d8cdf3e (patch) | |
| tree | 87edd6d708d020f349702eb42049bef343540aec /include/drm/ttm | |
| parent | dd7cfd641228abb2669d8d047d5ec377b1835900 (diff) | |
drm/ttm: add interruptible parameter to ttm_eu_reserve_buffers
It seems some drivers really want this as a parameter,
like vmwgfx.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'include/drm/ttm')
| -rw-r--r-- | include/drm/ttm/ttm_execbuf_util.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/drm/ttm/ttm_execbuf_util.h b/include/drm/ttm/ttm_execbuf_util.h index 16db7d01a336..fd95fd569ca3 100644 --- a/include/drm/ttm/ttm_execbuf_util.h +++ b/include/drm/ttm/ttm_execbuf_util.h | |||
| @@ -73,6 +73,7 @@ extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, | |||
| 73 | * @ticket: [out] ww_acquire_ctx filled in by call, or NULL if only | 73 | * @ticket: [out] ww_acquire_ctx filled in by call, or NULL if only |
| 74 | * non-blocking reserves should be tried. | 74 | * non-blocking reserves should be tried. |
| 75 | * @list: thread private list of ttm_validate_buffer structs. | 75 | * @list: thread private list of ttm_validate_buffer structs. |
| 76 | * @intr: should the wait be interruptible | ||
| 76 | * | 77 | * |
| 77 | * Tries to reserve bos pointed to by the list entries for validation. | 78 | * Tries to reserve bos pointed to by the list entries for validation. |
| 78 | * If the function returns 0, all buffers are marked as "unfenced", | 79 | * If the function returns 0, all buffers are marked as "unfenced", |
| @@ -84,9 +85,9 @@ extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, | |||
| 84 | * CPU write reservations to be cleared, and for other threads to | 85 | * CPU write reservations to be cleared, and for other threads to |
| 85 | * unreserve their buffers. | 86 | * unreserve their buffers. |
| 86 | * | 87 | * |
| 87 | * This function may return -ERESTART or -EAGAIN if the calling process | 88 | * If intr is set to true, this function may return -ERESTARTSYS if the |
| 88 | * receives a signal while waiting. In that case, no buffers on the list | 89 | * calling process receives a signal while waiting. In that case, no |
| 89 | * will be reserved upon return. | 90 | * buffers on the list will be reserved upon return. |
| 90 | * | 91 | * |
| 91 | * Buffers reserved by this function should be unreserved by | 92 | * Buffers reserved by this function should be unreserved by |
| 92 | * a call to either ttm_eu_backoff_reservation() or | 93 | * a call to either ttm_eu_backoff_reservation() or |
| @@ -95,7 +96,7 @@ extern void ttm_eu_backoff_reservation(struct ww_acquire_ctx *ticket, | |||
| 95 | */ | 96 | */ |
| 96 | 97 | ||
| 97 | extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, | 98 | extern int ttm_eu_reserve_buffers(struct ww_acquire_ctx *ticket, |
| 98 | struct list_head *list); | 99 | struct list_head *list, bool intr); |
| 99 | 100 | ||
| 100 | /** | 101 | /** |
| 101 | * function ttm_eu_fence_buffer_objects. | 102 | * function ttm_eu_fence_buffer_objects. |
