igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use
@ 2018-07-12 15:37 Chris Wilson
  2018-07-12 15:37 ` [Intel-gfx] [PATCH i-g-t 2/2] lib/gt: Check GEM is operation before injecting a hang Chris Wilson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Chris Wilson @ 2018-07-12 15:37 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

As we need GEM and the GPU to do a GPGPU fill, we should check that it
is operable before using -- skipping rather than failing when the device
is wedged.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/gem_gpgpu_fill.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/gem_gpgpu_fill.c b/tests/gem_gpgpu_fill.c
index 8ef05a3f0..dfb581652 100644
--- a/tests/gem_gpgpu_fill.c
+++ b/tests/gem_gpgpu_fill.c
@@ -104,6 +104,7 @@ igt_simple_main
 
 	data.drm_fd = drm_open_driver_render(DRIVER_INTEL);
 	data.devid = intel_get_drm_devid(data.drm_fd);
+	igt_require_gem(data.drm_fd);
 
 	data.bufmgr = drm_intel_bufmgr_gem_init(data.drm_fd, 4096);
 	igt_assert(data.bufmgr);
-- 
2.18.0

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

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

end of thread, other threads:[~2018-07-12 21:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-12 15:37 [igt-dev] [PATCH i-g-t 1/2] igt/gem_gpgpu_fill: Check for GEM before use Chris Wilson
2018-07-12 15:37 ` [Intel-gfx] [PATCH i-g-t 2/2] lib/gt: Check GEM is operation before injecting a hang Chris Wilson
2018-07-12 18:30 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] igt/gem_gpgpu_fill: Check for GEM before use Patchwork
2018-07-12 19:01 ` [Intel-gfx] [PATCH i-g-t 1/2] " Ville Syrjälä
2018-07-12 21:12 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/2] " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).