All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH igt] igt/gem_ringfill: Add exercising the default-ring to basic testing
@ 2016-01-28 12:18 Chris Wilson
  2016-02-19 12:47 ` Ben Duckworth
  0 siblings, 1 reply; 3+ messages in thread
From: Chris Wilson @ 2016-01-28 12:18 UTC (permalink / raw)
  To: intel-gfx

ringfill generates a few very common errors when submitting requests,
and historically these have been where we have had many implementation
bugs, repeated over and over again.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_ringfill.c | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/tests/gem_ringfill.c b/tests/gem_ringfill.c
index bd1f371..f81a70b 100644
--- a/tests/gem_ringfill.c
+++ b/tests/gem_ringfill.c
@@ -189,30 +189,27 @@ static void run_test(int fd, unsigned ring, unsigned flags)
 igt_main
 {
 	const struct {
-		const char *prefix;
 		const char *suffix;
 		unsigned flags;
 	} modes[] = {
-		{ "basic-", "", 0 },
-		{ "", "-interruptible", INTERRUPTIBLE },
-		{ "", "-hang", HANG },
-		{ "", "-child", CHILD },
-		{ "", "-forked", FORKED },
-		{ "", "-bomb", BOMB | INTERRUPTIBLE },
-		{ NULL, NULL, 0 }
+		{ "", 0 },
+		{ "-interruptible", INTERRUPTIBLE },
+		{ "-hang", HANG },
+		{ "-child", CHILD },
+		{ "-forked", FORKED },
+		{ "-bomb", BOMB | INTERRUPTIBLE },
+		{ NULL, 0 }
 	}, *mode;
 	const struct intel_execution_engine *e;
 	int fd;
 
-	igt_skip_on_simulation();
-
 	igt_fixture
 		fd = drm_open_driver_master(DRIVER_INTEL);
 
-	for (mode = modes; mode->prefix; mode++) {
+	for (mode = modes; mode->suffix; mode++) {
 		for (e = intel_execution_engines; e->name; e++) {
 			igt_subtest_f("%s%s%s",
-				      e->exec_id || (mode->flags & ~INTERRUPTIBLE) ? "" : mode->prefix,
+				      e->exec_id ? "" : "basic-",
 				      e->name,
 				      mode->suffix)
 				run_test(fd, e->exec_id | e->flags, mode->flags);
-- 
2.7.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-19 12:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 12:18 [PATCH igt] igt/gem_ringfill: Add exercising the default-ring to basic testing Chris Wilson
2016-02-19 12:47 ` Ben Duckworth
2016-02-19 12:55   ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.