mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273969
@ -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 New Issue
Block a user