Skip to contentSkip to conversation

sna: Dump fences also on -ENOBUFS

PATCH New Ville Syrjala 2 participants 2 messages Jul 12, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sna: Dump fences also on -ENOBUFS

From: Ville Syrjälä <[email protected]>

Since kernel commit 78d2ad7eb4e1 ("drm/i915/gt: Fix -EDEADLK handling regression") running out of fences will result in -ENOBUFS instead of -EDEADLK (the latter having been stolen by ww mutextes for their internal use). Adjust the fence dumping to expect either errno value.

---
 src/sna/kgem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/sna/kgem.c +1 -1
index 7b645da8da5f..ac0b61d54ec8 100644
@@ -4263,7 +4263,7 @@ void _kgem_submit(struct kgem *kgem)
 
 		if (ret == -ENOSPC)
 			dump_gtt_info(kgem);
-		if (ret == -EDEADLK)
+		if (ret == -EDEADLK || ret == -ENOBUFS)
 			dump_fence_regs(kgem);
 
 		if (DEBUG_SYNC) {
Signature · 6 lines
2.31.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

[Intel-gfx] ✗ Fi.CI.BUILD: failure for sna: Dump fences also on -ENOBUFS

== Series Details ==

== Series Details ==

Series: sna: Dump fences also on -ENOBUFS
URL : https://patchwork.freedesktop.org/series/92431/
State : failure

== Summary ==

Applying: sna: Dump fences also on -ENOBUFS
error: sha1 information is lacking or useless (src/sna/kgem.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch Patch failed at 0001 sna: Dump fences also on -ENOBUFS
When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx