aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_execbuf_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_execbuf_util.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_execbuf_util.c8
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);