[Intel-gfx] [PATCH i-g-t] perf: Flush the work between rounds of gen8-unprivileged-single-ctx-counter
Chris Wilson
chris at chris-wilson.co.uk
Wed Apr 29 14:51:13 UTC 2020
Wait until the GPU is idle before starting a fresh round of probing
gen8-unprivileged-single-ctx-counter. This avoids building up a huge
backlog of render copies, hogging buffers and stale contexts, and
invoking the oomkiller.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
tests/perf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/perf.c b/tests/perf.c
index 74fc8fd87..2d23a02c6 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -3787,6 +3787,7 @@ gen8_test_single_ctx_render_target_writes_a_counter(void)
drm_intel_gem_context_destroy(context1);
drm_intel_bufmgr_destroy(bufmgr);
__perf_close(stream_fd);
+ gem_quiescent_gpu(drm_fd);
}
child_ret = igt_wait_helper(&child);
--
2.26.2
More information about the Intel-gfx
mailing list