]> 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)
commitfa4ddbb1e954a899a1fc271618584c099a46609d
tree387e9e7cd4693a2499e9aabc5e1f4fb84d8fdf22
parent8e5cdaa22ae2ef860278064f4b5ebb9066eb7fff
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