diff options
author | tijl <tijl@FreeBSD.org> | 2014-12-02 14:12:05 +0000 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-12-02 14:12:05 +0000 |
commit | 5bc138563e4ed95ebccf89ef0ea259d8d15978ac (patch) | |
tree | e89a81bf2336bafc9cd288621df078df546a3820 | |
parent | e95768983f288fa5f88d3109455caec820930910 (diff) | |
download | FreeBSD-src-5bc138563e4ed95ebccf89ef0ea259d8d15978ac.zip FreeBSD-src-5bc138563e4ed95ebccf89ef0ea259d8d15978ac.tar.gz |
MFC r273969:
Use default memory type for TTM buffer objects that may be cached.
-rw-r--r-- | sys/dev/drm2/ttm/ttm_bo_util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/drm2/ttm/ttm_bo_util.c b/sys/dev/drm2/ttm/ttm_bo_util.c index aed8e0e..177cc00 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); |