drm/i915: fixup dma_fence_wait usage
authorMatthew Auld <matthew.auld@intel.com>
Tue, 2 Nov 2021 15:50:55 +0000 (15:50 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 4 Nov 2021 09:40:57 +0000 (09:40 +0000)
dma_fence_wait expects a boolean for whether it should be interruptible,
not a timeout value.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211102155055.100138-1-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_vma.c

index 90546fa58fc17beec124bee4a6d2a9215a52628e..8781c4f6195223fdeb695301f49c964d24380b4e 100644 (file)
@@ -349,7 +349,7 @@ int i915_vma_wait_for_bind(struct i915_vma *vma)
                fence = dma_fence_get_rcu_safe(&vma->active.excl.fence);
                rcu_read_unlock();
                if (fence) {
-                       err = dma_fence_wait(fence, MAX_SCHEDULE_TIMEOUT);
+                       err = dma_fence_wait(fence, true);
                        dma_fence_put(fence);
                }
        }