From: jsg Date: Wed, 18 Jan 2023 23:56:45 +0000 (+0000) Subject: drm/i915: Reserve enough fence slot for i915_vma_unbind_async X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=41cecf2fa431061712977e3a70d30891b228c4ad;p=openbsd drm/i915: Reserve enough fence slot for i915_vma_unbind_async From Nirmoy Das 8874730ecefe295931a681a0ae749cda53653078 in linux-6.1.y/6.1.7 476fdcdaaae7b06c780cdfc234c704107f16c529 in mainline linux --- diff --git a/sys/dev/pci/drm/i915/i915_vma.c b/sys/dev/pci/drm/i915/i915_vma.c index 45c72f27549..138724ff275 100644 --- a/sys/dev/pci/drm/i915/i915_vma.c +++ b/sys/dev/pci/drm/i915/i915_vma.c @@ -2157,7 +2157,7 @@ int i915_vma_unbind_async(struct i915_vma *vma, bool trylock_vm) if (!obj->mm.rsgt) return -EBUSY; - err = dma_resv_reserve_fences(obj->base.resv, 1); + err = dma_resv_reserve_fences(obj->base.resv, 2); if (err) return -EBUSY;