From fa360767db91af333f82f82f860a323a713dcbac Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Sun, 2 Nov 2014 14:08:54 +0000 Subject: [PATCH] Use default memory type for TTM buffer objects that may be cached. MFC after: 1 week --- sys/dev/drm2/ttm/ttm_bo_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/drm2/ttm/ttm_bo_util.c b/sys/dev/drm2/ttm/ttm_bo_util.c index aed8e0e4a7e2..177cc001c2c8 100644 --- a/sys/dev/drm2/ttm/ttm_bo_util.c +++ b/sys/dev/drm2/ttm/ttm_bo_util.c @@ -508,8 +508,7 @@ static int ttm_bo_kmap_ttm(struct ttm_buffer_object *bo, * or to make the buffer object look contiguous. */ prot = (mem->placement & TTM_PL_FLAG_CACHED) ? - VM_MEMATTR_WRITE_COMBINING : - ttm_io_prot(mem->placement); + VM_MEMATTR_DEFAULT : ttm_io_prot(mem->placement); map->bo_kmap_type = ttm_bo_map_vmap; map->num_pages = num_pages; map->virtual = (void *)kva_alloc(num_pages * PAGE_SIZE);