All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/selftests: print exact error code
@ 2021-10-21 23:04 Oak Zeng
  2021-10-22  2:47 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Oak Zeng @ 2021-10-21 23:04 UTC (permalink / raw)
  To: intel-gfx; +Cc: chris

Print the exact error code in test live_nop_switch,
instead of -EIO. If the test fails, we will know
the exact reason.

Signed-off-by: Oak Zeng <oak.zeng@intel.com>
---
 drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
index b32f7fed2d9c..5b26cf5f58ad 100644
--- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c
@@ -88,11 +88,12 @@ static int live_nop_switch(void *arg)
 			rq = i915_request_get(this);
 			i915_request_add(this);
 		}
-		if (i915_request_wait(rq, 0, HZ) < 0) {
-			pr_err("Failed to populated %d contexts\n", nctx);
+		err = i915_request_wait(rq, 0, HZ);
+		if (err < 0) {
+			pr_err("Failed to populated %d contexts with error %d\n",
+				nctx, err);
 			intel_gt_set_wedged(&i915->gt);
 			i915_request_put(rq);
-			err = -EIO;
 			goto out_file;
 		}
 		i915_request_put(rq);
-- 
2.25.1


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

end of thread, other threads:[~2021-11-11 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 23:04 [Intel-gfx] [PATCH] drm/i915/selftests: print exact error code Oak Zeng
2021-10-22  2:47 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2021-10-22  3:17 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2021-10-22  7:31 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2021-11-11 13:37 ` [Intel-gfx] [PATCH] " Zeng, Oak

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.