Commit e71cf591 authored by Thomas Hellstrom's avatar Thomas Hellstrom

drm/vmwgfx: Fix buffer object eviction

Commit 19be5570 ("drm/ttm: add operation ctx to ttm_bo_validate v2")
introduced a regression where the vmwgfx driver refused to evict a
buffer that was still busy instead of waiting for it to become idle.

Fix this.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
parent a4bd815a
...@@ -3729,7 +3729,7 @@ int vmw_validate_single_buffer(struct vmw_private *dev_priv, ...@@ -3729,7 +3729,7 @@ int vmw_validate_single_buffer(struct vmw_private *dev_priv,
{ {
struct vmw_buffer_object *vbo = struct vmw_buffer_object *vbo =
container_of(bo, struct vmw_buffer_object, base); container_of(bo, struct vmw_buffer_object, base);
struct ttm_operation_ctx ctx = { interruptible, true }; struct ttm_operation_ctx ctx = { interruptible, false };
int ret; int ret;
if (vbo->pin_count > 0) if (vbo->pin_count > 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment