summaryrefslogtreecommitdiff
path: root/tests/i915/i915_pm_rpm.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2021-06-17 11:09:43 -0500
committerJason Ekstrand <jason@jlekstrand.net>2021-07-08 12:45:33 -0500
commitb33709cc58aa3c2cfb23180d38843dfa30ee8b42 (patch)
tree2bf15e23c2ab44d58a72f05430028f310b0cf408 /tests/i915/i915_pm_rpm.c
parente02a380f1bcdc1af19ad683ca2f406a7e0038d76 (diff)
lib/i915/submission: Rework gem_test_all_engines to use intel_ctx_t (v3)
This function used to be called gem_test_engine but it's only ever used to test all the engines in the GPU so we rename it for the one thing it's used for. We also convert to intel_ctx_t. It now creates a new context with all physical engines and iterates over all the engines in it. v2 (Ashutosh Dixit): - Delete the now non-existent @engine param from the docs v3 (Jason Ekstrand): - Create the context after re-opening the device Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/i915/i915_pm_rpm.c')
-rw-r--r--tests/i915/i915_pm_rpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index da498ad6..fb7a70aa 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -1408,7 +1408,7 @@ static void gem_idle_subtest(void)
sleep(5);
- gem_test_engine(drm_fd, -1);
+ gem_test_all_engines(drm_fd);
}
static void gem_evict_pwrite_subtest(void)