From 554237f35109b64d1ecd5a309190c4f654f49dab Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Thu, 18 Oct 2012 22:37:20 +0200 Subject: [PATCH] tests/gem_cs_tlb: make it more robust ... 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/gem_cs_tlb.c b/tests/gem_cs_tlb.c index d42b9a01..09213648 100644 --- a/tests/gem_cs_tlb.c +++ b/tests/gem_cs_tlb.c @@ -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))