/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_create.c | 18 static u32 object_max_page_size(struct intel_memory_region **placements, in object_max_page_size() argument 25 struct intel_memory_region *mr = placements[i]; in object_max_page_size() 36 struct intel_memory_region **placements, in object_set_placements() argument 49 struct intel_memory_region *mr = placements[0]; in object_set_placements() 52 obj->mm.placements = &i915->mm.regions[mr->id]; in object_set_placements() 62 arr[i] = placements[i]; in object_set_placements() 64 obj->mm.placements = arr; in object_set_placements() 91 struct intel_memory_region **placements, in __i915_gem_object_create_user_ext() argument 95 struct intel_memory_region *mr = placements[0]; in __i915_gem_object_create_user_ext() 102 size = round_up(size, object_max_page_size(placements, n_placements)); in __i915_gem_object_create_user_ext() [all …]
|
D | i915_gem_object.c | 314 kfree(obj->mm.placements); in __i915_gem_free_object() 620 if (mr == obj->mm.placements[i]) in i915_gem_object_can_migrate() 740 if (obj->mm.placements[i]->type == type) in i915_gem_object_placement_possible() 769 if (obj->mm.placements[i]->type == INTEL_MEMORY_SYSTEM) in i915_gem_object_needs_ccs_pages() 772 obj->mm.placements[i]->type == INTEL_MEMORY_LOCAL) in i915_gem_object_needs_ccs_pages()
|
D | i915_gem_object_types.h | 574 struct intel_memory_region **placements; member
|
D | i915_gem_ttm.c | 166 i915_ttm_place_from_region(num_allowed ? obj->mm.placements[0] : in i915_ttm_placement_from_obj() 173 i915_ttm_place_from_region(obj->mm.placements[i], busy + i, in i915_ttm_placement_from_obj() 1015 struct intel_memory_region *mr = obj->mm.placements[i]; in vm_fault_ttm()
|
D | i915_gem_object.h | 72 struct intel_memory_region **placements,
|
D | i915_gem_ttm_move.c | 116 struct intel_memory_region *mr = obj->mm.placements[i]; in i915_ttm_adjust_gem_after_move()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_object.c | 80 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain() 81 rbo->placement.busy_placement = rbo->placements; in radeon_ttm_placement_from_domain() 88 rbo->placements[c].fpfn = in radeon_ttm_placement_from_domain() 90 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain() 91 rbo->placements[c++].flags = 0; in radeon_ttm_placement_from_domain() 94 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain() 95 rbo->placements[c].mem_type = TTM_PL_VRAM; 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() 101 rbo->placements[c].mem_type = TTM_PL_TT; in radeon_ttm_placement_from_domain() [all …]
|
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()
|
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()
|
D | radeon.h | 489 struct ttm_place placements[4]; member
|
/linux-6.1.9/drivers/gpu/drm/qxl/ |
D | qxl_object.c | 68 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain() 69 qbo->placement.busy_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() 81 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain() 82 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain() [all …]
|
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()
|
D | qxl_drv.h | 81 struct ttm_place placements[3]; member
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_gem_vram_helper.c | 148 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement() 149 gbo->placement.busy_placement = gbo->placements; in drm_gem_vram_placement() 152 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement() 153 gbo->placements[c++].flags = invariant_flags; in drm_gem_vram_placement() 157 gbo->placements[c].mem_type = TTM_PL_SYSTEM; in drm_gem_vram_placement() 158 gbo->placements[c++].flags = invariant_flags; in drm_gem_vram_placement() 165 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement() 166 gbo->placements[i].lpfn = 0; in drm_gem_vram_placement()
|
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
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() 940 if (fpfn > bo->placements[i].fpfn) in amdgpu_bo_pin_restricted() 941 bo->placements[i].fpfn = fpfn; in amdgpu_bo_pin_restricted() 942 if (!bo->placements[i].lpfn || in amdgpu_bo_pin_restricted() 943 (lpfn && lpfn < bo->placements[i].lpfn)) in amdgpu_bo_pin_restricted() 944 bo->placements[i].lpfn = lpfn; in amdgpu_bo_pin_restricted() 1370 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_bo_fault_reserve_notify()
|
D | amdgpu_ttm.c | 96 static const struct ttm_place placements = { in amdgpu_evict_flags() local 112 placement->placement = &placements; in amdgpu_evict_flags() 113 placement->busy_placement = &placements; in amdgpu_evict_flags() 150 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags() 151 abo->placements[0].lpfn = 0; in amdgpu_evict_flags() 152 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags() 922 struct ttm_place placements; in amdgpu_ttm_alloc_gart() local 938 placement.placement = &placements; in amdgpu_ttm_alloc_gart() 940 placement.busy_placement = &placements; in amdgpu_ttm_alloc_gart() 941 placements.fpfn = 0; in amdgpu_ttm_alloc_gart() [all …]
|
D | amdgpu_vce.c | 630 bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn); in amdgpu_vce_validate_bo() 631 bo->placements[i].lpfn = bo->placements[i].lpfn ? in amdgpu_vce_validate_bo() 632 min(bo->placements[i].lpfn, lpfn) : lpfn; in amdgpu_vce_validate_bo()
|
D | amdgpu_object.h | 97 struct ttm_place placements[AMDGPU_BO_MAX_PLACEMENTS]; member
|
D | amdgpu_uvd.c | 551 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment() 552 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
|
/linux-6.1.9/include/drm/ |
D | drm_gem_vram_helper.h | 66 struct ttm_place placements[2]; member
|
/linux-6.1.9/drivers/gpu/drm/nouveau/ |
D | nouveau_bo.c | 394 nvbo->placements[i].fpfn = fpfn; in set_placement_range() 395 nvbo->placements[i].lpfn = lpfn; in set_placement_range() 410 pl->placement = nvbo->placements; in nouveau_bo_placement_set() 411 set_placement_list(nvbo->placements, &pl->num_placement, domain); in nouveau_bo_placement_set() 1243 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify() 1244 nvbo->placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
|
D | nouveau_bo.h | 16 struct ttm_place placements[3]; member
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/selftests/ |
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()
|