[igt-dev] [PATCH i-g-t 1/3] tests/perf: Use poll oa period minimum of 5 ms

Umesh Nerlige Ramappa
2020-04-13T15:55:36Z

The cpu overhead measured in these tests is based on heurisitcs
determined for the default 5 ms hrtimer in the driver over a span of
several platforms. Limit tests to use a poll oa period >= 5ms.

Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
---
tests/perf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/perf.c b/tests/perf.c
index 152d48a7..ca12090a 100644
--- a/tests/perf.c
+++ b/tests/perf.c
@@ -4972,7 +4972,7 @@ igt_main
40 * 1000 * 1000 /* default 40ms hrtimer */);
test_blocking(500 * 1000 /* 500us oa period */,
true /* set_kernel_hrtimer */,
- 2 * 1000 * 1000 /* default 2ms hrtimer */);
+ 5 * 1000 * 1000 /* default 2ms hrtimer */);
}

igt_describe("Test polled read with default hrtimer frequency");
@@ -4991,7 +4991,7 @@ igt_main
40 * 1000 * 1000 /* default 40ms hrtimer */);
test_polling(500 * 1000 /* 500us oa period */,
true /* set_kernel_hrtimer */,
- 2 * 1000 * 1000 /* default 2ms hrtimer */);
+ 5 * 1000 * 1000 /* default 2ms hrtimer */);
}

igt_describe("Test polled read with buffer size smaller than available data");