From d732525b3ab119f3b17437a4122a2131cbd7f815 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 30 Oct 2023 00:56:47 +0000 Subject: [PATCH] drm/i915: Retry gtt fault when out of fence registers From Ville Syrjala add2eeda1d6e3ead1d61db70e37615e5ef6c5e75 in linux-6.1.y/6.1.60 e339c6d628fe66c9b64bf31040a55770952aec57 in mainline linux --- sys/dev/pci/drm/i915/gem/i915_gem_mman.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c index bae805b65bd..ab8a3e0de5b 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_mman.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_mman.c @@ -270,6 +270,7 @@ static vm_fault_t i915_error_to_vmf_fault(int err) case 0: case -EAGAIN: case -ENOSPC: /* transient failure to evict? */ + case -ENOBUFS: /* temporarily out of fences? */ case -ERESTARTSYS: case -EINTR: case -EBUSY: @@ -548,6 +549,7 @@ static int i915_error_to_vmf_fault(int err) case 0: case -EAGAIN: case -ENOSPC: /* transient failure to evict? */ + case -ENOBUFS: /* temporarily out of fences? */ case -ERESTART: case -EINTR: case -EBUSY: -- 2.20.1