summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2021-07-12 10:44:40 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2023-02-01 15:38:10 +0200
commit2a0d4fb1697efa48cb1a124869d8c8bf58bad2ca (patch)
tree01653aafa5109118c5caad302d2fb803beedf2aa
parentf2c271130f33d0ec9a1f6400ddb288f6d776e0c8 (diff)
sna: Dump fences also on -ENOBUFS
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. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 7b645da8..ac0b61d5 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -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) {