/linux/drivers/gpu/drm/ |
H A D | drm_gpuvm.c | 758 __restore_vm_bo_list(struct drm_gpuvm *gpuvm, spinlock_t *lock, in __restore_vm_bo_list() argument 800 __drm_gpuvm_bo_list_add(struct drm_gpuvm *gpuvm, spinlock_t *lock, in __drm_gpuvm_bo_list_add() argument 825 __drm_gpuvm_bo_list_del(struct drm_gpuvm *gpuvm, spinlock_t *lock, in __drm_gpuvm_bo_list_del() argument 880 static int __drm_gpuva_insert(struct drm_gpuvm *gpuvm, 893 drm_gpuvm_warn_check_overflow(struct drm_gpuvm *gpuvm, u64 addr, u64 range) in drm_gpuvm_warn_check_overflow() argument 895 return drm_WARN(gpuvm->drm, drm_gpuvm_check_overflow(addr, range), in drm_gpuvm_warn_check_overflow() 900 drm_gpuvm_in_mm_range(struct drm_gpuvm *gpuvm, u64 addr, u64 range) in drm_gpuvm_in_mm_range() argument 903 u64 mm_start = gpuvm->mm_start; in drm_gpuvm_in_mm_range() 904 u64 mm_end = mm_start + gpuvm->mm_range; in drm_gpuvm_in_mm_range() 910 drm_gpuvm_in_kernel_node(struct drm_gpuvm *gpuvm, u64 addr, u64 range) in drm_gpuvm_in_kernel_node() argument [all …]
|
/linux/include/drm/ |
H A D | drm_gpuvm.h | 150 int drm_gpuva_insert(struct drm_gpuvm *gpuvm, struct drm_gpuva *va); 156 struct drm_gpuva *drm_gpuva_find(struct drm_gpuvm *gpuvm, 158 struct drm_gpuva *drm_gpuva_find_first(struct drm_gpuvm *gpuvm, 160 struct drm_gpuva *drm_gpuva_find_prev(struct drm_gpuvm *gpuvm, u64 start); 161 struct drm_gpuva *drm_gpuva_find_next(struct drm_gpuvm *gpuvm, u64 end); 335 void drm_gpuvm_init(struct drm_gpuvm *gpuvm, const char *name, 353 drm_gpuvm_get(struct drm_gpuvm *gpuvm) in drm_gpuvm_get() argument 355 kref_get(&gpuvm->kref); in drm_gpuvm_get() 357 return gpuvm; in drm_gpuvm_get() 360 void drm_gpuvm_put(struct drm_gpuvm *gpuvm); [all …]
|
H A D | drm_debugfs.h | 155 struct drm_gpuvm *gpuvm); 180 struct drm_gpuvm *gpuvm) in drm_debugfs_gpuva_info() argument
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_vm.h | 33 drm_gpuvm_get(&vm->gpuvm); in xe_vm_get() 39 drm_gpuvm_put(&vm->gpuvm); in xe_vm_put() 83 static inline struct xe_vm *gpuvm_to_vm(struct drm_gpuvm *gpuvm) in gpuvm_to_vm() argument 85 return container_of(gpuvm, struct xe_vm, gpuvm); in gpuvm_to_vm() 135 return container_of(vma->gpuva.vm, struct xe_vm, gpuvm); in xe_vma_vm() 258 return drm_gpuvm_resv(&vm->gpuvm); in xe_vm_resv()
|
H A D | xe_exec.c | 99 struct xe_vm *vm = container_of(vm_exec->vm, struct xe_vm, gpuvm); in xe_exec_fn() 240 vm_exec.vm = &vm->gpuvm; in xe_exec_ioctl() 306 drm_gpuvm_resv_add_fence(&vm->gpuvm, exec, &job->drm.s_fence->finished, in xe_exec_ioctl()
|
H A D | xe_vm.c | 44 return vm->gpuvm.r_obj; in xe_vm_obj() 214 drm_gpuvm_resv_add_fence(&vm->gpuvm, exec, q->lr.pfence, in resume_and_reinstall_preempt_fences() 222 .vm = &vm->gpuvm, in xe_vm_add_compute_exec_queue() 251 drm_gpuvm_resv_add_fence(&vm->gpuvm, exec, pfence, in xe_vm_add_compute_exec_queue() 423 ret = drm_gpuvm_validate(&vm->gpuvm, exec); in xe_vm_validate_rebind() 430 } while (!list_empty(&vm->gpuvm.evict.list)); in xe_vm_validate_rebind() 446 err = drm_gpuvm_prepare_vm(&vm->gpuvm, exec, 0); in xe_preempt_work_begin() 461 err = drm_gpuvm_prepare_objects(&vm->gpuvm, exec, 0); in xe_preempt_work_begin() 1003 vma->gpuva.vm = &vm->gpuvm; in xe_vma_create() 1203 gpuva = drm_gpuva_find_first(&vm->gpuvm, start, range); in xe_vm_find_overlapping_vma() [all …]
|
H A D | xe_vm_types.h | 144 struct drm_gpuvm gpuvm; member
|
/linux/drivers/gpu/drm/imagination/ |
H A D | pvr_vm.c | 69 struct pvr_vm_context *to_pvr_vm_context(struct drm_gpuvm *gpuvm) in to_pvr_vm_context() argument 71 return container_of(gpuvm, struct pvr_vm_context, gpuvm_mgr); in to_pvr_vm_context() 501 static void pvr_gpuvm_free(struct drm_gpuvm *gpuvm) in pvr_gpuvm_free() argument 503 kfree(to_pvr_vm_context(gpuvm)); in pvr_gpuvm_free()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/ |
H A D | display_mode_lib.c | 188 dml_print("DML PARAMS: gpuvm = %d\n", pipe_src->gpuvm); in dml_log_pipe_params()
|
H A D | display_mode_structs.h | 392 bool gpuvm; // gpuvm enabled member
|
H A D | display_mode_vba.c | 882 …mode_lib->vba.GPUVMEnable = mode_lib->vba.GPUVMEnable || !!pipes[k].pipe.src.gpuvm || !!pipes[k].p… in fetch_pipe_params()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | display_rq_dlg_calc_32.c | 401 if (src->dynamic_metadata_enable && src->gpuvm) in dml32_rq_dlg_get_dlg_reg()
|
/linux/drivers/gpu/drm/nouveau/ |
H A D | nouveau_uvmm.c | 1794 nouveau_uvmm_free(struct drm_gpuvm *gpuvm) in nouveau_uvmm_free() argument 1796 struct nouveau_uvmm *uvmm = uvmm_from_gpuvm(gpuvm); in nouveau_uvmm_free()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn31/ |
H A D | dcn31_resource.c | 1629 pipes[i].pipe.src.gpuvm = 1; in dcn31x_populate_dml_pipes_from_context() 1674 pipes[pipe_cnt].pipe.src.gpuvm = true; in dcn31_populate_dml_pipes_from_context()
|
/linux/drivers/gpu/drm/panthor/ |
H A D | panthor_mmu.c | 1838 static void panthor_vm_free(struct drm_gpuvm *gpuvm) in panthor_vm_free() argument 1840 struct panthor_vm *vm = container_of(gpuvm, struct panthor_vm, base); in panthor_vm_free()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_rq_dlg_calc_30.c | 1424 if (src->dynamic_metadata_enable && src->gpuvm) { in dml_rq_dlg_get_dlg_params()
|
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn32/ |
H A D | dcn32_resource.c | 1882 pipes[pipe_cnt].pipe.src.gpuvm = true; in dcn32_populate_dml_pipes_from_context()
|
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | dcn20_fpu.c | 2171 pipes[i].pipe.src.gpuvm = 1; in dcn21_populate_dml_pipes_from_context()
|