]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Bail if we do not setup the RCS engine
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Apr 2017 16:56:58 +0000 (17:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Apr 2017 17:59:00 +0000 (18:59 +0100)
commite30de7151580550a60149aeb38e365b0f99be4da
treeab2bb69a4a5962ebd45603fae9956581beb2459b
parent2421c73a251b1f63adc72a59bf215aa20c362b9b
drm/i915: Bail if we do not setup the RCS engine

In places, we assume that RCS exists. This has been true forever, but
let us catch this failure during bringup by adding an explicit check
that we do have an RCS engine.

v2: Make use of HAS_ENGINE (Tvrtko)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170411165658.23828-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c