From: Tvrtko Ursulin <[email protected]>

As Chris has discover 100ms is not long enough to cover the sampling
error in general, fix the semaphore subtest as well to measure for
500ms.

Signed-off-by: Tvrtko Ursulin <[email protected]>
Cc: Chris Wilson <[email protected]>
---
 tests/perf_pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index bf862b2f8506..a97f59007dcb 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -416,7 +416,7 @@ sema_wait(int gem_fd, const struct intel_execution_engine2 
*e)
 
        gem_execbuf(gem_fd, &eb);
 
-       slept = measured_usleep(100e3);
+       slept = measured_usleep(batch_duration_ns / 1000);
 
        *obj_ptr = 1;
 
-- 
2.14.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to