aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_execbuf_util.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-11-06 08:39:43 -0500
committerDave Airlie <airlied@redhat.com>2012-11-20 01:17:35 -0500
commit654aa79259a19f0d5e3cf9cb20aff56dc3b041b7 (patch)
tree406029f079300aac57d3463cf952b68d122619e9 /drivers/gpu/drm/ttm/ttm_execbuf_util.c
parent6c1e963cc5771c93d4ed7aa8bdd4322a7c918e9b (diff)
drm/ttm: alter cpu_writers to return -EBUSY in ttm_execbuf_util reservations
This is similar to other platforms that don't allow command submission to buffers locked on the cpu. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com> Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_execbuf_util.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_execbuf_util.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c
index b227a9961a07..1986d006c264 100644
--- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c
+++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c
@@ -185,10 +185,7 @@ retry_this_bo:
185 ttm_eu_backoff_reservation_locked(list); 185 ttm_eu_backoff_reservation_locked(list);
186 spin_unlock(&glob->lru_lock); 186 spin_unlock(&glob->lru_lock);
187 ttm_eu_list_ref_sub(list); 187 ttm_eu_list_ref_sub(list);
188 ret = ttm_bo_wait_cpu(bo, false); 188 return -EBUSY;
189 if (ret)
190 return ret;
191 goto retry;
192 } 189 }
193 } 190 }
194 191