Skip to content

Commit

Permalink
drm/ast: invalidate page tables when pinning a BO
Browse files Browse the repository at this point in the history
same fix as cirrus and mgag200.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Aug 7, 2013
1 parent ecaac1c commit 3ac6525
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/ast/ast_ttm.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ int ast_bo_create(struct drm_device *dev, int size, int align,

astbo->gem.driver_private = NULL;
astbo->bo.bdev = &ast->ttm.bdev;
astbo->bo.bdev->dev_mapping = dev->dev_mapping;

ast_ttm_placement(astbo, TTM_PL_FLAG_VRAM | TTM_PL_FLAG_SYSTEM);

Expand Down

0 comments on commit 3ac6525

Please sign in to comment.