svn commit: r273969 - head/sys/dev/drm2/ttm

Tijl Coosemans tijl at FreeBSD.org
Sun Nov 2 14:08:54 UTC 2014


Author: tijl
Date: Sun Nov  2 14:08:54 2014
New Revision: 273969
URL: https://svnweb.freebsd.org/changeset/base/273969

Log:
  Use default memory type for TTM buffer objects that may be cached.
  
  MFC after:	1 week

Modified:
  head/sys/dev/drm2/ttm/ttm_bo_util.c

Modified: head/sys/dev/drm2/ttm/ttm_bo_util.c
==============================================================================
--- head/sys/dev/drm2/ttm/ttm_bo_util.c	Sun Nov  2 13:43:04 2014	(r273968)
+++ head/sys/dev/drm2/ttm/ttm_bo_util.c	Sun Nov  2 14:08:54 2014	(r273969)
@@ -508,8 +508,7 @@ static int ttm_bo_kmap_ttm(struct ttm_bu
 		 * 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);


More information about the svn-src-head mailing list