]> 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)
commitf1a5ea89b062b4057654725bedfec1a18903b72f
treeab2bb69a4a5962ebd45603fae9956581beb2459b
parentc12cc92088e01fc630fbcfbf2ad97e140db5bbdd
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