igt/gem_concurrent_blit: Enable hang detection

When we aren't deliberately injecting hangs, we don't expect to see any
GPU hang. Detect them and fail early.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2016-03-24 07:57:30 +00:00
parent 756f3e0cb7
commit 6867b87b73

View File

@ -1408,6 +1408,9 @@ run_mode(const char *prefix,
if (!all && *h->suffix)
continue;
if (!*h->suffix)
igt_fork_hang_detector(fd);
for (p = all ? pipelines : pskip; p->prefix; p++) {
igt_fixture p->require();
@ -1535,6 +1538,9 @@ run_mode(const char *prefix,
p->copy, h->hang);
}
}
if (!*h->suffix)
igt_stop_hang_detector();
}
igt_fixture
@ -1597,6 +1603,8 @@ num_buffers(uint64_t max,
if (c->require)
c->require(c, n);
intel_require_memory(2*n, size, allow_mem);
return n;
}