diff options
author | Matthew Auld <matthew.auld@intel.com> | 2021-11-02 15:50:55 +0000 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2021-11-04 09:40:57 +0000 |
commit | fbd4cf3bfe1557b80774670d19c0a68d7d40fb18 (patch) | |
tree | e5a4715bfe6697693a21155ea47a8f5677372d34 /drivers/gpu/drm | |
parent | drm/i915/guc/slpc: Update boost sysfs hooks for SLPC (diff) | |
download | linux-dev-fbd4cf3bfe1557b80774670d19c0a68d7d40fb18.tar.xz linux-dev-fbd4cf3bfe1557b80774670d19c0a68d7d40fb18.zip |
drm/i915: fixup dma_fence_wait usage
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
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/i915_vma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_vma.c b/drivers/gpu/drm/i915/i915_vma.c index 90546fa58fc1..8781c4f61952 100644 --- a/drivers/gpu/drm/i915/i915_vma.c +++ b/drivers/gpu/drm/i915/i915_vma.c @@ -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); } } |