Skip to content

Commit 2f00030

Browse files
committed
drm/i915: Drop vma is-closed assertion on insert
The is-closed flag may be added after we have acquired the vma under the ctx->mutex, but will not take effect until after we release the vm->mutex. i.e. the flag may be set on the vma as attempt to bind it and that will cause the vma to be unbound later after we unpin it. Signed-off-by: Chris Wilson <[email protected]> Reviewed-by: Mika Kuoppala <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 61231f6 commit 2f00030

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/i915/i915_vma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,6 @@ i915_vma_insert(struct i915_vma *vma, u64 size, u64 alignment, u64 flags)
641641
u64 start, end;
642642
int ret;
643643

644-
GEM_BUG_ON(i915_vma_is_closed(vma));
645644
GEM_BUG_ON(i915_vma_is_bound(vma, I915_VMA_GLOBAL_BIND | I915_VMA_LOCAL_BIND));
646645
GEM_BUG_ON(drm_mm_node_allocated(&vma->node));
647646

0 commit comments

Comments
 (0)