diff options
author | Dave Airlie <airlied@redhat.com> | 2014-09-12 08:32:40 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-09-12 11:32:12 +0400 |
commit | a9d6dd2554e35c0213382fff19f5dbf151707955 (patch) | |
tree | 5ecc4dbef0d223010e916413e45de300cbcf11e3 /drivers/gpu/drm/ast | |
parent | fd7e0d719260259f6e4e7711bd63a4175557d559 (diff) | |
download | linux-a9d6dd2554e35c0213382fff19f5dbf151707955.tar.xz |
drm/ast: switch to using CACHED by default for sysram
This fixes problems on ppc64 platforms, where we could end up using
a WC mapping for migrating BOs with memcpy, when really we want to
use cached memory.
Tested-by: Ben Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ast')
-rw-r--r-- | drivers/gpu/drm/ast/ast_ttm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ast/ast_ttm.c b/drivers/gpu/drm/ast/ast_ttm.c index 8008ea0bc76c..5098c7dd435c 100644 --- a/drivers/gpu/drm/ast/ast_ttm.c +++ b/drivers/gpu/drm/ast/ast_ttm.c @@ -300,9 +300,9 @@ void ast_ttm_placement(struct ast_bo *bo, int domain) if (domain & TTM_PL_FLAG_VRAM) bo->placements[c++].flags = TTM_PL_FLAG_WC | TTM_PL_FLAG_UNCACHED | TTM_PL_FLAG_VRAM; if (domain & TTM_PL_FLAG_SYSTEM) - bo->placements[c++].flags = TTM_PL_MASK_CACHING | TTM_PL_FLAG_SYSTEM; + bo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_SYSTEM; if (!c) - bo->placements[c++].flags = TTM_PL_MASK_CACHING | TTM_PL_FLAG_SYSTEM; + bo->placements[c++].flags = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_SYSTEM; bo->placement.num_placement = c; bo->placement.num_busy_placement = c; for (i = 0; i < c; ++i) { |