All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] drm/i915/guc: Return NULL for missing multi-lrc parent
@ 2026-07-06 11:19 Linmao Li
  2026-07-06 11:31 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Linmao Li @ 2026-07-06 11:19 UTC (permalink / raw)
  To: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	David Airlie, Simona Vetter, Andi Shyti, Konstantin Khorenko
  Cc: Linmao Li, intel-gfx, dri-devel, linux-kernel

multi_lrc_create_parent() returns ERR_PTR(0) when there are not enough
engines in the class to create a parallel context.  ERR_PTR(0) evaluates
to NULL, and the only caller already treats NULL as the non-error
"not enough engines" case.

Return NULL directly to make the non-error path explicit.

Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
---
 drivers/gpu/drm/i915/gt/uc/selftest_guc_multi_lrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/uc/selftest_guc_multi_lrc.c b/drivers/gpu/drm/i915/gt/uc/selftest_guc_multi_lrc.c
index 28e8a092f4e7..18077801b2e6 100644
--- a/drivers/gpu/drm/i915/gt/uc/selftest_guc_multi_lrc.c
+++ b/drivers/gpu/drm/i915/gt/uc/selftest_guc_multi_lrc.c
@@ -44,7 +44,7 @@ multi_lrc_create_parent(struct intel_gt *gt, u8 class,
 	}
 
 	if (i <= 1)
-		return ERR_PTR(0);
+		return NULL;
 
 	logical_sort(siblings, i);
 
-- 
2.25.1


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

end of thread, other threads:[~2026-07-06 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06 11:19 [PATCH RESEND] drm/i915/guc: Return NULL for missing multi-lrc parent Linmao Li
2026-07-06 11:31 ` sashiko-bot

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.