All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/3] lib: Assert that we do manage to submit at least one batch when measuring
@ 2018-05-30 10:33 ` Chris Wilson
  0 siblings, 0 replies; 22+ messages in thread
From: Chris Wilson @ 2018-05-30 10:33 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

As we measure the ring size, we never expect to find we can not submit
no batches at all. Assert against the unexpected.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
---
 lib/i915/gem_ring.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/i915/gem_ring.c b/lib/i915/gem_ring.c
index 10d2f2cd4..7d64165eb 100644
--- a/lib/i915/gem_ring.c
+++ b/lib/i915/gem_ring.c
@@ -100,6 +100,7 @@ __gem_measure_ring_inflight(int fd, unsigned int engine, enum measure_ring_flags
 	} while (1);
 
 	igt_assert_eq(__execbuf(fd, &execbuf), -EINTR);
+	igt_assert(count);
 
 	memset(&itv, 0, sizeof(itv));
 	setitimer(ITIMER_REAL, &itv, NULL);
-- 
2.17.0

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

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

end of thread, other threads:[~2018-05-31 16:57 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-30 10:33 [PATCH i-g-t 1/3] lib: Assert that we do manage to submit at least one batch when measuring Chris Wilson
2018-05-30 10:33 ` [Intel-gfx] " Chris Wilson
2018-05-30 10:33 ` [PATCH i-g-t 2/3] lib: Align ring measurement to timer Chris Wilson
2018-05-30 10:33   ` [igt-dev] " Chris Wilson
2018-05-30 17:30   ` Antonio Argenziano
2018-05-30 17:30     ` [Intel-gfx] " Antonio Argenziano
2018-05-30 19:52     ` Chris Wilson
2018-05-30 19:52       ` [Intel-gfx] " Chris Wilson
2018-05-31 14:42       ` Antonio Argenziano
2018-05-31 14:42         ` [igt-dev] [Intel-gfx] " Antonio Argenziano
2018-05-31 14:56         ` Chris Wilson
2018-05-31 14:56           ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-05-30 10:33 ` [PATCH i-g-t 3/3] lib: Double check ring measurement Chris Wilson
2018-05-30 10:33   ` [igt-dev] " Chris Wilson
2018-05-30 17:42   ` Antonio Argenziano
2018-05-30 17:42     ` [igt-dev] " Antonio Argenziano
2018-05-31 16:57     ` Chris Wilson
2018-05-31 16:57       ` [igt-dev] " Chris Wilson
2018-05-30 12:23 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] lib: Assert that we do manage to submit at least one batch when measuring Patchwork
2018-05-30 13:56 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-05-30 16:27 ` [PATCH i-g-t 1/3] " Antonio Argenziano
2018-05-30 16:27   ` [igt-dev] " Antonio Argenziano

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.