summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_bufs.c
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.com>2013-07-17 19:40:56 +0400
committerDave Airlie <airlied@redhat.com>2013-08-07 04:01:01 +0400
commitecaac1c866bcda4780a963b3d18cd310d971aea3 (patch)
treec305279fadac3ec05c46fd2ea68f2e415ce1cbad /drivers/gpu/drm/drm_bufs.c
parent109a51598869a39fdcec2d49672a9a39b6d89481 (diff)
downloadlinux-ecaac1c866bcda4780a963b3d18cd310d971aea3.tar.xz
drm/mgag200: Invalidate page tables when pinning a BO
When a BO gets pinned the placement may get changed. If the memory is mapped into user space and user space has already accessed the mapped range the page tables are set up but now point to the wrong memory. Set bo.mdev->dev_mapping in mgag200_bo_create() to make sure that ttm_bo_unmap_virtual() called from ttm_bo_handle_move_mem() will take care of this. v2: Don't call ttm_bo_unmap_virtual() in mgag200_bo_pin(), fix comment. Signed-off-by: Egbert Eich <eich@suse.com> Cc: stable@vger.kernel.org Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_bufs.c')
0 files changed, 0 insertions, 0 deletions