diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-03-19 17:05:37 -0500 |
---|---|---|
committer | Jason Ekstrand <jason@jlekstrand.net> | 2021-06-09 10:11:01 -0500 |
commit | a52821673989410aa8ff7276a1c27f942cbed4a0 (patch) | |
tree | cdb1a6cfec1f19ca259dddcbdd6c0b37167b815f /tests | |
parent | 9f53cda33585812f15eacfc76766971f391be2f1 (diff) |
tests/i915/gem_exec_balancer: Drop the ringsize subtest
I915_CONTEXT_PARAM_RINGSIZE is being removed from upstream i915 because
it's never been used by any userspace other than IGT.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/gem_exec_balancer.c | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c index 12cb55ab..bf99a1ee 100644 --- a/tests/i915/gem_exec_balancer.c +++ b/tests/i915/gem_exec_balancer.c @@ -2552,84 +2552,6 @@ next: gem_quiescent_gpu(i915); } -static void sighandler(int sig) -{ -} - -static unsigned int measure_inflight(int i915, uint32_t ctx, int timeout) -{ - igt_spin_t *spin = igt_spin_new(i915, ctx); - unsigned int count; - int err; - - fcntl(i915, F_SETFL, fcntl(i915, F_GETFL) | O_NONBLOCK); - signal(SIGALRM, sighandler); - alarm(timeout); - - for (count = 1; (err = __execbuf(i915, &spin->execbuf)) == 0; count++) - ; - igt_assert_eq(err, -EWOULDBLOCK); - - alarm(0); - signal(SIGALRM, SIG_DFL); - fcntl(i915, F_SETFL, fcntl(i915, F_GETFL) & ~O_NONBLOCK); - - igt_spin_free(i915, spin); - - return count; -} - -static void __resize(int i915, uint32_t ctx) -{ - struct drm_i915_gem_context_param p = { - .ctx_id = ctx, - .param = I915_CONTEXT_PARAM_RINGSIZE, - }; - unsigned int prev[2] = {}; - uint64_t elapsed; - - elapsed = 0; - gem_quiescent_gpu(i915); - for (p.value = 1 << 12; p.value <= 128 << 12; p.value <<= 1) { - struct timespec tv = {}; - unsigned int count; - - gem_context_set_param(i915, &p); - - igt_nsec_elapsed(&tv); - count = measure_inflight(i915, ctx, 1 + 4 * ceil(elapsed*1e-9)); - elapsed = igt_nsec_elapsed(&tv); - - igt_info("%6llx -> %'6d\n", p.value, count); - igt_assert(count > 3 * (prev[1] - prev[0]) / 4 + prev[1]); - - prev[0] = prev[1]; - prev[1] = count; - } - gem_quiescent_gpu(i915); -} - -static void ringsz(int i915) -{ - for (int class = 0; class < 32; class++) { - struct i915_engine_class_instance *ci; - unsigned int count; - uint32_t ctx; - - ci = list_engines(i915, 1u << class, &count); - if (!ci || count < 2) - goto next; - - ctx = load_balancer_create(i915, ci, count); - __resize(i915, ctx); - gem_context_destroy(i915, ctx); -next: - free(ci); - } - - gem_quiescent_gpu(i915); -} - static void ping(int i915, uint32_t ctx, unsigned int engine) { struct drm_i915_gem_exec_object2 obj = { @@ -3305,9 +3227,6 @@ igt_main igt_subtest("fairslice") fairslice(i915); - igt_subtest("ringsize") - ringsz(i915); - igt_subtest("nop") nop(i915); |