mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue