drm/i915: Allocate kernel_contexts directly
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2019 11:06:11 +0000 (12:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Aug 2019 14:45:34 +0000 (15:45 +0100)
commit387758298bfdec9fbb74406207eb648bb6391670
tree8e33bbf7b4b3c6f95db7f01a06656fb745cedeec
parentca883c304f54a5b2fc83c2729691e9eae3a1226e
drm/i915: Allocate kernel_contexts directly

Ignore the central i915->kernel_context for allocating an engine, as
that GEM context is being phased out. For internal clients, we just need
the per-engine logical state, so allocate it at the point of use.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808110612.23539-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/mock_engine.c
drivers/gpu/drm/i915/gvt/scheduler.c
drivers/gpu/drm/i915/i915_gem.c