diff options
author | Dave Airlie <airlied@redhat.com> | 2014-04-05 02:07:39 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-04-05 02:07:39 -0400 |
commit | 8d51a977a4961d3ed6df699aea50bc2dd6bbc5cc (patch) | |
tree | cff4fe3ab8eee3d8efab35aa5dad0d7c33bde527 /drivers/gpu/drm/ttm/ttm_execbuf_util.c | |
parent | aa17edff0afa893b5ab1dd60d842cc6f42e847b4 (diff) | |
parent | c75230833ce4fbbfaa257c07b55f97912fb1dc02 (diff) |
Merge tag 'ttm-next-2014-04-04' of git://people.freedesktop.org/~thomash/linux into drm-next
Pull request of 2014-04-04
Currently only a single patch fixing up mixed use of the ttm_bo_reserve and
ww_mutex APIs
* tag 'ttm-next-2014-04-04' of git://people.freedesktop.org/~thomash/linux:
drm/ttm: Hide the implementation details of reservation
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_execbuf_util.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_execbuf_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c index 479e9418e3d7..e8dac8758528 100644 --- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c +++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c | |||
@@ -46,7 +46,7 @@ static void ttm_eu_backoff_reservation_locked(struct list_head *list) | |||
46 | ttm_bo_add_to_lru(bo); | 46 | ttm_bo_add_to_lru(bo); |
47 | entry->removed = false; | 47 | entry->removed = false; |
48 | } | 48 | } |
49 | ww_mutex_unlock(&bo->resv->lock); | 49 | __ttm_bo_unreserve(bo); |
50 | } | 50 | } |
51 | } | 51 | } |
52 | 52 | ||
@@ -140,8 +140,8 @@ retry: | |||
140 | if (entry->reserved) | 140 | if (entry->reserved) |
141 | continue; | 141 | continue; |
142 | 142 | ||
143 | ret = ttm_bo_reserve_nolru(bo, true, (ticket == NULL), true, | 143 | ret = __ttm_bo_reserve(bo, true, (ticket == NULL), true, |
144 | ticket); | 144 | ticket); |
145 | 145 | ||
146 | if (ret == -EDEADLK) { | 146 | if (ret == -EDEADLK) { |
147 | /* uh oh, we lost out, drop every reservation and try | 147 | /* uh oh, we lost out, drop every reservation and try |
@@ -224,7 +224,7 @@ void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, | |||
224 | entry->old_sync_obj = bo->sync_obj; | 224 | entry->old_sync_obj = bo->sync_obj; |
225 | bo->sync_obj = driver->sync_obj_ref(sync_obj); | 225 | bo->sync_obj = driver->sync_obj_ref(sync_obj); |
226 | ttm_bo_add_to_lru(bo); | 226 | ttm_bo_add_to_lru(bo); |
227 | ww_mutex_unlock(&bo->resv->lock); | 227 | __ttm_bo_unreserve(bo); |
228 | entry->reserved = false; | 228 | entry->reserved = false; |
229 | } | 229 | } |
230 | spin_unlock(&bdev->fence_lock); | 230 | spin_unlock(&bdev->fence_lock); |