summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-04-25 18:35:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2016-04-25 18:52:05 +0100
commit102943d1bab55e789ffc14f84cdc2567e5916c8c (patch)
treeb1571a5aeee5111a13c05cc316b0a8d7242d0f7b /tests
parent81864b55b0d3023711a090e75c68e4ea4a185ba2 (diff)
igt/gem_busy: Avoid BSD emission on gen6
Remember to skip using BSD on gen6, unless you want to kill the machine. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95134 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_busy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gem_busy.c b/tests/gem_busy.c
index af634c58..100a42c1 100644
--- a/tests/gem_busy.c
+++ b/tests/gem_busy.c
@@ -318,6 +318,12 @@ static void one(int fd, unsigned ring, uint32_t flags, unsigned test_flags)
if (e->exec_id == 0 || e->exec_id == ring)
continue;
+ if (e->exec_id == I915_EXEC_BSD && gen == 6)
+ continue;
+
+ if (!gem_has_ring(fd, e->exec_id | e->flags))
+ continue;
+
igt_debug("Testing %s in parallel\n", e->name);
one(fd, e->exec_id, e->flags, 0);
}