]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clear vma->bound on unbinding
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Thu, 30 Apr 2015 08:02:31 +0000 (11:02 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:29 +0000 (13:03 +0200)
commitb3e8a62836e2de71639764f2164850b030cd3168
treee79ddf46d309b15bcbc89afeaf0ed58a14ac040d
parent45d35fac7e67c41c7477797b7d8c0153ba669db4
drm/i915: Clear vma->bound on unbinding

Unbinding doesn't always lead to unconditional destruction
of vma. This destruction avoidance happens if vma is part of
execbuffer relocation list or if vma is being considered for
eviction in i915_gem_evict_something().

For those other users, mark the vma unbound so that
the correct state of this vma is preserved.

Reported-by: Chris Wilson <chris@chris-wilson.co.ok>
Cc: Chris Wilson <chris@chris-wilson.co.ok>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c