]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4fd2066f46a42a9752b49500f151e9c012b3cc6d
tree387e9e7cd4693a2499e9aabc5e1f4fb84d8fdf22
parentce1bfeafb5c27cb90410c285d29441d980441b59
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