mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 01:16:18 +00:00
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:
parent
756f3e0cb7
commit
6867b87b73
@ -1408,6 +1408,9 @@ run_mode(const char *prefix,
|
|||||||
if (!all && *h->suffix)
|
if (!all && *h->suffix)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (!*h->suffix)
|
||||||
|
igt_fork_hang_detector(fd);
|
||||||
|
|
||||||
for (p = all ? pipelines : pskip; p->prefix; p++) {
|
for (p = all ? pipelines : pskip; p->prefix; p++) {
|
||||||
igt_fixture p->require();
|
igt_fixture p->require();
|
||||||
|
|
||||||
@ -1535,6 +1538,9 @@ run_mode(const char *prefix,
|
|||||||
p->copy, h->hang);
|
p->copy, h->hang);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!*h->suffix)
|
||||||
|
igt_stop_hang_detector();
|
||||||
}
|
}
|
||||||
|
|
||||||
igt_fixture
|
igt_fixture
|
||||||
@ -1597,6 +1603,8 @@ num_buffers(uint64_t max,
|
|||||||
if (c->require)
|
if (c->require)
|
||||||
c->require(c, n);
|
c->require(c, n);
|
||||||
|
|
||||||
|
intel_require_memory(2*n, size, allow_mem);
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user