]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb089764163fc9deaeb16c953f40983fe48db2374
tree8e33bbf7b4b3c6f95db7f01a06656fb745cedeec
parentb67effa1bbaf954e13e158cde646f34515665a11
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