diff options
| author | Chris Wilson <[email protected]> | 2018-07-06 07:53:12 +0100 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2018-07-06 11:25:06 +0100 |
| commit | 7783decff5be6811a1a31df91b47fd2541b993d0 (patch) | |
| tree | 158a35fb1d330baa7a41ecc90d6bf5c0f6aa9533 | |
| parent | 47e61a79806d5d222261250dc573a68c53e99c22 (diff) | |
drm/i915/selftests: Skip live eviction tests when wedged
If the GPU is irrecoverably wedged, we cannot submit any requests and so
cannot make the GTT busy in order to test evicting active objects. As
this expectedly fails, skip over the test.
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
| -rw-r--r-- | drivers/gpu/drm/i915/selftests/i915_gem_evict.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_evict.c b/drivers/gpu/drm/i915/selftests/i915_gem_evict.c index 8059268800fa..128ad1cf0647 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem_evict.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem_evict.c @@ -500,5 +500,8 @@ int i915_gem_evict_live_selftests(struct drm_i915_private *i915) SUBTEST(igt_evict_contexts), }; + if (i915_terminally_wedged(&i915->gpu_error)) + return 0; + return i915_subtests(tests, i915); } |