From: Tvrtko Ursulin <[email protected]>

Avoid running subsequent subtests in non-default setup by restoring the
runtime PM config in one particular subtest.

Signed-off-by: Tvrtko Ursulin <[email protected]>
---
 tests/perf_pmu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index a1d36ac4fa9d..9a20abb6b95c 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -1441,6 +1441,9 @@ test_rc6(int gem_fd, unsigned int flags)
        close(fw);
        close(fd);
 
+       if (flags & TEST_RUNTIME_PM)
+               igt_restore_runtime_pm();
+
        assert_within_epsilon(busy - prev, 0.0, tolerance);
 }
 
-- 
2.17.1

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

Reply via email to