public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] i915/pm_rpm: Check for functional GEM before use
@ 2019-01-27 13:13 Chris Wilson
  2019-01-27 14:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2019-01-27 13:13 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

Check the GPU (using GEM) is up an operational before submitting
commands.

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

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index 7dcb5586d..be296f525 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -1220,6 +1220,8 @@ static void gem_execbuf_subtest(void)
 	int sq_x = 5, sq_y = 10, sq_w = 15, sq_h = 20;
 	uint32_t color;
 
+	igt_require_gem(drm_fd);
+
 	/* Create and set data while the device is active. */
 	enable_one_screen_and_wait(&ms_data);
 
@@ -1308,6 +1310,8 @@ static void gem_execbuf_stress_subtest(int rounds, int wait_flags)
 	struct drm_i915_gem_execbuffer2 execbuf = {};
 	struct drm_i915_gem_exec_object2 objs[1] = {{}};
 
+	igt_require_gem(drm_fd);
+
 	if (wait_flags & WAIT_PC8_RES)
 		igt_require(has_pc8);
 
-- 
2.20.1

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

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

end of thread, other threads:[~2019-01-29 17:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-27 13:13 [igt-dev] [PATCH i-g-t] i915/pm_rpm: Check for functional GEM before use Chris Wilson
2019-01-27 14:05 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-01-27 16:28 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2019-01-29 17:22 ` [igt-dev] [PATCH i-g-t] " Antonio Argenziano

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