public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/gsc: Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv()
@ 2023-06-06  8:22 Dan Carpenter
  2023-06-06  9:18 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Dan Carpenter @ 2023-06-06  8:22 UTC (permalink / raw)
  To: Alan Previn
  Cc: intel-gfx, kernel-janitors, Daniel Vetter, Rodrigo Vivi,
	David Airlie

This should return negative -EAGAIN instead of positive EAGAIN.

Fixes: e5e1e6d28ebc ("drm/i915/pxp: Add MTL helpers to submit Heci-Cmd-Packet to GSC")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c b/drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c
index 579c0f5a1438..42218ae6ef13 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_gsc_uc_heci_cmd_submit.c
@@ -202,7 +202,7 @@ intel_gsc_uc_heci_cmd_submit_nonpriv(struct intel_gsc_uc *gsc,
 			if (++trials < 10)
 				goto retry;
 			else
-				err = EAGAIN;
+				err = -EAGAIN;
 		}
 	}
 	i915_gem_ww_ctx_fini(&ww);
-- 
2.30.2


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

end of thread, other threads:[~2023-06-08 18:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-06  8:22 [Intel-gfx] [PATCH] drm/i915/gsc: Fix error code in intel_gsc_uc_heci_cmd_submit_nonpriv() Dan Carpenter
2023-06-06  9:18 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2023-06-06 18:07 ` [Intel-gfx] [PATCH] " Teres Alexis, Alan Previn
2023-06-06 18:32   ` Dan Carpenter
2023-06-07 18:44     ` Teres Alexis, Alan Previn
2023-06-08  8:37       ` Dan Carpenter
2023-06-08 18:49         ` Teres Alexis, Alan Previn
2023-06-07  0:39 ` [Intel-gfx] ✓ Fi.CI.IGT: success for " Patchwork
2023-06-08  0:10 ` [Intel-gfx] [PATCH] " Andi Shyti
2023-06-08  0:14 ` Andi Shyti

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