From 980e896792a2193e25886b89ef316c7007883ef3 Mon Sep 17 00:00:00 2001 From: Caz Yokoyama Date: Fri, 29 Mar 2019 14:32:36 -0700 Subject: i915_pm_rpm: gem-execbuf-stress subtest faster 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 Signed-off-by: Caz Yokoyama Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson --- tests/i915/i915_pm_rpm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/i915') diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c index 03de609c..a2c9d0ed 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) -- cgit v1.2.3