|
@@ -679,13 +679,6 @@ static int eb_select_context(struct i915_execbuffer *eb)
|
|
if (unlikely(!ctx))
|
|
if (unlikely(!ctx))
|
|
return -ENOENT;
|
|
return -ENOENT;
|
|
|
|
|
|
- if (unlikely(i915_gem_context_is_banned(ctx))) {
|
|
|
|
- DRM_DEBUG("Context %u tried to submit while banned\n",
|
|
|
|
- ctx->user_handle);
|
|
|
|
- i915_gem_context_put(ctx);
|
|
|
|
- return -EIO;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
eb->ctx = ctx;
|
|
eb->ctx = ctx;
|
|
eb->vm = ctx->ppgtt ? &ctx->ppgtt->base : &eb->i915->ggtt.base;
|
|
eb->vm = ctx->ppgtt ? &ctx->ppgtt->base : &eb->i915->ggtt.base;
|
|
|
|
|
|
@@ -707,6 +700,12 @@ static int eb_lookup_vmas(struct i915_execbuffer *eb)
|
|
int slow_pass = -1;
|
|
int slow_pass = -1;
|
|
int err;
|
|
int err;
|
|
|
|
|
|
|
|
+ if (unlikely(i915_gem_context_is_closed(eb->ctx)))
|
|
|
|
+ return -ENOENT;
|
|
|
|
+
|
|
|
|
+ if (unlikely(i915_gem_context_is_banned(eb->ctx)))
|
|
|
|
+ return -EIO;
|
|
|
|
+
|
|
INIT_LIST_HEAD(&eb->relocs);
|
|
INIT_LIST_HEAD(&eb->relocs);
|
|
INIT_LIST_HEAD(&eb->unbound);
|
|
INIT_LIST_HEAD(&eb->unbound);
|
|
|
|
|