drm/i915: Reserve enough fence slot for i915_vma_unbind_async
authorjsg <jsg@openbsd.org>
Wed, 18 Jan 2023 23:56:45 +0000 (23:56 +0000)
committerjsg <jsg@openbsd.org>
Wed, 18 Jan 2023 23:56:45 +0000 (23:56 +0000)
From Nirmoy Das
8874730ecefe295931a681a0ae749cda53653078 in linux-6.1.y/6.1.7
476fdcdaaae7b06c780cdfc234c704107f16c529 in mainline linux

sys/dev/pci/drm/i915/i915_vma.c

index 45c72f2..138724f 100644 (file)
@@ -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;