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)
commit5e562f1dddfa3242cede5ec49888260a856a9da2
treee79ddf46d309b15bcbc89afeaf0ed58a14ac040d
parent65b38e0d87a491e25848bea3274825b594cbdb22
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