tests/gem_cs_tlb: make it more robust
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Oct 2012 20:37:20 +0000 (22:37 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Oct 2012 22:26:16 +0000 (00:26 +0200)
... using a fine roll of duct-tape. Dunno what exactly leaks out from
the previous testcase, but the bo gets moved about a bit and makes the
self-check of the test fail.

tests/gem_cs_tlb.c

index d42b9a0..0921364 100644 (file)
@@ -151,6 +151,11 @@ int main(int argc, char **argv)
        fd = drm_open_any();
        devid = intel_get_drm_devid(fd);
 
+       /* This test is very sensitive to residual gtt_mm noise from previous
+        * tests. Try to quiet thing down first. */
+       gem_quiescent_gpu(fd);
+       sleep(5); /* needs more serious ducttape */
+
        run_on_ring(fd, I915_EXEC_RENDER, "render");
 
        if (HAS_BSD_RING(devid))