[igt-dev] [PATCH i-g-t 1/1] i915_pm_rpm: gem-execbuf-stress-extra-wait faster

Caz Yokoyama caz.yokoyama at intel.com
Wed Mar 6 00:06:55 UTC 2019


Less iterate because WAIT_EXTRA adds extra 5 sec delay for each iteration.
This test is similar to gem-execbuf-stress except for WAIT_EXTRA.
It runs 86 sec. while gem-execbuf-stress runs 38 sec.
i.e. 38s + iteration(rounds,10) * 5s = 88s

In case of modeset-stress-extra-wait, iteration is reduced to half.
Do same for gem-execbuf-stress-extra-wait.

Execution time becomes 44 sec.

Signed-off-by: Caz Yokoyama <caz.yokoyama at intel.com>
---
 tests/i915/i915_pm_rpm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index be296f52..a52ecbb0 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -2083,8 +2083,10 @@ int main(int argc, char *argv[])
 		gem_execbuf_stress_subtest(rounds, WAIT_STATUS);
 	igt_subtest("gem-execbuf-stress-pc8")
 		gem_execbuf_stress_subtest(rounds, WAIT_PC8_RES);
+	/* less iteration because of WAIT_EXTRA, i.e. 5 sec delay */
 	igt_subtest("gem-execbuf-stress-extra-wait")
-		gem_execbuf_stress_subtest(rounds, WAIT_STATUS | WAIT_EXTRA);
+		gem_execbuf_stress_subtest(rounds / 2,
+					   WAIT_STATUS | WAIT_EXTRA);
 
 	/* power-wake reference tests */
 	igt_subtest("pm-tiling")
-- 
2.17.1



More information about the igt-dev mailing list