drm/i915: Do an unlocked wait before set-cache-level ioctl
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 19 Jan 2017 08:22:10 +0000 (08:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 21 Jan 2017 09:19:17 +0000 (09:19 +0000)
commitd65415df0708700e306fcbcaece23369de4cb74e
tree387e9e7cd4693a2499e9aabc5e1f4fb84d8fdf22
parent3139b4a3a24c0a84fed1c1041eb254c858087c72
drm/i915: Do an unlocked wait before set-cache-level ioctl

Since a change in cache level is likely to trigger an unbind, avoid
waiting under the mutex by preemptively doing an unlocked wait.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170119082211.21257-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem.c