Use default memory type for TTM buffer objects that may be cached.
MFC after: 1 week
This commit is contained in:
parent
3dc85312b2
commit
fa360767db
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user