Home
last modified time | relevance | path

Searched refs:placement (Results 1 – 25 of 128) sorted by relevance

123456

/linux-6.12.1/drivers/gpu/drm/ttm/tests/
Dttm_bo_validate_test.c32 struct ttm_placement *placement; in ttm_placement_kunit_init() local
34 placement = kunit_kzalloc(test, sizeof(*placement), GFP_KERNEL); in ttm_placement_kunit_init()
35 KUNIT_ASSERT_NOT_NULL(test, placement); in ttm_placement_kunit_init()
37 placement->num_placement = num_places; in ttm_placement_kunit_init()
38 placement->placement = places; in ttm_placement_kunit_init()
40 return placement; in ttm_placement_kunit_init()
111 struct ttm_placement *placement; in ttm_bo_init_reserved_sys_man() local
120 placement = ttm_placement_kunit_init(test, place, 1); in ttm_bo_init_reserved_sys_man()
124 err = ttm_bo_init_reserved(priv->ttm_dev, bo, bo_type, placement, in ttm_bo_init_reserved_sys_man()
157 struct ttm_placement *placement; in ttm_bo_init_reserved_mock_man() local
[all …]
Dttm_kunit_helpers.c32 .placement = &sys_place,
37 .placement = &mock1_place,
42 .placement = &mock2_place,
93 struct ttm_placement *placement) in mock_evict_flags() argument
98 *placement = sys_placement; in mock_evict_flags()
101 *placement = mock_placement; in mock_evict_flags()
110 struct ttm_placement *placement) in bad_evict_flags() argument
112 *placement = bad_placement; in bad_evict_flags()
/linux-6.12.1/drivers/gpu/drm/ttm/
Dttm_bo.c50 struct ttm_placement *placement) in ttm_bo_mem_space_debug() argument
56 for (i = 0; i < placement->num_placement; i++) { in ttm_bo_mem_space_debug()
57 mem_type = placement->placement[i].mem_type; in ttm_bo_mem_space_debug()
59 i, placement->placement[i].flags, mem_type); in ttm_bo_mem_space_debug()
340 hop_placement.placement = hop; in ttm_bo_bounce_temp_buffer()
360 struct ttm_placement placement; in ttm_bo_evict() local
368 placement.num_placement = 0; in ttm_bo_evict()
369 bdev->funcs->evict_flags(bo, &placement); in ttm_bo_evict()
371 if (!placement.num_placement) { in ttm_bo_evict()
383 ret = ttm_bo_mem_space(bo, &placement, &evict_mem, ctx); in ttm_bo_evict()
[all …]
Dttm_resource.c295 res->placement = place->flags; in ttm_resource_init()
410 struct ttm_placement *placement, in ttm_resource_compatible() argument
417 if (res->placement & TTM_PL_FLAG_TEMPORARY) in ttm_resource_compatible()
420 for (i = 0; i < placement->num_placement; i++) { in ttm_resource_compatible()
421 const struct ttm_place *place = &placement->placement[i]; in ttm_resource_compatible()
432 !(res->placement & TTM_PL_FLAG_CONTIGUOUS)) in ttm_resource_compatible()
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_bo.c94 struct ttm_placement *placement, in vmw_bo_pin_in_placement() argument
107 ret = ttm_bo_validate(bo, placement, &ctx); in vmw_bo_pin_in_placement()
146 ret = ttm_bo_validate(bo, &buf->placement, &ctx); in vmw_bo_pin_in_vram_or_gmr()
153 ret = ttm_bo_validate(bo, &buf->placement, &ctx); in vmw_bo_pin_in_vram_or_gmr()
224 (void)ttm_bo_validate(bo, &buf->placement, &ctx); in vmw_bo_pin_in_start_of_vram()
232 ret = ttm_bo_validate(bo, &buf->placement, &ctx); in vmw_bo_pin_in_start_of_vram()
307 struct ttm_placement placement; in vmw_bo_pin_reserved() local
320 pl.flags = bo->resource->placement; in vmw_bo_pin_reserved()
322 memset(&placement, 0, sizeof(placement)); in vmw_bo_pin_reserved()
323 placement.num_placement = 1; in vmw_bo_pin_reserved()
[all …]
Dvmwgfx_gem.c259 const char *placement; in vmw_bo_print_info() local
264 placement = " CPU"; in vmw_bo_print_info()
267 placement = " GMR"; in vmw_bo_print_info()
270 placement = " MOB"; in vmw_bo_print_info()
273 placement = "VCPU"; in vmw_bo_print_info()
276 placement = "VRAM"; in vmw_bo_print_info()
279 placement = "None"; in vmw_bo_print_info()
299 id, bo->tbo.base.size, placement, type); in vmw_bo_print_info()
Dvmwgfx_ttm_buffer.c48 .placement = &vram_placement_flags,
53 .placement = &sys_placement_flags,
433 struct ttm_placement *placement) in vmw_evict_flags() argument
435 *placement = vmw_sys_placement; in vmw_evict_flags()
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.c110 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()
393 for (i = 0; i < (*bo_ptr)->placement.num_placement; ++i) { in amdgpu_bo_create_kernel_at()
397 r = ttm_bo_mem_space(&(*bo_ptr)->tbo, &(*bo_ptr)->placement, in amdgpu_bo_create_kernel_at()
605 &bo->placement, page_align, &ctx, NULL, in amdgpu_bo_create()
849 uint32_t mem_flags = bo->tbo.resource->placement; in amdgpu_bo_pin()
875 for (i = 0; i < bo->placement.num_placement; i++) { in amdgpu_bo_pin()
881 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_bo_pin()
1309 r = ttm_bo_validate(bo, &abo->placement, &ctx); in amdgpu_bo_fault_reserve_notify()
[all …]
Damdgpu_dma_buf.c131 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_map()
227 ret = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in amdgpu_dma_buf_begin_cpu_access()
341 struct ttm_placement placement = {}; in amdgpu_dma_buf_move_notify() local
352 r = ttm_bo_validate(&bo->tbo, &placement, &ctx); in amdgpu_dma_buf_move_notify()
Damdgpu_ttm.c91 struct ttm_placement *placement) in amdgpu_evict_flags() argument
104 placement->num_placement = 0; in amdgpu_evict_flags()
110 placement->placement = &placements; in amdgpu_evict_flags()
111 placement->num_placement = 1; in amdgpu_evict_flags()
117 placement->num_placement = 0; in amdgpu_evict_flags()
126 placement->num_placement = 0; in amdgpu_evict_flags()
161 *placement = abo->placement; in amdgpu_evict_flags()
474 !(mem->placement & TTM_PL_FLAG_CONTIGUOUS)) in amdgpu_res_copyable()
614 mem->placement & TTM_PL_FLAG_CONTIGUOUS) in amdgpu_ttm_io_mem_reserve()
986 struct ttm_placement placement; in amdgpu_ttm_alloc_gart() local
[all …]
/linux-6.12.1/drivers/gpu/drm/qxl/
Dqxl_ttm.c51 struct ttm_placement *placement) in qxl_evict_flags() argument
62 placement->placement = &placements; in qxl_evict_flags()
63 placement->num_placement = 1; in qxl_evict_flags()
68 *placement = qbo->placement; in qxl_evict_flags()
Dqxl_object.c65 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain()
84 qbo->placement.num_placement = c; in qxl_ttm_placement_from_domain()
140 &bo->placement, 0, &ctx, NULL, NULL, in qxl_bo_create()
307 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in qxl_bo_pin_locked()
/linux-6.12.1/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c67 .placement = &sys_placement_flags,
159 struct ttm_placement *placement) in i915_ttm_placement_from_obj() argument
177 placement->num_placement = num_allowed + 1; in i915_ttm_placement_from_obj()
178 placement->placement = places; in i915_ttm_placement_from_obj()
378 struct ttm_placement *placement) in i915_ttm_evict_flags() argument
380 *placement = i915_sys_placement; in i915_ttm_evict_flags()
774 struct ttm_placement *placement) in __i915_ttm_get_pages() argument
787 memcpy(&initial_place, placement->placement, sizeof(struct ttm_place)); in __i915_ttm_get_pages()
789 initial_placement.placement = &initial_place; in __i915_ttm_get_pages()
805 ret = ttm_bo_validate(bo, placement, &ctx); in __i915_ttm_get_pages()
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_bo.c49 .placement = &sys_placement_flags,
69 .placement = tt_placement_flags,
109 return bo->placement.num_placement == 1; in xe_bo_has_single_placement()
235 bo->placement = (struct ttm_placement) { in __xe_bo_placement_for_flags()
237 .placement = bo->placements, in __xe_bo_placement_for_flags()
251 struct ttm_placement *placement) in xe_evict_flags() argument
256 placement->num_placement = 0; in xe_evict_flags()
260 *placement = sys_placement; in xe_evict_flags()
272 *placement = tt_placement; in xe_evict_flags()
276 *placement = sys_placement; in xe_evict_flags()
[all …]
Dxe_ttm_vram_mgr.c107 (vres->base.placement & TTM_PL_FLAG_CONTIGUOUS)))) { in xe_ttm_vram_mgr_new()
177 if (!(vres->base.placement & TTM_PL_FLAG_CONTIGUOUS) && in xe_ttm_vram_mgr_new()
179 vres->base.placement |= TTM_PL_FLAG_CONTIGUOUS; in xe_ttm_vram_mgr_new()
185 if (vres->base.placement & TTM_PL_FLAG_CONTIGUOUS) { in xe_ttm_vram_mgr_new()
/linux-6.12.1/drivers/gpu/drm/radeon/
Dradeon_object.c80 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain()
115 rbo->placement.num_placement = c; in radeon_ttm_placement_from_domain()
205 &bo->placement, page_align, !kernel, sg, resv, in radeon_bo_create()
305 for (i = 0; i < bo->placement.num_placement; i++) { in radeon_bo_pin_restricted()
316 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_pin_restricted()
512 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_bo_list_validate()
748 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_bo_fault_reserve_notify()
754 r = ttm_bo_validate(bo, &rbo->placement, &ctx); in radeon_bo_fault_reserve_notify()
757 r = ttm_bo_validate(bo, &rbo->placement, &ctx); in radeon_bo_fault_reserve_notify()
Dradeon_ttm.c83 struct ttm_placement *placement) in radeon_evict_flags() argument
95 placement->placement = &placements; in radeon_evict_flags()
96 placement->num_placement = 1; in radeon_evict_flags()
116 for (i = 0; i < rbo->placement.num_placement; i++) { in radeon_evict_flags()
130 *placement = rbo->placement; in radeon_evict_flags()
Dradeon_gem.c409 r = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); in radeon_gem_userptr_ioctl()
869 const char *placement; in radeon_debugfs_gem_info_show() local
874 placement = "VRAM"; in radeon_debugfs_gem_info_show()
877 placement = " GTT"; in radeon_debugfs_gem_info_show()
881 placement = " CPU"; in radeon_debugfs_gem_info_show()
886 placement, (unsigned long)rbo->pid); in radeon_debugfs_gem_info_show()
/linux-6.12.1/drivers/mtd/nand/
Decc.c369 enum nand_ecc_placement placement; in of_get_nand_ecc_placement() local
375 for (placement = NAND_ECC_PLACEMENT_OOB; in of_get_nand_ecc_placement()
376 placement < ARRAY_SIZE(nand_ecc_placement); placement++) { in of_get_nand_ecc_placement()
377 if (!strcasecmp(pm, nand_ecc_placement[placement])) in of_get_nand_ecc_placement()
378 return placement; in of_get_nand_ecc_placement()
435 nand->ecc.user_conf.placement = of_get_nand_ecc_placement(dn); in of_get_nand_ecc_user_config()
/linux-6.12.1/drivers/gpu/drm/
Ddrm_gem_vram_helper.c149 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement()
161 gbo->placement.num_placement = c; in drm_gem_vram_placement()
229 &gbo->placement, pg_align, false, NULL, NULL, in drm_gem_vram_create()
293 ret = ttm_bo_validate(&gbo->bo, &gbo->placement, &ctx); in drm_gem_vram_pin_locked()
525 *pl = gbo->placement; in drm_gem_vram_bo_driver_evict_flags()
858 struct ttm_placement *placement) in bo_driver_evict_flags() argument
868 drm_gem_vram_bo_driver_evict_flags(gbo, placement); in bo_driver_evict_flags()
/linux-6.12.1/include/drm/ttm/
Dttm_bo.h393 struct ttm_placement *placement,
401 enum ttm_bo_type type, struct ttm_placement *placement,
406 enum ttm_bo_type type, struct ttm_placement *placement,
437 struct ttm_placement *placement,
Dttm_placement.h100 const struct ttm_place *placement; member
/linux-6.12.1/drivers/gpu/drm/loongson/
Dlsdc_ttm.c56 lbo->placement.placement = lbo->placements; in lsdc_bo_set_placement()
78 lbo->placement.num_placement = c; in lsdc_bo_set_placement()
155 *tplacement = lbo->placement; in lsdc_bo_evict_flags()
302 ret = ttm_bo_validate(tbo, &lbo->placement, &ctx); in lsdc_bo_pin()
475 ret = ttm_bo_init_validate(bdev, tbo, bo_type, &lbo->placement, 0, in lsdc_bo_create()
/linux-6.12.1/Documentation/driver-api/
Dmtdnand.rst502 - 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 …]
/linux-6.12.1/Documentation/admin-guide/cgroup-v1/
Dcpusets.rst47 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
621 does not support one task updating the memory placement of another
[all …]

123456