| /Linux-v5.4/drivers/gpu/drm/ttm/ |
| D | ttm_bo.c | 96 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument 104 for (i = 0; i < placement->num_placement; i++) { in ttm_bo_mem_space_debug() 105 ret = ttm_mem_type_from_place(&placement->placement[i], in ttm_bo_mem_space_debug() 110 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug() 181 if (mem->placement & TTM_PL_FLAG_NO_EVICT) in ttm_bo_add_mem_to_lru() 253 if (bulk && !(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { in ttm_bo_move_to_lru_tail() 332 ((mem->placement & bo->mem.placement & TTM_PL_MASK_CACHING) == 0)) { in ttm_bo_handle_move_mem() 352 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement); in ttm_bo_handle_move_mem() 395 ret = bdev->driver->invalidate_caches(bdev, bo->mem.placement); in ttm_bo_handle_move_mem() 513 if (bo->mem.placement & TTM_PL_FLAG_NO_EVICT) { in ttm_bo_cleanup_refs_or_queue() [all …]
|
| D | ttm_bo_util.c | 72 ttm_flag_masked(&old_mem->placement, TTM_PL_FLAG_SYSTEM, in ttm_bo_move_ttm() 77 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm() 222 if (mem->placement & TTM_PL_FLAG_WC) in ttm_mem_reg_ioremap() 421 pgprot_t prot = ttm_io_prot(old_mem->placement, in ttm_bo_move_memcpy() 426 pgprot_t prot = ttm_io_prot(new_mem->placement, in ttm_bo_move_memcpy() 496 fbo->base.mem.placement |= TTM_PL_FLAG_NO_EVICT; in ttm_buffer_object_transfer() 567 if (mem->placement & TTM_PL_FLAG_WC) in ttm_bo_ioremap() 597 if (num_pages == 1 && (mem->placement & TTM_PL_FLAG_CACHED)) { in ttm_bo_kmap_ttm() 611 prot = ttm_io_prot(mem->placement, PAGE_KERNEL); in ttm_bo_kmap_ttm()
|
| D | ttm_tt.c | 193 int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement) in ttm_tt_set_placement_caching() argument 197 if (placement & TTM_PL_FLAG_WC) in ttm_tt_set_placement_caching() 199 else if (placement & TTM_PL_FLAG_UNCACHED) in ttm_tt_set_placement_caching()
|
| /Linux-v5.4/drivers/gpu/drm/vmwgfx/ |
| D | vmwgfx_bo.c | 91 struct ttm_placement *placement, in vmw_bo_pin_in_placement() argument 110 ret = ttm_bo_mem_compat(placement, &bo->mem, in vmw_bo_pin_in_placement() 113 ret = ttm_bo_validate(bo, placement, &ctx); in vmw_bo_pin_in_placement() 220 struct ttm_placement placement; in vmw_bo_pin_in_start_of_vram() local 225 place = vmw_vram_placement.placement[0]; in vmw_bo_pin_in_start_of_vram() 227 placement.num_placement = 1; in vmw_bo_pin_in_start_of_vram() 228 placement.placement = &place; in vmw_bo_pin_in_start_of_vram() 229 placement.num_busy_placement = 1; in vmw_bo_pin_in_start_of_vram() 230 placement.busy_placement = &place; in vmw_bo_pin_in_start_of_vram() 255 ret = ttm_bo_mem_compat(&placement, &bo->mem, in vmw_bo_pin_in_start_of_vram() [all …]
|
| D | vmwgfx_ttm_buffer.c | 83 .placement = &vram_placement_flags, 114 .placement = vram_gmr_placement_flags, 135 .placement = vram_gmr_ne_placement_flags, 142 .placement = &vram_placement_flags, 149 .placement = &vram_ne_placement_flags, 156 .placement = &sys_placement_flags, 163 .placement = &sys_ne_placement_flags, 206 .placement = evictable_placement_flags, 214 .placement = &gmr_placement_flags, 221 .placement = &mob_placement_flags, [all …]
|
| D | vmwgfx_blit.c | 461 if (!(dst->mem.placement & TTM_PL_FLAG_NO_EVICT)) in vmw_bo_cpu_blit() 463 if (!(src->mem.placement & TTM_PL_FLAG_NO_EVICT)) in vmw_bo_cpu_blit() 486 d.dst_prot = ttm_io_prot(dst->mem.placement, PAGE_KERNEL); in vmw_bo_cpu_blit() 487 d.src_prot = ttm_io_prot(src->mem.placement, PAGE_KERNEL); in vmw_bo_cpu_blit()
|
| /Linux-v5.4/drivers/gpu/drm/radeon/ |
| D | radeon_ttm.c | 126 struct ttm_placement *placement) in radeon_evict_flags() argument 137 placement->placement = &placements; in radeon_evict_flags() 138 placement->busy_placement = &placements; in radeon_evict_flags() 139 placement->num_placement = 1; in radeon_evict_flags() 140 placement->num_busy_placement = 1; in radeon_evict_flags() 160 rbo->placement.num_busy_placement = 0; in radeon_evict_flags() 161 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_evict_flags() 166 rbo->placement.busy_placement = in radeon_evict_flags() 168 rbo->placement.num_busy_placement = 1; in radeon_evict_flags() 178 *placement = rbo->placement; in radeon_evict_flags() [all …]
|
| D | radeon_object.c | 105 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain() 106 rbo->placement.busy_placement = rbo->placements; in radeon_ttm_placement_from_domain() 169 rbo->placement.num_placement = c; in radeon_ttm_placement_from_domain() 170 rbo->placement.num_busy_placement = c; in radeon_ttm_placement_from_domain() 263 &bo->placement, page_align, !kernel, acc_size, in radeon_bo_create() 361 for (i = 0; i < bo->placement.num_placement; i++) { in radeon_bo_pin_restricted() 374 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_pin_restricted() 406 for (i = 0; i < bo->placement.num_placement; i++) { in radeon_bo_unpin() 410 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_unpin() 579 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_list_validate() [all …]
|
| D | radeon_gem.c | 352 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_gem_userptr_ioctl() 791 const char *placement; in radeon_debugfs_gem_info() local 796 placement = "VRAM"; in radeon_debugfs_gem_info() 799 placement = " GTT"; in radeon_debugfs_gem_info() 803 placement = " CPU"; in radeon_debugfs_gem_info() 808 placement, (unsigned long)rbo->pid); in radeon_debugfs_gem_info()
|
| /Linux-v5.4/drivers/gpu/drm/ |
| D | drm_gem_vram_helper.c | 51 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement() 52 gbo->placement.busy_placement = gbo->placements; in drm_gem_vram_placement() 67 gbo->placement.num_placement = c; in drm_gem_vram_placement() 68 gbo->placement.num_busy_placement = c; in drm_gem_vram_placement() 98 &gbo->placement, pg_align, interruptible, acc_size, in drm_gem_vram_init() 225 for (i = 0; i < gbo->placement.num_placement; ++i) in drm_gem_vram_pin() 228 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); in drm_gem_vram_pin() 268 for (i = 0; i < gbo->placement.num_placement ; ++i) in drm_gem_vram_unpin() 271 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); in drm_gem_vram_unpin() 430 *pl = gbo->placement; in drm_gem_vram_bo_driver_evict_flags()
|
| D | drm_vram_mm_helper.c | 83 struct ttm_placement *placement) in bo_driver_evict_flags() argument 88 vmm->funcs->evict_flags(bo, placement); in bo_driver_evict_flags()
|
| /Linux-v5.4/include/drm/ttm/ |
| D | ttm_bo_api.h | 102 uint32_t placement; member 339 bool ttm_bo_mem_compat(struct ttm_placement *placement, struct ttm_mem_reg *mem, 358 struct ttm_placement *placement, 524 struct ttm_placement *placement, 571 struct ttm_placement *placement, 596 enum ttm_bo_type type, struct ttm_placement *placement,
|
| D | ttm_placement.h | 103 const struct ttm_place *placement; member
|
| /Linux-v5.4/drivers/gpu/drm/qxl/ |
| D | qxl_object.c | 60 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain() 61 qbo->placement.busy_placement = qbo->placements; in qxl_ttm_placement_from_domain() 72 qbo->placement.num_placement = c; in qxl_ttm_placement_from_domain() 73 qbo->placement.num_busy_placement = c; in qxl_ttm_placement_from_domain() 114 &bo->placement, 0, !kernel, size, in qxl_bo_create() 238 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in __qxl_bo_pin() 260 for (i = 0; i < bo->placement.num_placement; i++) in __qxl_bo_unpin() 262 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in __qxl_bo_unpin()
|
| D | qxl_ttm.c | 133 struct ttm_placement *placement) in qxl_evict_flags() argument 143 placement->placement = &placements; in qxl_evict_flags() 144 placement->busy_placement = &placements; in qxl_evict_flags() 145 placement->num_placement = 1; in qxl_evict_flags() 146 placement->num_busy_placement = 1; in qxl_evict_flags() 151 *placement = qbo->placement; in qxl_evict_flags()
|
| /Linux-v5.4/drivers/gpu/drm/virtio/ |
| D | virtgpu_object.c | 83 vgbo->placement.placement = &vgbo->placement_code; in virtio_gpu_init_ttm_placement() 84 vgbo->placement.busy_placement = &vgbo->placement_code; in virtio_gpu_init_ttm_placement() 90 vgbo->placement.num_placement = c; in virtio_gpu_init_ttm_placement() 91 vgbo->placement.num_busy_placement = c; in virtio_gpu_init_ttm_placement() 134 ttm_bo_type_device, &bo->placement, 0, in virtio_gpu_object_create()
|
| D | virtgpu_ttm.c | 139 struct ttm_placement *placement) in virtio_gpu_evict_flags() argument 147 placement->placement = &placements; in virtio_gpu_evict_flags() 148 placement->busy_placement = &placements; in virtio_gpu_evict_flags() 149 placement->num_placement = 1; in virtio_gpu_evict_flags() 150 placement->num_busy_placement = 1; in virtio_gpu_evict_flags()
|
| /Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
| D | amdgpu_ttm.c | 141 struct ttm_placement *placement) in amdgpu_evict_flags() argument 153 placement->num_placement = 0; in amdgpu_evict_flags() 154 placement->num_busy_placement = 0; in amdgpu_evict_flags() 160 placement->placement = &placements; in amdgpu_evict_flags() 161 placement->busy_placement = &placements; in amdgpu_evict_flags() 162 placement->num_placement = 1; in amdgpu_evict_flags() 163 placement->num_busy_placement = 1; in amdgpu_evict_flags() 172 placement->num_placement = 0; in amdgpu_evict_flags() 173 placement->num_busy_placement = 0; in amdgpu_evict_flags() 193 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags() [all …]
|
| D | amdgpu_object.c | 128 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain() local 205 placement->num_placement = c; in amdgpu_bo_placement_from_domain() 206 placement->placement = places; in amdgpu_bo_placement_from_domain() 208 placement->num_busy_placement = c; in amdgpu_bo_placement_from_domain() 209 placement->busy_placement = places; in amdgpu_bo_placement_from_domain() 515 &bo->placement, page_align, &ctx, acc_size, in amdgpu_bo_do_create() 529 bo->tbo.mem.placement & TTM_PL_FLAG_VRAM) { in amdgpu_bo_do_create() 657 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_bo_validate() 869 for (i = 0; i < bo->placement.num_placement; i++) { in amdgpu_bo_pin_restricted() 883 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_bo_pin_restricted() [all …]
|
| D | amdgpu_gem.c | 341 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_gem_userptr_ioctl() 802 const char *placement; in amdgpu_debugfs_gem_bo_info() local 808 placement = "VRAM"; in amdgpu_debugfs_gem_bo_info() 811 placement = " GTT"; in amdgpu_debugfs_gem_bo_info() 815 placement = " CPU"; in amdgpu_debugfs_gem_bo_info() 819 id, amdgpu_bo_size(bo), placement); in amdgpu_debugfs_gem_bo_info()
|
| /Linux-v5.4/drivers/gpu/drm/nouveau/ |
| D | nouveau_bo.c | 309 &nvbo->placement, align >> PAGE_SHIFT, false, in nouveau_bo_init() 377 for (i = 0; i < nvbo->placement.num_placement; ++i) { in set_placement_range() 381 for (i = 0; i < nvbo->placement.num_busy_placement; ++i) { in set_placement_range() 391 struct ttm_placement *pl = &nvbo->placement; in nouveau_bo_placement_set() 396 pl->placement = nvbo->placements; in nouveau_bo_placement_set() 493 nouveau_bo_placement_set(nvbo, bo->mem.placement, 0); in nouveau_bo_unpin() 584 ret = ttm_bo_validate(&nvbo->bo, &nvbo->placement, &ctx); in nouveau_bo_validate() 734 *pl = nvbo->placement; in nouveau_bo_evict_flags() 1240 struct ttm_placement placement; in nouveau_bo_move_flipd() local 1244 placement.num_placement = placement.num_busy_placement = 1; in nouveau_bo_move_flipd() [all …]
|
| /Linux-v5.4/Documentation/driver-api/ |
| D | mtdnand.rst | 500 - Automatic placement at the end of the chip 591 For automatic placement some blocks must be reserved for bad block 598 Spare area (auto)placement 601 The nand driver implements different possibilities for placement of 606 - Automatic placement 608 The default placement function is automatic placement. The nand driver 609 has built in default placement schemes for the various chiptypes. If due 610 to hardware ECC functionality the default placement does not fit then 611 the board driver can provide a own placement scheme. 613 File system drivers can provide a own placement scheme which is used [all …]
|
| /Linux-v5.4/Documentation/admin-guide/cgroup-v1/ |
| D | cpusets.rst | 45 Cpusets constrain the CPU and Memory placement of tasks to only 49 job placement on large systems. 76 the efficient scheduling and memory placement of processes. 83 memory placement to reduce memory access times and contention, 175 - cpuset.cpu_exclusive flag: is cpu placement exclusive? 176 - cpuset.mem_exclusive flag: is memory placement exclusive? 204 the detailed placement done on individual tasks and memory regions 365 This memory placement policy is also known (in other contexts) as 382 tasks to itself, within the constraints of such placement mechanisms 603 does not support one task updating the memory placement of another [all …]
|
| /Linux-v5.4/include/drm/ |
| D | drm_vram_mm_helper.h | 24 struct ttm_placement *placement);
|
| /Linux-v5.4/Documentation/translations/zh_CN/process/ |
| D | license-rules.rst | 186 tag/value pairs into a comment according to the placement 201 tag/value pair into a comment according to the placement 241 tag/value pair into a comment according to the placement
|