summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorChris Wilson2011-03-14 16:11:24 +0100
committerChris Wilson2011-03-23 10:17:01 +0100
commitd4aeee776017b6da6dcd12f453cd82a3c951a0dc (patch)
tree987afd679a2c2352856744404173b02569c713f7 /drivers/gpu/drm/i915/i915_gem.c
parentdrm/i915: Fix computation of pitch for dumb bo creator (diff)
downloadkernel-qcow2-linux-d4aeee776017b6da6dcd12f453cd82a3c951a0dc.tar.gz
kernel-qcow2-linux-d4aeee776017b6da6dcd12f453cd82a3c951a0dc.tar.xz
kernel-qcow2-linux-d4aeee776017b6da6dcd12f453cd82a3c951a0dc.zip
drm/i915: Disable pagefaults along execbuffer relocation fast path
Along the fast path for relocation handling, we attempt to copy directly from the user data structures whilst holding our mutex. This causes lockdep to warn about circular lock dependencies if we need to pagefault the user pages. [Since when handling a page fault on a mmapped bo, we need to acquire the struct mutex whilst already holding the mm semaphore, it is then verboten to acquire the mm semaphore when already holding the struct mutex. The likelihood of the user passing in the relocations contained in a GTT mmaped bo is low, but conceivable for extreme pathology.] In order to force the mm to return EFAULT rather than handle the pagefault, we therefore need to disable pagefaults across the relocation fast path. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: stable@kernel.org Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
0 files changed, 0 insertions, 0 deletions