From: Prathap Kumar Valsan <prathap.kumar.valsan@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] i915/gem_exec_gttfill: Run basic test on simulation
Date: Thu, 21 Mar 2019 19:06:13 -0400 [thread overview]
Message-ID: <20190321230613.8639-1-prathap.kumar.valsan@intel.com> (raw)
Basic test don't take long to complete, so allow basic test to
run on simulation.
---
tests/i915/gem_exec_gttfill.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/tests/i915/gem_exec_gttfill.c b/tests/i915/gem_exec_gttfill.c
index efd612bb..92c3cf62 100644
--- a/tests/i915/gem_exec_gttfill.c
+++ b/tests/i915/gem_exec_gttfill.c
@@ -144,7 +144,8 @@ static void fillgtt(int fd, unsigned ring, int timeout)
count = size / BATCH_SIZE + 1;
igt_debug("Using %'d batches to fill %'llu aperture on %d engines\n",
count, (long long)size, nengine);
- intel_require_memory(count, BATCH_SIZE, CHECK_RAM);
+ if (!igt_run_in_simulation())
+ intel_require_memory(count, BATCH_SIZE, CHECK_RAM);
intel_detect_and_clear_missed_interrupts(fd);
memset(&execbuf, 0, sizeof(execbuf));
@@ -210,8 +211,6 @@ igt_main
const struct intel_execution_engine *e;
int device = -1;
- igt_skip_on_simulation();
-
igt_fixture {
device = drm_open_driver(DRIVER_INTEL);
igt_require_gem(device);
@@ -223,11 +222,15 @@ igt_main
fillgtt(device, 0, 1); /* just enough to run a single pass */
for (e = intel_execution_engines; e->name; e++)
- igt_subtest_f("%s", e->name)
+ igt_subtest_f("%s", e->name) {
+ igt_skip_on_simulation();
fillgtt(device, e->exec_id | e->flags, 20);
+ }
- igt_subtest("all")
+ igt_subtest("all") {
+ igt_skip_on_simulation();
fillgtt(device, 0, 150);
+ }
igt_fixture {
igt_stop_hang_detector();
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2019-03-21 22:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-21 23:06 Prathap Kumar Valsan [this message]
2019-03-21 23:23 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_exec_gttfill: Run basic test on simulation Patchwork
2019-03-22 7:19 ` [igt-dev] [PATCH i-g-t] " Chris Wilson
2019-03-22 13:58 ` Kumar Valsan, Prathap
2019-03-22 13:51 ` Chris Wilson
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=20190321230613.8639-1-prathap.kumar.valsan@intel.com \
--to=prathap.kumar.valsan@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox