public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Antonio Argenziano <antonio.argenziano@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] tests/i915/gem_concurrent_all: Skip GTT mapping when aperture not available
Date: Thu, 30 Jan 2020 13:17:48 -0800	[thread overview]
Message-ID: <20200130211748.629-1-antonio.argenziano@intel.com> (raw)

The test iterates over several mappings and BOs creation options, when
GTT mapping is not available skip those options.

Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/i915/gem_concurrent_all.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/i915/gem_concurrent_all.c b/tests/i915/gem_concurrent_all.c
index f1be4a85..22f429e8 100644
--- a/tests/i915/gem_concurrent_all.c
+++ b/tests/i915/gem_concurrent_all.c
@@ -440,6 +440,11 @@ static void create_vgem_require(const struct create *create, unsigned count)
 	create_dmabuf_require(create, count);
 }
 
+static void create_gtt_require(const struct create *create, unsigned count)
+{
+	gem_require_mappable_ggtt(fd);
+}
+
 static drm_intel_bo *
 vgem_create_bo(const struct buffers *b)
 {
@@ -1406,6 +1411,7 @@ static void cpu_require(void)
 
 static void gtt_require(void)
 {
+	gem_require_mappable_ggtt(fd);
 }
 
 static void bcs_require(void)
@@ -1722,6 +1728,7 @@ igt_main
 		{
 			.name = "gtt",
 			.create_bo = gtt_create_bo,
+			.require = create_gtt_require,
 			.set_bo = gtt_set_bo,
 			.cmp_bo = gtt_cmp_bo,
 			.release_bo = nop_release_bo,
@@ -1729,6 +1736,7 @@ igt_main
 		{
 			.name = "gttX",
 			.create_bo = gttX_create_bo,
+			.require = create_gtt_require,
 			.set_bo = gtt_set_bo,
 			.cmp_bo = gtt_cmp_bo,
 			.release_bo = nop_release_bo,
-- 
2.21.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

             reply	other threads:[~2020-01-30 21:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-30 21:17 Antonio Argenziano [this message]
2020-01-30 21:25 ` [igt-dev] [PATCH i-g-t] tests/i915/gem_concurrent_all: Skip GTT mapping when aperture not available Chris Wilson
2020-01-30 21:29   ` Antonio Argenziano
2020-01-30 21:30     ` Chris Wilson
2020-01-30 23:26 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-02-02 17:29 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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=20200130211748.629-1-antonio.argenziano@intel.com \
    --to=antonio.argenziano@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