aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_bo.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-11-20 16:11:22 -0500
committerFrancisco Jerez <currojerez@riseup.net>2010-12-07 21:00:32 -0500
commita3d487ea5463a9c091b7f9b836b860cf3d82e641 (patch)
treeb33691fc87103234a3476fa3165670e6d3d2712b /drivers/gpu/drm/nouveau/nouveau_bo.c
parent6dccd311dd4b104b3bc53cb67aef414141d11c9f (diff)
drm/nouveau: Use WC memory on the AGP GART.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_bo.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_bo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
index f4ee43db00aa..f6f51b4259e7 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
@@ -424,8 +424,9 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
424 switch (dev_priv->gart_info.type) { 424 switch (dev_priv->gart_info.type) {
425 case NOUVEAU_GART_AGP: 425 case NOUVEAU_GART_AGP:
426 man->flags = TTM_MEMTYPE_FLAG_MAPPABLE; 426 man->flags = TTM_MEMTYPE_FLAG_MAPPABLE;
427 man->available_caching = TTM_PL_FLAG_UNCACHED; 427 man->available_caching = TTM_PL_FLAG_UNCACHED |
428 man->default_caching = TTM_PL_FLAG_UNCACHED; 428 TTM_PL_FLAG_WC;
429 man->default_caching = TTM_PL_FLAG_WC;
429 break; 430 break;
430 case NOUVEAU_GART_SGDMA: 431 case NOUVEAU_GART_SGDMA:
431 man->flags = TTM_MEMTYPE_FLAG_MAPPABLE | 432 man->flags = TTM_MEMTYPE_FLAG_MAPPABLE |