drm/i915: Do an unlocked wait before set-cache-level ioctl
authorChris Wilson <[email protected]>
Thu, 19 Jan 2017 08:22:10 +0000 (08:22 +0000)
committerChris Wilson <[email protected]>
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 <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Mika Kuoppala <[email protected]>
drivers/gpu/drm/i915/i915_gem.c