drm/i915: Wait upon userptr get-user-pages within execbuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Jun 2017 14:05:22 +0000 (15:05 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Jun 2017 15:54:05 +0000 (16:54 +0100)
commit8a2421bd0d9abb3a599969d88e1910a2a101eccc
treefd2db96cb0fce9879162d03381dbf50562140baa
parent616d9cee4fdc4a377c03be8fd6efa5df4fcd0d81
drm/i915: Wait upon userptr get-user-pages within execbuffer

This simply hides the EAGAIN caused by userptr when userspace causes
resource contention. However, it is quite beneficial with highly
contended userptr users as we avoid repeating the setup costs and
kernel-user context switches.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c
drivers/gpu/drm/i915/i915_gem_userptr.c