diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-06-17 11:09:43 -0500 |
---|---|---|
committer | Jason Ekstrand <jason@jlekstrand.net> | 2021-07-08 12:45:33 -0500 |
commit | b33709cc58aa3c2cfb23180d38843dfa30ee8b42 (patch) | |
tree | 2bf15e23c2ab44d58a72f05430028f310b0cf408 /tests/i915/gem_eio.c | |
parent | e02a380f1bcdc1af19ad683ca2f406a7e0038d76 (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/gem_eio.c')
-rw-r--r-- | tests/i915/gem_eio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c index 5cb242a3..50d250f3 100644 --- a/tests/i915/gem_eio.c +++ b/tests/i915/gem_eio.c @@ -77,7 +77,7 @@ static void trigger_reset(int fd) /* And just check the gpu is indeed running again */ igt_kmsg(KMSG_DEBUG "Checking that the GPU recovered\n"); - gem_test_engine(fd, ALL_ENGINES); + gem_test_all_engines(fd); igt_debugfs_dump(fd, "i915_engine_info"); igt_drop_caches_set(fd, DROP_ACTIVE); |