Commit 5aa3651c authored by Chris Wilson's avatar Chris Wilson

i915/gem_eio: Check that context create fails when wedged

Lock down the new uABI that DRM_IOCTL_I915_GEM_CONTEXT_CREATE returns
-EIO when wedged.
Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Antonio Argenziano's avatarAntonio Argenziano <antonio.argenziano@intel.com>
parent da2aa265
Pipeline #20386 passed with stages
in 5 minutes and 50 seconds
......@@ -118,6 +118,17 @@ static void test_throttle(int fd)
trigger_reset(fd);
}
static void test_context_create(int fd)
{
uint32_t ctx;
wedge_gpu(fd);
igt_assert_eq(__gem_context_create(fd, &ctx), -EIO);
trigger_reset(fd);
}
static void test_execbuf(int fd)
{
struct drm_i915_gem_execbuffer2 execbuf;
......@@ -819,6 +830,9 @@ igt_main
igt_subtest("throttle")
test_throttle(fd);
igt_subtest("context-create")
test_context_create(fd);
igt_subtest("execbuf")
test_execbuf(fd);
......
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