Commit e16f4c36 authored by Chris Wilson's avatar Chris Wilson

drm/i915/selftests: Skip making an object busy if the GPU is wedged

If the GPU is wedged, we cannot make the object busy as trying to
submit a request will generate -EIO. Skip to the end of the test.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706065332.15214-4-chris@chris-wilson.co.uk
parent b5f6e53d
...@@ -553,6 +553,9 @@ static int igt_mmap_offset_exhaustion(void *arg) ...@@ -553,6 +553,9 @@ static int igt_mmap_offset_exhaustion(void *arg)
/* Now fill with busy dead objects that we expect to reap */ /* Now fill with busy dead objects that we expect to reap */
for (loop = 0; loop < 3; loop++) { for (loop = 0; loop < 3; loop++) {
if (i915_terminally_wedged(&i915->gpu_error))
break;
obj = i915_gem_object_create_internal(i915, PAGE_SIZE); obj = i915_gem_object_create_internal(i915, PAGE_SIZE);
if (IS_ERR(obj)) { if (IS_ERR(obj)) {
err = PTR_ERR(obj); err = PTR_ERR(obj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment