drm/i915/gem: Reinitialise the local list before repeating
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Dec 2019 13:29:12 +0000 (13:29 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Dec 2019 14:37:25 +0000 (14:37 +0000)
commit5c4fe63abae8866dda31dd84f1bcc98e1e645734
tree6f43865f208454f58c1648e09c5c0d949c07eed5
parent0471a44871cf304edbea3efac72e3e0ac8702b16
drm/i915/gem: Reinitialise the local list before repeating

As we may start the loop again, we require our local list of i915_vma
we've processed to be reinitialised.

Fixes: aa5e4453dc05 ("drm/i915/gem: Try to flush pending unbind events")
Closes: https://gitlab.freedesktop.org/drm/intel/issues/731
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191205132912.606868-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c