Home
last modified time | relevance | path

Searched refs:TTM_PL_VRAM (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_ttm.c83 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve()
226 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init()
248 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini()
284 qxl_mem_types_list[i].data = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_debugfs_init()
Dqxl_object.c68 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
74 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
184 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page()
221 if ((bo->tbo.mem.mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page()
376 return ttm_bo_evict_mm(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
Dqxl_drv.h306 (bo->tbo.mem.mem_type == TTM_PL_VRAM) in qxl_bo_physical_address()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_thp.c141 ttm_set_driver_manager(&dev_priv->bdev, TTM_PL_VRAM, &rman->manager); in vmw_thp_init()
148 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_thp_fini()
163 ttm_set_driver_manager(&dev_priv->bdev, TTM_PL_VRAM, NULL); in vmw_thp_fini()
Dvmwgfx_ttm_buffer.c36 .mem_type = TTM_PL_VRAM,
43 .mem_type = TTM_PL_VRAM,
100 .mem_type = TTM_PL_VRAM,
119 .mem_type = TTM_PL_VRAM,
135 .mem_type = TTM_PL_VRAM,
191 .mem_type = TTM_PL_VRAM,
751 case TTM_PL_VRAM: in vmw_ttm_io_mem_reserve()
Dvmwgfx_drv.c629 ret = ttm_range_man_init(&dev_priv->bdev, TTM_PL_VRAM, false, in vmw_vram_manager_init()
632 ttm_resource_manager_set_used(ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM), false); in vmw_vram_manager_init()
641 ttm_range_man_fini(&dev_priv->bdev, TTM_PL_VRAM); in vmw_vram_manager_fini()
1189 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_enable()
1220 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_disable()
1241 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_svga_disable()
1260 if (ttm_bo_evict_mm(&dev_priv->bdev, TTM_PL_VRAM)) in vmw_svga_disable()
Dvmwgfx_bo.c246 if (bo->mem.mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram()
318 if (bo->mem.mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr()
1166 if (mem->mem_type == TTM_PL_VRAM || bo->mem.mem_type == TTM_PL_VRAM) in vmw_bo_move_notify()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_object.c66 case TTM_PL_VRAM: in radeon_update_memory_usage()
115 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
121 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
174 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain()
363 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted()
412 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) in radeon_bo_unpin()
432 return ttm_bo_evict_mm(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_bo_evict_vram()
761 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling()
810 if (bo->mem.mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify()
827 if ((rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_fault_reserve_notify()
Dradeon_ttm.c75 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram()
106 case TTM_PL_VRAM: in radeon_evict_flags()
123 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags()
170 case TTM_PL_VRAM: in radeon_move_blit()
181 case TTM_PL_VRAM: in radeon_move_blit()
335 if (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move()
340 new_mem->mem_type == TTM_PL_VRAM) { in radeon_bo_move()
380 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve()
886 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini()
903 man = ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_set_active_vram_size()
[all …]
Dradeon_object.h43 case TTM_PL_VRAM: in radeon_mem_type_to_domain()
102 case TTM_PL_VRAM: in radeon_bo_gpu_offset()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_ttm.c207 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, man); in nouveau_ttm_init_vram()
211 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_VRAM, false, in nouveau_ttm_init_vram()
219 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
225 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, NULL); in nouveau_ttm_fini_vram()
228 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
Dnouveau_bo.c354 pl[*n].mem_type = TTM_PL_VRAM; in set_placement_list()
459 case TTM_PL_VRAM: in nouveau_bo_pin()
499 case TTM_PL_VRAM: in nouveau_bo_pin()
533 case TTM_PL_VRAM: in nouveau_bo_unpin()
546 case TTM_PL_VRAM: in nouveau_bo_unpin()
753 case TTM_PL_VRAM: in nouveau_bo_evict_flags()
1028 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind()
1137 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free_locked()
1176 case TTM_PL_VRAM: in nouveau_ttm_io_mem_reserve()
1266 if (bo->mem.mem_type != TTM_PL_VRAM) { in nouveau_ttm_fault_reserve_notify()
Dnouveau_gem.c298 bo->mem.mem_type == TTM_PL_VRAM) in nouveau_gem_set_domain()
512 ((nvbo->bo.mem.mem_type == TTM_PL_VRAM && in validate_list()
Dnouveau_abi16.c314 if (chan->chan->push.buffer->bo.mem.mem_type == TTM_PL_VRAM) in nouveau_abi16_ioctl_channel_alloc()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.c67 if (bo->tbo.mem.mem_type == TTM_PL_VRAM) { in amdgpu_bo_subtract_pin_size()
139 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain()
470 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_validate_size()
595 bo->tbo.mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_do_create()
603 bo->tbo.mem.mem_type == TTM_PL_VRAM) { in amdgpu_bo_do_create()
1058 return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_evict_vram()
1337 if (bo->mem.mem_type != TTM_PL_VRAM || !bo->mem.mm_node || in amdgpu_bo_release_notify()
1379 if (bo->mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_fault_reserve_notify()
1406 if (bo->mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify()
1494 WARN_ON_ONCE(bo->tbo.mem.mem_type == TTM_PL_VRAM && in amdgpu_bo_gpu_offset()
Damdgpu_vram_mgr.c88 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vram_used_show()
107 struct ttm_resource_manager *man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_mem_info_vis_vram_used_show()
193 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager); in amdgpu_vram_mgr_init()
225 ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, NULL); in amdgpu_vram_mgr_fini()
Damdgpu_ttm.c123 case TTM_PL_VRAM: in amdgpu_evict_flags()
487 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit()
638 if (mem->mem_type != TTM_PL_VRAM) in amdgpu_mem_visible()
698 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
702 new_mem->mem_type == TTM_PL_VRAM) { in amdgpu_bo_move()
724 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move()
725 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move()
754 case TTM_PL_VRAM: in amdgpu_ttm_io_mem_reserve()
803 case TTM_PL_VRAM: in amdgpu_ttm_domain_start()
1605 case TTM_PL_VRAM: in amdgpu_ttm_bo_eviction_valuable()
[all …]
Damdgpu_object.h131 case TTM_PL_VRAM: in amdgpu_mem_type_to_domain()
213 if (bo->tbo.mem.mem_type != TTM_PL_VRAM) in amdgpu_bo_in_cpu_visible_vram()
Damdgpu_gmc.c55 case TTM_PL_VRAM: in amdgpu_gmc_get_pde_for_bo()
Damdgpu_kms.c600 ui64 = amdgpu_vram_mgr_usage(ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM)); in amdgpu_info_ioctl()
603 ui64 = amdgpu_vram_mgr_vis_usage(ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM)); in amdgpu_info_ioctl()
638 ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_info_ioctl()
Damdgpu_dma_buf.c329 case TTM_PL_VRAM: in amdgpu_dma_buf_map()
Damdgpu_amdkfd.c535 struct ttm_resource_manager *vram_man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_amdkfd_get_vram_usage()
/kernel/linux/linux-5.10/include/drm/ttm/
Dttm_placement.h42 #define TTM_PL_VRAM 2 macro
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_gem_ttm_helper.c29 [ TTM_PL_VRAM ] = "vram", in drm_gem_ttm_print_info()
Ddrm_gem_vram_helper.c149 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement()
992 case TTM_PL_VRAM: in bo_driver_io_mem_reserve()
1020 struct ttm_resource_manager *man = ttm_manager_type(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_debugfs()
1060 ret = ttm_range_man_init(&vmm->bdev, TTM_PL_VRAM, in drm_vram_mm_init()
1070 ttm_range_man_fini(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_cleanup()

12