]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drm/i915/userptr: Make gup errors stickier
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:58 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:49 +0000 (22:36 +0100)
commit364c8172edb5ff0b4650bbd4c45eaab46b84b008
tree300bf19d5a8d6fa4c4080f2a0691f9732afc8f00
parentc58b735fc762e891481e92af7124b85cb0a51fce
drm/i915/userptr: Make gup errors stickier

Keep any error reported by the gup_worker until we are notified that the
arena has changed (via the mmu-notifier). This has the importance of
making two consecutive calls to i915_gem_object_get_pages() reporting
the same error, and curtailing a loop of detecting a fault and requeueing
a gup_worker.

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