public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/gem_concurrent_all: Skip GTT mapping when aperture not available
@ 2020-01-30 21:17 Antonio Argenziano
  2020-01-30 21:25 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Antonio Argenziano @ 2020-01-30 21:17 UTC (permalink / raw)
  To: igt-dev

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

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-02 17:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-30 21:17 [igt-dev] [PATCH i-g-t] tests/i915/gem_concurrent_all: Skip GTT mapping when aperture not available Antonio Argenziano
2020-01-30 21:25 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox