]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/cirrus: Invalidate page tables when pinning a BO
authorMichal Srb <msrb@suse.com>
Tue, 6 Aug 2013 13:26:50 +0000 (15:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2013 05:59:09 +0000 (22:59 -0700)
commit18da37c30dfb6bd4e46b39fefe06b891524d80a6
treee31337305c1ad5e94fd3e58292f0daf534fda098
parent61ffac73366844578d7e773cdc33a4f6adca09d3
drm/cirrus: Invalidate page tables when pinning a BO

commit 109a51598869a39fdcec2d49672a9a39b6d89481 upstream.

This is a cirrus version of Egbert Eich's patch for mgag200.

Without bo.bdev->dev_mapping set, the ttm_bo_unmap_virtual_locked
called from ttm_bo_handle_move_mem returns with no effect. If any
application accessed the memory before it was moved, it will
access wrong memory next time. This causes crashes when changing
resolution down.

Signed-off-by: Michal Srb <msrb@suse.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/cirrus/cirrus_ttm.c