[igt-dev] [PATCH i-g-t 1/2] tests/gem_exec_nop: Kill obsolete pass/fail metric
Janusz Krzysztofik
janusz.krzysztofik at linux.intel.com
Fri May 8 13:56:30 UTC 2020
Commit 870c774b866c ("igt/gem_exec_nop: Add expectancy of independent
execution between engines") extended a "basic" subtest (now
"basic-series") with a pass/fail metric based on comparison of parallel
execution time to be less than an average * 2. Since then, that limit
has been raised quite a few times:
- by commit 41a26b5152a5 ("igt/gem_exec_nop: Relax parallel assertion
for short rings") to maximum + minimum,
- by commit 7bd4f918c461 ("igt/gem_exec_nop: Explain the parallel
execution assertion") to maximum + minimum * 10/9,
- by commit a0eebbddecaa ("igt/gem_exec_nop: Relax assertion for
parallel execution") to sum * 2.
With the criteria relaxed up to that extent, the purpose of that check
has been limited to a showcase for an old GuC failure. Since that is
now obsolete, kill that assert.
Suggested-by: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik at linux.intel.com>
---
tests/i915/gem_exec_nop.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/tests/i915/gem_exec_nop.c b/tests/i915/gem_exec_nop.c
index 357449c5b..c17d672c3 100644
--- a/tests/i915/gem_exec_nop.c
+++ b/tests/i915/gem_exec_nop.c
@@ -682,23 +682,6 @@ static void series(int fd, uint32_t handle, int timeout)
time = elapsed(&start, &now) / count;
igt_info("All (%d engines): %'lu cycles, average %.3fus per cycle [expected %.3fus]\n",
nengine, count, 1e6*time, 1e6*((max-min)/nengine+min));
-
- /* The rate limiting step should be how fast the slowest engine can
- * execute its queue of requests, as when we wait upon a full ring all
- * dispatch is frozen. So in general we cannot go faster than the
- * slowest engine (but as all engines are in lockstep, they should all
- * be executing in parallel and so the average should be max/nengines),
- * but we should equally not go any slower.
- *
- * However, that depends upon being able to submit fast enough, and
- * that in turns depends upon debugging turned off and no bottlenecks
- * within the driver. We cannot assert that we hit ideal conditions
- * across all engines, so we only look for an outrageous error
- * condition.
- */
- igt_assert_f(time < 2*sum,
- "Average time (%.3fus) exceeds expectation for parallel execution (min %.3fus, max %.3fus; limit set at %.3fus)\n",
- 1e6*time, 1e6*min, 1e6*max, 1e6*sum*2);
}
static void xchg(void *array, unsigned i, unsigned j)
--
2.21.1
More information about the igt-dev
mailing list