[Intel-gfx] [PATCH v2 2/6] drm/i915: Move legacy kernel context pinning to intel_ringbuffer.c
Chris Wilson
chris at chris-wilson.co.uk
Thu May 26 10:29:13 UTC 2016
On Thu, May 26, 2016 at 01:22:04PM +0300, Joonas Lahtinen wrote:
> > @@ -2327,6 +2350,14 @@ void intel_cleanup_engine(struct intel_engine_cs *engine)
> >
> > i915_cmd_parser_fini_ring(engine);
> > i915_gem_batch_pool_fini(&engine->batch_pool);
> > +
> > + kctx = dev_priv->kernel_context;
> > + ce = &kctx->engine[engine->id];
>
> I'd move these two upper in the function.
We can't just yet, because it is silly and has a dev_priv == NULL check.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list