All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/selftests: Don't use -ETIMEDOUT from inside a test
@ 2018-04-17 14:32 Chris Wilson
  2018-04-17 16:03 ` ✓ Fi.CI.BAT: success for " Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Chris Wilson @ 2018-04-17 14:32 UTC (permalink / raw)
  To: intel-gfx

-ETIMEDOUT is reserved in the selftests for use by igt_timeout, and the
errno is magically handled by the test runner to break from inside the
test loop without propagating back to userspace as a failure. So convert
the -ETIMEDOUT from wait_var_event_timeout() into another errno.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c b/drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c
index 46580026c7fc..0a12e81a45dd 100644
--- a/drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c
+++ b/drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c
@@ -416,6 +416,7 @@ static int igt_wakeup(void *arg)
 		if (err) {
 			pr_err("Timed out waiting for %d remaining waiters\n",
 			       atomic_read(&done));
+			err = -ENXIO; /* -ETIMEDOUT is reserved */
 			break;
 		}
 
-- 
2.17.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2018-04-18 16:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17 14:32 [PATCH] drm/i915/selftests: Don't use -ETIMEDOUT from inside a test Chris Wilson
2018-04-17 16:03 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-04-17 17:14 ` ✓ Fi.CI.IGT: " Patchwork
2018-04-18  9:11 ` [PATCH] " Joonas Lahtinen
2018-04-18  9:57 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-04-18 12:20 ` ✓ Fi.CI.IGT: " Patchwork
2018-04-18 13:10 ` ✓ Fi.CI.BAT: " Patchwork
2018-04-18 16:31 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.