drm/i915/selftests: Err out on coherency if initialisation failed
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Dec 2019 10:30:50 +0000 (10:30 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Dec 2019 17:01:32 +0000 (17:01 +0000)
commit6ea578a519fe456b04a71e9ff26eba52dd0203b4
tree4b0782bcb746e86acddae31d5dc407b510bddf33
parentb761a7b47ba129df3df042ee0a66b88acb086303
drm/i915/selftests: Err out on coherency if initialisation failed

If gt initialisation failed, we are left with no engines to use for
coherency testing. Currently we bug out, which makes the actual error,
so fail more gracefully instead.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/896
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191227103050.2715402-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_coherency.c