| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_fdinfo.c | 66 [TTM_PL_VRAM] = "vram", in amdgpu_show_fdinfo() 100 stats[TTM_PL_VRAM].drm.resident/1024UL); in amdgpu_show_fdinfo() 108 stats[TTM_PL_VRAM].evicted/1024UL); in amdgpu_show_fdinfo() 110 (stats[TTM_PL_VRAM].drm.shared + in amdgpu_show_fdinfo() 111 stats[TTM_PL_VRAM].drm.private) / 1024UL); in amdgpu_show_fdinfo()
|
| H A D | amdgpu_res_cursor.h | 70 case TTM_PL_VRAM: in amdgpu_res_first() 144 case TTM_PL_VRAM: in amdgpu_res_next() 179 case TTM_PL_VRAM: in amdgpu_res_cleared()
|
| H A D | amdgpu_object.c | 132 places[c].mem_type = TTM_PL_VRAM; in amdgpu_bo_placement_from_domain() 565 man = ttm_manager_type(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_validate_size() 720 bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_create() 956 if ((mem_type == TTM_PL_VRAM) && in amdgpu_bo_pin() 979 bo->placements[i].mem_type == TTM_PL_VRAM) in amdgpu_bo_pin() 991 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_pin() 1024 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) { in amdgpu_bo_unpin() 1373 if (bo->resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_fault_reserve_notify() 1468 WARN_ON_ONCE(bo->tbo.resource->mem_type == TTM_PL_VRAM && in amdgpu_bo_gpu_offset() 1521 return TTM_PL_VRAM; in amdgpu_bo_mem_stats_placement() [all …]
|
| H A D | amdgpu_ttm.c | 129 case TTM_PL_VRAM: in amdgpu_evict_flags() 403 if (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_move_blit() 452 if (res->mem_type != TTM_PL_VRAM) in amdgpu_res_cpu_visible() 477 if (mem->mem_type == TTM_PL_VRAM && in amdgpu_res_copyable() 551 new_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 552 old_mem->mem_type != TTM_PL_VRAM) { in amdgpu_bo_move() 562 (old_mem->mem_type == TTM_PL_VRAM && in amdgpu_bo_move() 614 case TTM_PL_VRAM: in amdgpu_ttm_io_mem_reserve() 666 case TTM_PL_VRAM: in amdgpu_ttm_domain_start() 2409 case TTM_PL_VRAM: in amdgpu_ttm_evict_resources() [all …]
|
| H A D | amdgpu_object.h | 156 case TTM_PL_VRAM: in amdgpu_mem_type_to_domain()
|
| H A D | amdgpu_dma_buf.c | 201 case TTM_PL_VRAM: in amdgpu_dma_buf_map()
|
| /linux-6.15/drivers/gpu/drm/loongson/ |
| H A D | lsdc_ttm.c | 18 case TTM_PL_VRAM: in lsdc_mem_type_to_str() 59 lbo->placements[c].mem_type = TTM_PL_VRAM; in lsdc_bo_set_placement() 146 case TTM_PL_VRAM: in lsdc_bo_evict_flags() 229 case TTM_PL_VRAM: in lsdc_bo_reserve_io_mem() 335 if (tbo->resource->mem_type == TTM_PL_VRAM) in lsdc_bo_unpin() 408 man = ttm_manager_type(bdev, TTM_PL_VRAM); in lsdc_bo_evict_vram() 530 ttm_range_man_fini(&ldev->bdev, TTM_PL_VRAM); in lsdc_ttm_fini() 553 ret = ttm_range_man_init(&ldev->bdev, TTM_PL_VRAM, false, num_vram_pages); in lsdc_ttm_init() 582 vram_man = ttm_manager_type(bdev, TTM_PL_VRAM); in lsdc_ttm_debugfs_init()
|
| /linux-6.15/drivers/gpu/drm/qxl/ |
| H A D | qxl_ttm.c | 80 case TTM_PL_VRAM: in qxl_ttm_io_mem_reserve() 206 r = qxl_ttm_init_mem_type(qdev, TTM_PL_VRAM, num_io_pages); in qxl_ttm_init() 228 ttm_range_man_fini(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_ttm_fini() 238 TTM_PL_VRAM), in qxl_ttm_debugfs_init()
|
| H A D | qxl_object.c | 67 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain() 73 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain() 215 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in qxl_bo_kmap_atomic_page() 269 if ((bo->tbo.resource->mem_type != TTM_PL_VRAM) && in qxl_bo_kunmap_atomic_page() 416 man = ttm_manager_type(&qdev->mman.bdev, TTM_PL_VRAM); in qxl_vram_evict()
|
| /linux-6.15/drivers/gpu/drm/radeon/ |
| H A D | radeon_object.c | 89 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain() 94 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain() 119 (rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_ttm_placement_from_domain() 307 if ((bo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_pin_restricted() 340 if (bo->tbo.resource->mem_type == TTM_PL_VRAM) in radeon_bo_unpin() 360 man = ttm_manager_type(bdev, TTM_PL_VRAM); in radeon_bo_evict_vram() 418 ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_bo_get_threshold_for_moves() 690 if (bo->tbo.resource->mem_type != TTM_PL_VRAM) { in radeon_bo_check_tiling() 730 if (bo->resource->mem_type != TTM_PL_VRAM) in radeon_bo_fault_reserve_notify() 747 if ((rbo->placements[i].mem_type == TTM_PL_VRAM) && in radeon_bo_fault_reserve_notify()
|
| H A D | radeon_ttm.c | 72 return ttm_range_man_init(&rdev->mman.bdev, TTM_PL_VRAM, in radeon_ttm_init_vram() 101 case TTM_PL_VRAM: in radeon_evict_flags() 117 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags() 150 case TTM_PL_VRAM: in radeon_move_blit() 161 case TTM_PL_VRAM: in radeon_move_blit() 228 new_mem->mem_type == TTM_PL_VRAM) || in radeon_bo_move() 229 (old_mem->mem_type == TTM_PL_VRAM && in radeon_bo_move() 276 case TTM_PL_VRAM: in radeon_ttm_io_mem_reserve() 748 ttm_range_man_fini(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_fini() 765 man = ttm_manager_type(&rdev->mman.bdev, TTM_PL_VRAM); in radeon_ttm_set_active_vram_size() [all …]
|
| H A D | radeon_object.h | 43 case TTM_PL_VRAM: in radeon_mem_type_to_domain() 102 case TTM_PL_VRAM: in radeon_bo_gpu_offset()
|
| /linux-6.15/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_ttm.c | 193 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, man); in nouveau_ttm_init_vram() 197 return ttm_range_man_init(&drm->ttm.bdev, TTM_PL_VRAM, false, in nouveau_ttm_init_vram() 205 struct ttm_resource_manager *man = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram() 211 ttm_set_driver_manager(&drm->ttm.bdev, TTM_PL_VRAM, NULL); in nouveau_ttm_fini_vram() 214 ttm_range_man_fini(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_ttm_fini_vram()
|
| H A D | nouveau_bo.c | 445 pl[*n].mem_type = TTM_PL_VRAM; in nouveau_bo_placement_set() 489 case TTM_PL_VRAM: in nouveau_bo_pin_locked() 524 case TTM_PL_VRAM: in nouveau_bo_pin_locked() 550 case TTM_PL_VRAM: in nouveau_bo_unpin_locked() 814 case TTM_PL_VRAM: in nouveau_bo_evict_flags() 1032 if (new_reg->mem_type != TTM_PL_VRAM) in nouveau_bo_vm_bind() 1118 new_reg->mem_type == TTM_PL_VRAM) || in nouveau_bo_move() 1119 (old_reg->mem_type == TTM_PL_VRAM && in nouveau_bo_move() 1164 case TTM_PL_VRAM: in nouveau_ttm_io_mem_free_locked() 1205 case TTM_PL_VRAM: in nouveau_ttm_io_mem_reserve() [all …]
|
| H A D | nouveau_abi16.c | 321 struct ttm_resource_manager *vram_mgr = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM); in nouveau_abi16_ioctl_getparam() 430 if (chan->chan->push.buffer->bo.resource->mem_type == TTM_PL_VRAM) in nouveau_abi16_ioctl_channel_alloc()
|
| /linux-6.15/drivers/gpu/drm/ttm/tests/ |
| H A D | ttm_bo_validate_test.c | 158 u32 mem_type = TTM_PL_VRAM; in ttm_bo_init_reserved_mock_man() 230 u32 fst_mem = TTM_PL_SYSTEM, snd_mem = TTM_PL_VRAM; in ttm_bo_validate_basic() 305 u32 mem_type = TTM_PL_VRAM; in ttm_bo_validate_failed_alloc() 366 .mem_type = TTM_PL_VRAM, 414 u32 fst_mem = TTM_PL_VRAM, snd_mem = TTM_PL_VRAM + 1; in ttm_bo_validate_busy_placement() 702 u32 fst_mem = TTM_PL_VRAM, snd_mem = TTM_PL_VRAM + 1; in ttm_bo_validate_move_fence_not_signaled() 812 u32 mem_type = TTM_PL_VRAM, mem_multihop = TTM_PL_TT, in ttm_bo_validate_happy_evict() 873 u32 mem_type = TTM_PL_VRAM, mem_multihop = TTM_PL_TT; in ttm_bo_validate_all_pinned_evict() 917 u32 mem_type = TTM_PL_VRAM, mem_multihop = TTM_PL_TT, in ttm_bo_validate_allowed_only_evict() 988 u32 mem_type = TTM_PL_VRAM; in ttm_bo_validate_deleted_evict() [all …]
|
| H A D | ttm_kunit_helpers.c | 72 if (bo->resource->mem_type == TTM_PL_VRAM && in mock_move() 96 case TTM_PL_VRAM: in mock_evict_flags()
|
| /linux-6.15/include/drm/ttm/ |
| H A D | ttm_placement.h | 53 #define TTM_PL_VRAM 2 macro
|
| /linux-6.15/drivers/gpu/drm/ |
| H A D | drm_gem_vram_helper.c | 151 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement() 871 case TTM_PL_VRAM: in bo_driver_io_mem_reserve() 901 struct ttm_resource_manager *man = ttm_manager_type(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_debugfs() 940 ret = ttm_range_man_init(&vmm->bdev, TTM_PL_VRAM, in drm_vram_mm_init() 950 ttm_range_man_fini(&vmm->bdev, TTM_PL_VRAM); in drm_vram_mm_cleanup()
|
| H A D | drm_gem_ttm_helper.c | 31 [ TTM_PL_VRAM ] = "vram", in drm_gem_ttm_print_info()
|
| /linux-6.15/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_bo.c | 216 if (bo->resource->mem_type == TTM_PL_VRAM && in vmw_bo_pin_in_start_of_vram() 285 if (bo->resource->mem_type == TTM_PL_VRAM) { in vmw_bo_get_guest_ptr() 729 if (mem->mem_type == TTM_PL_VRAM || bo->resource->mem_type == TTM_PL_VRAM) in vmw_bo_move_notify() 778 pl[n].mem_type = TTM_PL_VRAM; in set_placement_list()
|
| H A D | vmwgfx_drv.c | 713 ret = ttm_range_man_init(&dev_priv->bdev, TTM_PL_VRAM, false, in vmw_vram_manager_init() 715 ttm_resource_manager_set_used(ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM), false); in vmw_vram_manager_init() 721 ttm_range_man_fini(&dev_priv->bdev, TTM_PL_VRAM); in vmw_vram_manager_fini() 1356 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_enable() 1383 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in __vmw_svga_disable() 1402 struct ttm_resource_manager *man = ttm_manager_type(&dev_priv->bdev, TTM_PL_VRAM); in vmw_svga_disable() 1441 ttm_resource_manager_create_debugfs(ttm_manager_type(&vmw->bdev, TTM_PL_VRAM), in vmw_debugfs_resource_managers_init()
|
| H A D | vmwgfx_ttm_buffer.c | 35 .mem_type = TTM_PL_VRAM, 448 case TTM_PL_VRAM: in vmw_ttm_io_mem_reserve()
|
| H A D | vmwgfx_gem.c | 276 case TTM_PL_VRAM: in vmw_bo_print_info()
|
| /linux-6.15/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_ttm.h | 66 #define I915_PL_STOLEN TTM_PL_VRAM
|