From: sai.gowtham.ch@intel.com
To: igt-dev@lists.freedesktop.org, sai.gowtham.ch@intel.com,
kamil.konieczny@linux.intel.com
Subject: [igt-dev] [PATCH i-g-t 1/2] i915/gem_ctx_create: Added test description for test case
Date: Fri, 1 Apr 2022 14:13:48 +0530 [thread overview]
Message-ID: <20220401084349.9324-2-sai.gowtham.ch@intel.com> (raw)
In-Reply-To: <20220401084349.9324-1-sai.gowtham.ch@intel.com>
From: Ch Sai Gowtham <sai.gowtham.ch@intel.com>
Added test and subtests description
v2: Modified description to be more precise
v3: Rebase
v4: Incorporated minor changes in description based
on feedback
v5: Minor alignment adjustments
Signed-off-by: Ch Sai Gowtham <sai.gowtham.ch@intel.com>
Signed-off-by: Apoorva Singh <apoorva1.singh@intel.com>
Cc: Melkaveri, Arjun <arjun.melkaveri@intel.com>
Cc: Dec, Katarzyna <katarzyna.dec@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Acked-by: Katarzyna Dec <katarzyna.dec@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
tests/i915/gem_ctx_create.c | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/tests/i915/gem_ctx_create.c b/tests/i915/gem_ctx_create.c
index 44846652..248d9780 100644
--- a/tests/i915/gem_ctx_create.c
+++ b/tests/i915/gem_ctx_create.c
@@ -36,6 +36,8 @@
#include "igt_rand.h"
#include "sw_sync.h"
+IGT_TEST_DESCRIPTION("Test the context create ioctls");
+
#define ENGINE_FLAGS (I915_EXEC_RING_MASK | I915_EXEC_BSD_MASK)
static unsigned all_engines[I915_EXEC_RING_MASK + 1];
@@ -585,6 +587,7 @@ igt_main
igt_fork_hang_detector(fd);
}
+ igt_describe("Test random context creation");
igt_subtest("basic") {
memset(&create, 0, sizeof(create));
create.ctx_id = rand();
@@ -594,41 +597,67 @@ igt_main
gem_context_destroy(fd, create.ctx_id);
}
+ igt_describe("Verify valid and invalid context extensions");
igt_subtest("ext-param")
basic_ext_param(fd);
+
+ igt_describe("Set, validate and execute particular context params");
igt_subtest("iris-pipeline")
iris_pipeline(fd);
+ igt_describe("Create contexts upto available RAM size, calculate the average "
+ "performance of their execution on multiple parallel processes");
igt_subtest("maximum-mem")
maximum(fd, &cfg, ncpus, CHECK_RAM);
+
+ igt_describe("Create contexts upto available RAM+SWAP size, calculate the average "
+ "performance of their execution on multiple parallel processes");
igt_subtest("maximum-swap")
maximum(fd, &cfg, ncpus, CHECK_RAM | CHECK_SWAP);
+ igt_describe("Exercise implicit per-fd context creation");
igt_subtest("basic-files")
files(fd, &cfg, 2, 1);
+
+ igt_describe("Exercise implicit per-fd context creation on 1 CPU for long duration");
igt_subtest("files")
files(fd, &cfg, 20, 1);
+
+ igt_describe("Exercise implicit per-fd context creation on all CPUs for long duration");
igt_subtest("forked-files")
files(fd, &cfg, 20, ncpus);
/* NULL value means all engines */
+ igt_describe("Calculate the average performance of context creation and "
+ "it's execution using all engines");
igt_subtest("active-all")
active(fd, &cfg, NULL, 20, 1);
+
+ igt_describe("Calculate the average performance of context creation and it's execution "
+ "using all engines on multiple parallel processes");
igt_subtest("forked-active-all")
active(fd, &cfg, NULL, 20, ncpus);
+ igt_describe("For each engine calculate the average performance of context creation, "
+ "execution and exercise context raclaim");
igt_subtest_with_dynamic("active") {
for_each_ctx_cfg_engine(fd, &cfg, e) {
igt_dynamic_f("%s", e->name)
active(fd, &cfg, e, 20, 1);
}
}
+
+ igt_describe("For each engine calculate the average performance of context creation "
+ "and execution on multiple parallel processes");
igt_subtest_with_dynamic("forked-active") {
for_each_ctx_cfg_engine(fd, &cfg, e) {
igt_dynamic_f("%s", e->name)
active(fd, &cfg, e, 20, ncpus);
}
}
+
+ igt_describe("For each engine calculate the average performance of context creation "
+ "and execution while all other engines are hogging the resources");
igt_subtest_with_dynamic("hog") {
for_each_ctx_cfg_engine(fd, &cfg, e) {
igt_dynamic_f("%s", e->name)
--
2.35.1
next prev parent reply other threads:[~2022-04-01 8:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 8:43 [igt-dev] [PATCH i-g-t 0/2] HAX add description to gem_ctx_create sai.gowtham.ch
2022-04-01 8:43 ` sai.gowtham.ch [this message]
2022-04-01 8:43 ` [igt-dev] [PATCH i-g-t 2/2] HAX: don't do full run sai.gowtham.ch
-- strict thread matches above, loose matches on Subject: below --
2022-04-01 9:35 [igt-dev] [PATCH i-g-t 0/2] HAX add description to gem_ctx_create sai.gowtham.ch
2022-04-01 9:35 ` [igt-dev] [PATCH i-g-t 1/2] i915/gem_ctx_create: Added test description for test case sai.gowtham.ch
2022-03-22 5:20 [igt-dev] [PATCH i-g-t 0/2] HAX add description to gem_ctx_create sai.gowtham.ch
2022-03-22 5:20 ` [igt-dev] [PATCH i-g-t 1/2] i915/gem_ctx_create: Added test description for test case sai.gowtham.ch
2022-03-29 16:01 ` Kamil Konieczny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220401084349.9324-2-sai.gowtham.ch@intel.com \
--to=sai.gowtham.ch@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.