diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-06 13:45:10 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-07-06 15:05:23 +0200 |
commit | 03bbc508a312d9f4833f1cb0f7b2da7517787b61 (patch) | |
tree | 9efbb0e208246f372f2ea9bb3d0722651f8194f8 /drivers | |
parent | drm/i915/selftests: Skip live context execution test without logical contexts (diff) | |
download | linux-03bbc508a312d9f4833f1cb0f7b2da7517787b61.tar.xz linux-03bbc508a312d9f4833f1cb0f7b2da7517787b61.zip |
drm/i915/selftests: Skip live_execlists if the GPU is terminally wedged
If the GPU is irrecoverably wedged, we can not execute any requests
making testing execlists (request execution) pointless. Skip!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706114510.18467-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/selftests/intel_lrc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/intel_lrc.c b/drivers/gpu/drm/i915/selftests/intel_lrc.c index ea27c7cfbf96..730a02d39058 100644 --- a/drivers/gpu/drm/i915/selftests/intel_lrc.c +++ b/drivers/gpu/drm/i915/selftests/intel_lrc.c @@ -455,5 +455,8 @@ int intel_execlists_live_selftests(struct drm_i915_private *i915) if (!HAS_EXECLISTS(i915)) return 0; + if (i915_terminally_wedged(&i915->gpu_error)) + return 0; + return i915_subtests(tests, i915); } |