/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/ |
D | ttm_bo.c | 68 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument 77 for (i = 0; i < placement->num_placement; i++) { in ttm_bo_mem_space_debug() 78 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug() 80 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug() 121 if (mem->placement & TTM_PL_FLAG_NO_EVICT) in ttm_bo_add_mem_to_lru() 168 if (bulk && !(bo->mem.placement & TTM_PL_FLAG_NO_EVICT)) { in ttm_bo_move_to_lru_tail() 258 ret = ttm_tt_set_placement_caching(bo->ttm, mem->placement); in ttm_bo_handle_move_mem() 547 if (bo->mem.placement & TTM_PL_FLAG_NO_EVICT) { in ttm_bo_release() 548 bo->mem.placement &= ~TTM_PL_FLAG_NO_EVICT; in ttm_bo_release() 603 struct ttm_placement placement; in ttm_bo_evict() local [all …]
|
D | ttm_bo_util.c | 75 ret = ttm_tt_set_placement_caching(ttm, new_mem->placement); in ttm_bo_move_ttm() 138 if (mem->placement & TTM_PL_FLAG_WC) in ttm_resource_ioremap() 282 pgprot_t prot = ttm_io_prot(old_mem->placement, in ttm_bo_move_memcpy() 287 pgprot_t prot = ttm_io_prot(new_mem->placement, in ttm_bo_move_memcpy() 355 fbo->base.mem.placement |= TTM_PL_FLAG_NO_EVICT; in ttm_buffer_object_transfer() 425 if (mem->placement & TTM_PL_FLAG_WC) in ttm_bo_ioremap() 455 if (num_pages == 1 && (mem->placement & TTM_PL_FLAG_CACHED)) { in ttm_bo_kmap_ttm() 469 prot = ttm_io_prot(mem->placement, PAGE_KERNEL); in ttm_bo_kmap_ttm()
|
D | ttm_tt.c | 195 int ttm_tt_set_placement_caching(struct ttm_tt *ttm, uint32_t placement) in ttm_tt_set_placement_caching() argument 199 if (placement & TTM_PL_FLAG_WC) in ttm_tt_set_placement_caching() 201 else if (placement & TTM_PL_FLAG_UNCACHED) in ttm_tt_set_placement_caching()
|
/kernel/linux/linux-5.10/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 | 91 .placement = &vram_placement_flags, 126 .placement = vram_gmr_placement_flags, 149 .placement = vram_gmr_ne_placement_flags, 156 .placement = &vram_placement_flags, 163 .placement = &vram_ne_placement_flags, 170 .placement = &sys_placement_flags, 177 .placement = &sys_ne_placement_flags, 227 .placement = evictable_placement_flags, 235 .placement = &gmr_placement_flags, 242 .placement = &mob_placement_flags, [all …]
|
D | vmwgfx_blit.c | 462 if (!(dst->mem.placement & TTM_PL_FLAG_NO_EVICT)) in vmw_bo_cpu_blit() 464 if (!(src->mem.placement & TTM_PL_FLAG_NO_EVICT)) in vmw_bo_cpu_blit() 487 d.dst_prot = ttm_io_prot(dst->mem.placement, PAGE_KERNEL); in vmw_bo_cpu_blit() 488 d.src_prot = ttm_io_prot(src->mem.placement, PAGE_KERNEL); in vmw_bo_cpu_blit()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 86 struct ttm_placement *placement) in radeon_evict_flags() argument 98 placement->placement = &placements; in radeon_evict_flags() 99 placement->busy_placement = &placements; in radeon_evict_flags() 100 placement->num_placement = 1; in radeon_evict_flags() 101 placement->num_busy_placement = 1; in radeon_evict_flags() 121 rbo->placement.num_busy_placement = 0; in radeon_evict_flags() 122 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_evict_flags() 127 rbo->placement.busy_placement = in radeon_evict_flags() 129 rbo->placement.num_busy_placement = 1; in radeon_evict_flags() 139 *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 | 353 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_gem_userptr_ioctl() 792 const char *placement; in radeon_debugfs_gem_info() local 797 placement = "VRAM"; in radeon_debugfs_gem_info() 800 placement = " GTT"; in radeon_debugfs_gem_info() 804 placement = " CPU"; in radeon_debugfs_gem_info() 809 placement, (unsigned long)rbo->pid); in radeon_debugfs_gem_info()
|
D | radeon_mn.c | 74 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_mn_invalidate()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 52 struct ttm_placement *placement) in qxl_evict_flags() argument 63 placement->placement = &placements; in qxl_evict_flags() 64 placement->busy_placement = &placements; in qxl_evict_flags() 65 placement->num_placement = 1; in qxl_evict_flags() 66 placement->num_busy_placement = 1; in qxl_evict_flags() 71 *placement = qbo->placement; in qxl_evict_flags()
|
D | qxl_object.c | 65 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain() 66 qbo->placement.busy_placement = qbo->placements; in qxl_ttm_placement_from_domain() 85 qbo->placement.num_placement = c; in qxl_ttm_placement_from_domain() 86 qbo->placement.num_busy_placement = c; in qxl_ttm_placement_from_domain() 142 &bo->placement, 0, !kernel, size, in qxl_bo_create() 257 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in __qxl_bo_pin() 279 for (i = 0; i < bo->placement.num_placement; i++) in __qxl_bo_unpin() 281 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in __qxl_bo_unpin()
|
/kernel/linux/linux-5.10/drivers/mtd/nand/ |
D | ecc.c | 362 enum nand_ecc_placement placement; in of_get_nand_ecc_placement() local 368 for (placement = NAND_ECC_PLACEMENT_OOB; in of_get_nand_ecc_placement() 369 placement < ARRAY_SIZE(nand_ecc_placement); placement++) { in of_get_nand_ecc_placement() 370 if (!strcasecmp(pm, nand_ecc_placement[placement])) in of_get_nand_ecc_placement() 371 return placement; in of_get_nand_ecc_placement() 428 nand->ecc.user_conf.placement = of_get_nand_ecc_placement(dn); in of_get_nand_ecc_user_config()
|
/kernel/linux/linux-5.10/include/drm/ttm/ |
D | ttm_bo_api.h | 273 bool ttm_bo_mem_compat(struct ttm_placement *placement, struct ttm_resource *mem, 292 struct ttm_placement *placement, 397 struct ttm_placement *placement, 444 struct ttm_placement *placement, 469 enum ttm_bo_type type, struct ttm_placement *placement,
|
D | ttm_placement.h | 96 const struct ttm_place *placement; member
|
D | ttm_bo_driver.h | 151 struct ttm_placement *placement); 420 struct ttm_placement *placement,
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_gem_vram_helper.c | 145 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement() 146 gbo->placement.busy_placement = gbo->placements; in drm_gem_vram_placement() 161 gbo->placement.num_placement = c; in drm_gem_vram_placement() 162 gbo->placement.num_busy_placement = c; in drm_gem_vram_placement() 204 &gbo->placement, pg_align, false, acc_size, in drm_gem_vram_init() 322 for (i = 0; i < gbo->placement.num_placement; ++i) in drm_gem_vram_pin_locked() 325 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); in drm_gem_vram_pin_locked() 384 for (i = 0; i < gbo->placement.num_placement ; ++i) in drm_gem_vram_unpin_locked() 387 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); in drm_gem_vram_unpin_locked() 604 *pl = gbo->placement; in drm_gem_vram_bo_driver_evict_flags() [all …]
|
D | drm_gem_ttm_helper.c | 43 drm_print_bits(p, bo->mem.placement, plname, ARRAY_SIZE(plname)); in drm_gem_ttm_print_info()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ttm.c | 87 struct ttm_placement *placement) in amdgpu_evict_flags() argument 100 placement->num_placement = 0; in amdgpu_evict_flags() 101 placement->num_busy_placement = 0; in amdgpu_evict_flags() 107 placement->placement = &placements; in amdgpu_evict_flags() 108 placement->busy_placement = &placements; in amdgpu_evict_flags() 109 placement->num_placement = 1; in amdgpu_evict_flags() 110 placement->num_busy_placement = 1; in amdgpu_evict_flags() 119 placement->num_placement = 0; in amdgpu_evict_flags() 120 placement->num_busy_placement = 0; in amdgpu_evict_flags() 140 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags() [all …]
|
D | amdgpu_object.c | 129 struct ttm_placement *placement = &abo->placement; in amdgpu_bo_placement_from_domain() local 212 placement->num_placement = c; in amdgpu_bo_placement_from_domain() 213 placement->placement = places; in amdgpu_bo_placement_from_domain() 215 placement->num_busy_placement = c; in amdgpu_bo_placement_from_domain() 216 placement->busy_placement = places; in amdgpu_bo_placement_from_domain() 395 for (i = 0; i < (*bo_ptr)->placement.num_placement; ++i) { in amdgpu_bo_create_kernel_at() 399 r = ttm_bo_mem_space(&(*bo_ptr)->tbo, &(*bo_ptr)->placement, in amdgpu_bo_create_kernel_at() 589 &bo->placement, page_align, &ctx, acc_size, in amdgpu_bo_do_create() 731 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_bo_validate() 951 for (i = 0; i < bo->placement.num_placement; i++) { in amdgpu_bo_pin_restricted() [all …]
|
D | amdgpu_dma_buf.c | 307 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_map() 407 ret = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_begin_cpu_access() 521 struct ttm_placement placement = {}; in amdgpu_dma_buf_move_notify() local 528 r = ttm_bo_validate(&bo->tbo, &placement, &ctx); in amdgpu_dma_buf_move_notify()
|
D | amdgpu_gem.c | 358 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_gem_userptr_ioctl() 857 const char *placement; in amdgpu_debugfs_gem_bo_info() local 863 placement = "VRAM"; in amdgpu_debugfs_gem_bo_info() 866 placement = " GTT"; in amdgpu_debugfs_gem_bo_info() 870 placement = " CPU"; in amdgpu_debugfs_gem_bo_info() 874 id, amdgpu_bo_size(bo), placement); in amdgpu_debugfs_gem_bo_info()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 315 &nvbo->placement, align >> PAGE_SHIFT, false, in nouveau_bo_init() 404 for (i = 0; i < nvbo->placement.num_placement; ++i) { in set_placement_range() 408 for (i = 0; i < nvbo->placement.num_busy_placement; ++i) { in set_placement_range() 420 struct ttm_placement *pl = &nvbo->placement; in nouveau_bo_placement_set() 425 pl->placement = nvbo->placements; in nouveau_bo_placement_set() 654 ret = ttm_bo_validate(&nvbo->bo, &nvbo->placement, &ctx); in nouveau_bo_validate() 764 *pl = nvbo->placement; in nouveau_bo_evict_flags() 917 struct ttm_placement placement; in nouveau_bo_move_flipd() local 921 placement.num_placement = placement.num_busy_placement = 1; in nouveau_bo_move_flipd() 922 placement.placement = placement.busy_placement = &placement_memtype; in nouveau_bo_move_flipd() [all …]
|
/kernel/linux/linux-5.10/Documentation/driver-api/ |
D | mtdnand.rst | 502 - Automatic placement at the end of the chip 593 For automatic placement some blocks must be reserved for bad block 600 Spare area (auto)placement 603 The nand driver implements different possibilities for placement of 608 - Automatic placement 610 The default placement function is automatic placement. The nand driver 611 has built in default placement schemes for the various chiptypes. If due 612 to hardware ECC functionality the default placement does not fit then 613 the board driver can provide a own placement scheme. 615 File system drivers can provide a own placement scheme which is used [all …]
|
/kernel/linux/linux-5.10/Documentation/admin-guide/cgroup-v1/ |
D | cpusets.rst | 47 Cpusets constrain the CPU and Memory placement of tasks to only 51 job placement on large systems. 78 the efficient scheduling and memory placement of processes. 85 memory placement to reduce memory access times and contention, 177 - cpuset.cpu_exclusive flag: is cpu placement exclusive? 178 - cpuset.mem_exclusive flag: is memory placement exclusive? 206 the detailed placement done on individual tasks and memory regions 378 This memory placement policy is also known (in other contexts) as 395 tasks to itself, within the constraints of such placement mechanisms 616 does not support one task updating the memory placement of another [all …]
|