[PATCH i-g-t] lib/intel_ctx: Propagate error from __intel_ctx_xe_exec wait timeout

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon May 6 12:08:27 UTC 2024


Any wait timeouts are currently ignored, which might cause silent
failures in test. Be more noisy about them.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 lib/intel_ctx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/intel_ctx.c b/lib/intel_ctx.c
index b43dd6391..30325b906 100644
--- a/lib/intel_ctx.c
+++ b/lib/intel_ctx.c
@@ -450,7 +450,7 @@ int __intel_ctx_xe_exec(const intel_ctx_t *ctx, uint64_t ahnd, uint64_t bb_offse
 		goto err;
 
 	if (!ctx->sync_bind || !ctx->sync_out)
-		syncobj_wait_err(ctx->fd, &sync_out, 1, INT64_MAX, 0);
+		ret = syncobj_wait_err(ctx->fd, &sync_out, 1, INT64_MAX, 0);
 
 err:
 	if (!ctx->sync_bind)
-- 
2.43.0



More information about the Intel-xe mailing list