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

Caz Yokoyama caz.yokoyama at intel.com
Fri Mar 29 21:32:36 UTC 2019


By clean up idle work, gem-execbuf-stress subtest runs 1.2 sec.

I divide "i915_pm_rpm: remove gem-execbuf-stress-extra-wait because
same as gem-execbuf-stress" into 2 patches. This is one of them.

Cc: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Caz Yokoyama <caz.yokoyama at intel.com>
---
 tests/i915/i915_pm_rpm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 759c76ea..7e7efb74 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -1338,8 +1338,11 @@ static void gem_execbuf_stress_subtest(int rounds, int wait_flags)
 	for (i = 0; i < rounds; i++) {
 		gem_execbuf(drm_fd, &execbuf);
 
-		if (wait_flags & WAIT_STATUS)
+		if (wait_flags & WAIT_STATUS) {
+			/* clean up idle work */
+			igt_drop_caches_set(drm_fd, DROP_IDLE);
 			igt_assert(wait_for_suspended());
+		}
 		if (wait_flags & WAIT_PC8_RES)
 			igt_assert(pc8_plus_residency_changed(30));
 		if (wait_flags & WAIT_EXTRA)
-- 
2.17.1



More information about the igt-dev mailing list