summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gem/i915_gem_pages.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2021-01-28 19:25:39 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2021-03-24 19:27:20 +0300
commitf1ac8a0292605e094533c02106d1d2f6a97028a3 (patch)
tree3cac20411aecf922af3a0dd68c6fb08f87421c03 /drivers/gpu/drm/i915/gem/i915_gem_pages.c
parentc93987753ae8057e61a3902e71362613f7256600 (diff)
downloadlinux-f1ac8a0292605e094533c02106d1d2f6a97028a3.tar.xz
drm/i915: Fix pread/pwrite to work with new locking rules.
We are removing obj->mm.lock, and need to take the reservation lock before we can pin pages. Move the pinning pages into the helper, and merge gtt pwrite/pread preparation and cleanup paths. The fence lock is also removed; it will conflict with fence annotations, because of memory allocations done when pagefaulting inside copy_*_user. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> [danvet: Pick the older version to avoid the conflicts] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210128162612.927917-31-maarten.lankhorst@linux.intel.com Link: https://patchwork.freedesktop.org/patch/msgid/20210323155059.628690-31-maarten.lankhorst@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gem/i915_gem_pages.c')
0 files changed, 0 insertions, 0 deletions