drm/i915/gt: Ignore incomplete engines after init failure
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Dec 2019 19:12:37 +0000 (19:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Dec 2019 19:51:42 +0000 (19:51 +0000)
commitb761a7b47ba129df3df042ee0a66b88acb086303
treef54e196474e8dc5419b50a0ffa6675a71916a5f2
parentd03b224f425295ba17e5a6f29713da310e9a0d72
drm/i915/gt: Ignore incomplete engines after init failure

Do not expose incomplete engines to the user after we fail to setup the
GT.

Fixes: e6ba76480299 ("drm/i915: Remove i915->kernel_context")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191226191237.2654510-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_user.c
drivers/gpu/drm/i915/gt/intel_gt.h
drivers/gpu/drm/i915/gt/intel_reset.c