kms_flip: Assert that hang_gpu() should only fail is the GPU is already hung

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-02-21 15:08:22 +00:00
parent bf74a0ca3f
commit 0cc6a219f1

View File

@ -747,6 +747,9 @@ static uint32_t hang_gpu(int fd)
execbuf.batch_len = sizeof(b);
if (drmIoctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, &execbuf)) {
igt_assert_f(errno == EIO,
"failed to exercise page flip hang recovery\n");
unhang_gpu(fd, gem_exec.handle);
gem_exec.handle = 0;
}