mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 17:36:11 +00:00
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:
parent
bf74a0ca3f
commit
0cc6a219f1
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user