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)
commit5f9be05432cb4c323967f6d71ce0ecc024a775c7
treeab2bb69a4a5962ebd45603fae9956581beb2459b
parent27dbefb911f2650f473eb98b5de79e88f6559c64
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