]> git.baikalelectronics.ru Git - kernel.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)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Aug 2013 00:00:45 +0000 (10:00 +1000)
commitf949a003cf25175c5f498f7e5818220daa0bce06
tree33cddbdca7e436510c6e453b55d64f0b0006be47
parentc27457c11984ffc2dd70f3ffc39b0c648031b057
drm/cirrus: Invalidate page tables when pinning a BO

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>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_ttm.c