/linux-6.3-rc2/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_create.c | 26 struct intel_memory_region *mr = placements[i]; in object_max_page_size() 37 struct intel_memory_region **placements, in object_set_placements() argument 63 arr[i] = placements[i]; in object_set_placements() 65 obj->mm.placements = arr; in object_set_placements() 141 kfree(obj->mm.placements); in __i915_gem_object_create_user_ext() 292 BUILD_BUG_ON(ARRAY_SIZE(ext_data->placements) != ARRAY_SIZE(placements)); in set_placements() 327 placements[i] = mr; in set_placements() 340 ext_data->placements[i] = placements[i]; in set_placements() 352 ext_data->placements, in set_placements() 428 ext_data.placements[0] = in i915_gem_create_ext_ioctl() [all …]
|
A D | i915_gem_object.c | 328 kfree(obj->mm.placements); in __i915_gem_free_object() 647 if (mr == obj->mm.placements[i]) in i915_gem_object_can_migrate() 767 if (obj->mm.placements[i]->type == type) in i915_gem_object_placement_possible() 796 if (obj->mm.placements[i]->type == INTEL_MEMORY_SYSTEM) in i915_gem_object_needs_ccs_pages() 799 obj->mm.placements[i]->type == INTEL_MEMORY_LOCAL) in i915_gem_object_needs_ccs_pages()
|
A D | i915_gem_object_types.h | 574 struct intel_memory_region **placements; member
|
A D | i915_gem_ttm.c | 169 i915_ttm_place_from_region(num_allowed ? obj->mm.placements[0] : in i915_ttm_placement_from_obj() 176 i915_ttm_place_from_region(obj->mm.placements[i], busy + i, in i915_ttm_placement_from_obj() 1083 struct intel_memory_region *mr = obj->mm.placements[i]; in vm_fault_ttm()
|
A D | i915_gem_object.h | 56 struct intel_memory_region **placements,
|
A D | i915_gem_ttm_move.c | 136 struct intel_memory_region *mr = obj->mm.placements[i]; in i915_ttm_adjust_gem_after_move()
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | radeon_object.c | 88 rbo->placements[c].fpfn = in radeon_ttm_placement_from_domain() 94 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 96 rbo->placements[c++].flags = 0; in radeon_ttm_placement_from_domain() 100 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 106 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 111 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 122 !rbo->placements[i].fpfn) in radeon_ttm_placement_from_domain() 123 rbo->placements[i].lpfn = in radeon_ttm_placement_from_domain() 126 rbo->placements[i].lpfn = 0; in radeon_ttm_placement_from_domain() 314 bo->placements[i].lpfn = in radeon_bo_pin_restricted() [all …]
|
A D | radeon_ttm.c | 85 static const struct ttm_place placements = { in radeon_evict_flags() local 95 placement->placement = &placements; in radeon_evict_flags() 96 placement->busy_placement = &placements; in radeon_evict_flags() 120 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags() 121 if (rbo->placements[i].fpfn < fpfn) in radeon_evict_flags() 122 rbo->placements[i].fpfn = fpfn; in radeon_evict_flags() 125 &rbo->placements[i]; in radeon_evict_flags()
|
A D | radeon_uvd.c | 310 rbo->placements[i].fpfn = 0 >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment() 311 rbo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment() 323 rbo->placements[1] = rbo->placements[0]; in radeon_uvd_force_into_uvd_segment() 324 rbo->placements[1].fpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment() 325 rbo->placements[1].lpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
|
A D | radeon.h | 489 struct ttm_place placements[4]; member
|
/linux-6.3-rc2/drivers/gpu/drm/qxl/ |
A D | qxl_object.c | 68 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain() 71 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain() 72 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain() 75 qbo->placements[c].mem_type = TTM_PL_PRIV; in qxl_ttm_placement_from_domain() 76 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain() 77 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain() 78 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain() 82 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain() 86 qbo->placements[c++].flags = 0; in qxl_ttm_placement_from_domain() 91 qbo->placements[i].fpfn = 0; in qxl_ttm_placement_from_domain() [all …]
|
A D | qxl_ttm.c | 54 static const struct ttm_place placements = { in qxl_evict_flags() local 62 placement->placement = &placements; in qxl_evict_flags() 63 placement->busy_placement = &placements; in qxl_evict_flags()
|
A D | qxl_drv.h | 79 struct ttm_place placements[3]; member
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_gem_vram_helper.c | 149 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement() 150 gbo->placement.busy_placement = gbo->placements; in drm_gem_vram_placement() 153 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement() 154 gbo->placements[c++].flags = invariant_flags; in drm_gem_vram_placement() 158 gbo->placements[c].mem_type = TTM_PL_SYSTEM; in drm_gem_vram_placement() 159 gbo->placements[c++].flags = invariant_flags; in drm_gem_vram_placement() 166 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement() 167 gbo->placements[i].lpfn = 0; in drm_gem_vram_placement()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_object.c | 128 struct ttm_place *places = abo->placements; in amdgpu_bo_placement_from_domain() 387 (*bo_ptr)->placements[i].fpfn = offset >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at() 388 (*bo_ptr)->placements[i].lpfn = (offset + size) >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at() 943 if (fpfn > bo->placements[i].fpfn) in amdgpu_bo_pin_restricted() 944 bo->placements[i].fpfn = fpfn; in amdgpu_bo_pin_restricted() 945 if (!bo->placements[i].lpfn || in amdgpu_bo_pin_restricted() 946 (lpfn && lpfn < bo->placements[i].lpfn)) in amdgpu_bo_pin_restricted() 947 bo->placements[i].lpfn = lpfn; in amdgpu_bo_pin_restricted() 1373 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_bo_fault_reserve_notify()
|
A D | amdgpu_ttm.c | 97 static const struct ttm_place placements = { in amdgpu_evict_flags() local 113 placement->placement = &placements; in amdgpu_evict_flags() 114 placement->busy_placement = &placements; in amdgpu_evict_flags() 152 abo->placements[0].lpfn = 0; in amdgpu_evict_flags() 153 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags() 920 struct ttm_place placements; in amdgpu_ttm_alloc_gart() local 936 placement.placement = &placements; in amdgpu_ttm_alloc_gart() 938 placement.busy_placement = &placements; in amdgpu_ttm_alloc_gart() 939 placements.fpfn = 0; in amdgpu_ttm_alloc_gart() 941 placements.mem_type = TTM_PL_TT; in amdgpu_ttm_alloc_gart() [all …]
|
A D | amdgpu_vce.c | 627 bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn); in amdgpu_vce_validate_bo() 628 bo->placements[i].lpfn = bo->placements[i].lpfn ? in amdgpu_vce_validate_bo() 629 min(bo->placements[i].lpfn, lpfn) : lpfn; in amdgpu_vce_validate_bo()
|
A D | amdgpu_object.h | 97 struct ttm_place placements[AMDGPU_BO_MAX_PLACEMENTS]; member
|
A D | amdgpu_uvd.c | 546 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment() 547 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
|
/linux-6.3-rc2/include/drm/ |
A D | drm_gem_vram_helper.h | 66 struct ttm_place placements[2]; member
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/ |
A D | nouveau_bo.c | 395 nvbo->placements[i].fpfn = fpfn; in set_placement_range() 396 nvbo->placements[i].lpfn = lpfn; in set_placement_range() 411 pl->placement = nvbo->placements; in nouveau_bo_placement_set() 412 set_placement_list(nvbo->placements, &pl->num_placement, domain); in nouveau_bo_placement_set() 1251 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify() 1252 nvbo->placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
|
A D | nouveau_bo.h | 17 struct ttm_place placements[3]; member
|
/linux-6.3-rc2/drivers/gpu/drm/i915/gem/selftests/ |
A D | i915_gem_mman.c | 1169 static int __igt_mmap_migrate(struct intel_memory_region **placements, in __igt_mmap_migrate() argument 1174 struct drm_i915_private *i915 = placements[0]->i915; in __igt_mmap_migrate() 1183 placements, in __igt_mmap_migrate() 1209 err = igt_fill_mappable(placements[0], &objects); in __igt_mmap_migrate()
|