summaryrefslogtreecommitdiff
path: root/tests/i915/gem_ctx_exec.c
diff options
context:
space:
mode:
authorPriyanka Dandamudi <priyanka.dandamudi@intel.com>2022-03-09 15:17:18 +0530
committerPriyanka Dandamudi <priyanka.dandamudi@intel.com>2022-03-14 15:28:42 +0530
commitc8a4f525bfe17d229019caffbd4ef5313015bafc (patch)
tree4c22ac4843fed677df180bb368c93bda6b963bf7 /tests/i915/gem_ctx_exec.c
parente6a29643dc4d7ae45efc3f25c30ef8ffac875f18 (diff)
i915/gem_ctx_exec: Added test description for testcase
Added test description to all the available subtests. v2: Added description for newly added test case. v3: Modified test descriptions. Cc: Melkaveri Arjun <arjun.melkaveri@intel.com> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_ctx_exec.c')
-rw-r--r--tests/i915/gem_ctx_exec.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c
index a1270a88..1f3d1a44 100644
--- a/tests/i915/gem_ctx_exec.c
+++ b/tests/i915/gem_ctx_exec.c
@@ -465,6 +465,7 @@ igt_main
gem_write(fd, handle, 0, batch, sizeof(batch));
}
+ igt_describe("Check the basic context batch buffer execution.");
igt_subtest("basic") {
ctx_id = gem_context_create(fd);
igt_assert(exec(fd, handle, 0, ctx_id) == 0);
@@ -480,18 +481,27 @@ igt_main
gem_sync(fd, handle);
}
+ igt_describe("Verify that execbuf with invalid context fails.");
igt_subtest("basic-invalid-context")
invalid_context(fd, handle);
+ igt_describe("Check maximum number of buffers it can"
+ " evict for a context.");
igt_subtest("eviction")
big_exec(fd, handle, 0);
+ igt_describe("Check the status of context after a hang"
+ " by setting and unsetting the RECOVERABLE.");
igt_subtest("basic-norecovery")
norecovery(fd);
+ igt_describe("Verify that contexts are automatically shotdown"
+ " on close, if hangchecking is disabled.");
igt_subtest("basic-nohangcheck")
nohangcheck_hostile(fd);
+ igt_describe("Race the execution and interrupt handlers along a context,"
+ " while closing it at a random time.");
igt_subtest_group {
igt_fixture {
intel_allocator_multiprocess_start();
@@ -505,6 +515,8 @@ igt_main
}
}
+ igt_describe("Check if the kernel doesn't leak the vma"
+ " pin_count for the last context on reset.");
igt_subtest("reset-pin-leak") {
int i;
uint64_t ahnd;