Skip to content

Commit

Permalink
i915/gem/selftests: Assign the VM at context creation in igt_shared_c…
Browse files Browse the repository at this point in the history
…tx_exec

We want to delete __assign_ppgtt and, generally, stop setting the VM
after context creation.  This is the one place I could find in the
selftests where we set a VM after the fact.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
gfxstrand authored and intel-lab-lkp committed Jun 9, 2021
1 parent 4d8ec2e commit fa5fb14
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,16 +813,12 @@ static int igt_shared_ctx_exec(void *arg)
struct i915_gem_context *ctx;
struct intel_context *ce;

ctx = kernel_context(i915, NULL);
ctx = kernel_context(i915, ctx_vm(parent));
if (IS_ERR(ctx)) {
err = PTR_ERR(ctx);
goto out_test;
}

mutex_lock(&ctx->mutex);
__assign_ppgtt(ctx, ctx_vm(parent));
mutex_unlock(&ctx->mutex);

ce = i915_gem_context_get_engine(ctx, engine->legacy_idx);
GEM_BUG_ON(IS_ERR(ce));

Expand Down

0 comments on commit fa5fb14

Please sign in to comment.