Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/gpu/drm/nouveau/nouveau_exec.c drm_gpuvm_exec_resv_add_fence() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 1 exec 8767389989685878784
PARAM_VALUE 1 exec->flags 0
PARAM_VALUE 1 exec->num_objects 0
PARAM_VALUE 1 exec->objects 0
PARAM_VALUE 2 fence 4096-ptr_max
PARAM_VALUE 3 private_usage 1,3
PARAM_VALUE 4 extobj_usage 1,3
DATA_SOURCE 2 fence $1
DATA_SOURCE 3 private_usage $2
DATA_SOURCE 4 extobj_usage $3
NOCHECK_CALL
LOCK2 &sched->mutex
HALF_LOCKED2 &file_priv->driver_priv->mutex
TYPE_LOCK (struct nouveau_sched)->mutex

drivers/gpu/drm/msm/msm_gem_submit.c submit_attach_object_fences() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 0 gpuvm 4096-ptr_max
PARAM_VALUE 0 gpuvm->r_obj->_resv.lock.ww_class->is_wait_die 0-1
PARAM_VALUE 0 gpuvm->r_obj->resv->lock.ww_class->is_wait_die 0-1
PARAM_VALUE 1 exec 4096-ptr_max
PARAM_VALUE 1 exec->flags 1,3
PARAM_VALUE 1 exec->ticket.done_acquire 1
PARAM_VALUE 2 fence 4096-ptr_max
PARAM_VALUE 3 private_usage 3
PARAM_VALUE 4 extobj_usage 3
BUF_SIZE 0 gpuvm (-1),416
BUF_SIZE 0 gpuvm (-1),416
CAPPED_DATA 0 gpuvm 1
NOCHECK_CALL
LOCK2 &queue->lock
TYPE_LOCK (struct msm_gpu_submitqueue)->lock

drivers/gpu/drm/nouveau/nouveau_uvmm.c drm_gpuvm_exec_resv_add_fence() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 1 exec 8767389989685878784
PARAM_VALUE 1 exec->flags 0
PARAM_VALUE 1 exec->num_objects 0
PARAM_VALUE 1 exec->objects 0
PARAM_VALUE 2 fence 4096-ptr_max
PARAM_VALUE 3 private_usage 1,3
PARAM_VALUE 4 extobj_usage 1,3
DATA_SOURCE 2 fence $1
DATA_SOURCE 3 private_usage $2
DATA_SOURCE 4 extobj_usage $3
NOCHECK_CALL
LOCK2 &sched->mutex
HALF_LOCKED2 &file_priv->driver_priv->mutex
TYPE_LOCK (struct nouveau_sched)->mutex

drivers/gpu/drm/xe/xe_vm.c resume_and_reinstall_preempt_fences() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 0 gpuvm 4096-ptr_max
PARAM_VALUE 0 gpuvm->evict.list.next 4096-ptr_max
PARAM_VALUE 0 gpuvm->ops 4096-ptr_max
PARAM_VALUE 1 exec 4561806713289248768
PARAM_VALUE 2 fence->ops->set_deadline 0,2004285741546172416,2071105144755478528,2853440610722889728,3558081686514302976,5221404334427111424
PARAM_VALUE 2 fence->ops->wait 0,3162960082638938112,3576649960670945280,4783308308267675648,5257098353859239936
PARAM_VALUE 3 private_usage 3
PARAM_VALUE 4 extobj_usage 3
DATA_SOURCE 1 exec $1
NOCHECK_CALL
LOCK2 &(&vm->svm.gpusvm)->notifier_lock
LOCK2 &vm->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct xe_vm)->lock

drivers/gpu/drm/xe/xe_vm.c xe_vm_add_compute_exec_queue() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 0 gpuvm 4096-ptr_max
PARAM_VALUE 1 exec 453114700980219904
PARAM_VALUE 1 exec->contended 0
PARAM_VALUE 1 exec->flags 0
PARAM_VALUE 1 exec->max_objects 0
PARAM_VALUE 1 exec->num_objects 0
PARAM_VALUE 1 exec->objects 0
PARAM_VALUE 1 exec->prelocked 0
PARAM_VALUE 1 exec->ticket.acquired 0
PARAM_VALUE 1 exec->ticket.contending_lock 0
PARAM_VALUE 1 exec->ticket.deadlock_inject_countdown 0
PARAM_VALUE 1 exec->ticket.deadlock_inject_interval 0
PARAM_VALUE 1 exec->ticket.dep_map.cpu 0
PARAM_VALUE 1 exec->ticket.dep_map.ip 0
PARAM_VALUE 1 exec->ticket.dep_map.key 0
PARAM_VALUE 1 exec->ticket.dep_map.lock_type 0
PARAM_VALUE 1 exec->ticket.dep_map.name 0
PARAM_VALUE 1 exec->ticket.dep_map.wait_type_inner 0
PARAM_VALUE 1 exec->ticket.dep_map.wait_type_outer 0
PARAM_VALUE 1 exec->ticket.done_acquire 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.cpu 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.ip 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.key 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.name 0
PARAM_VALUE 1 exec->ticket.is_wait_die 0
PARAM_VALUE 1 exec->ticket.stamp 0
PARAM_VALUE 1 exec->ticket.task 0
PARAM_VALUE 1 exec->ticket.wounded 0
PARAM_VALUE 1 exec->ticket.ww_class 0
PARAM_VALUE 2 fence 4096-ptr_max
PARAM_VALUE 3 private_usage 3
PARAM_VALUE 4 extobj_usage 3
BUF_SIZE 1 exec 192
BUF_SIZE 2 fence 128
DATA_SOURCE 2 fence r xe_preempt_fence_create
NOCHECK_CALL
USER_DATA 2 fence->seqno 0-u32max
LOCK2 &(&vm->svm.gpusvm)->notifier_lock
LOCK2 &vm->lock
TYPE_LOCK (struct xe_vm)->lock

drivers/gpu/drm/xe/xe_exec.c xe_exec_ioctl() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 1 exec 1916338652422352896
PARAM_VALUE 1 exec->contended 0
PARAM_VALUE 1 exec->flags 0
PARAM_VALUE 1 exec->max_objects 0
PARAM_VALUE 1 exec->num_objects 0
PARAM_VALUE 1 exec->objects 0
PARAM_VALUE 1 exec->prelocked 0
PARAM_VALUE 1 exec->ticket.acquired 0
PARAM_VALUE 1 exec->ticket.contending_lock 0
PARAM_VALUE 1 exec->ticket.deadlock_inject_countdown 0
PARAM_VALUE 1 exec->ticket.deadlock_inject_interval 0
PARAM_VALUE 1 exec->ticket.dep_map.cpu 0
PARAM_VALUE 1 exec->ticket.dep_map.ip 0
PARAM_VALUE 1 exec->ticket.dep_map.key 0
PARAM_VALUE 1 exec->ticket.dep_map.lock_type 0
PARAM_VALUE 1 exec->ticket.dep_map.name 0
PARAM_VALUE 1 exec->ticket.dep_map.wait_type_inner 0
PARAM_VALUE 1 exec->ticket.dep_map.wait_type_outer 0
PARAM_VALUE 1 exec->ticket.done_acquire 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.cpu 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.ip 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.key 0
PARAM_VALUE 1 exec->ticket.first_lock_dep_map.name 0
PARAM_VALUE 1 exec->ticket.is_wait_die 0
PARAM_VALUE 1 exec->ticket.stamp 0
PARAM_VALUE 1 exec->ticket.task 0
PARAM_VALUE 1 exec->ticket.wounded 0
PARAM_VALUE 1 exec->ticket.ww_class 0
PARAM_VALUE 2 fence 4096-ptr_max
PARAM_VALUE 2 fence->cb_list.next 4096-ptr_max
PARAM_VALUE 2 fence->cb_list.prev 4096-ptr_max
PARAM_VALUE 2 fence->error 0
PARAM_VALUE 2 fence->extern_lock 1-u64max
PARAM_VALUE 2 fence->flags 1,3,5,7
PARAM_VALUE 2 fence->ops 8417414206815801344
PARAM_VALUE 2 fence->refcount.refcount.refs.counter 1
PARAM_VALUE 2 fence->seqno 0-u32max
PARAM_VALUE 3 private_usage 3
PARAM_VALUE 4 extobj_usage 3
BUF_SIZE 1 exec 192
NOCHECK_CALL
LOCK2 &vm->lock
HALF_LOCKED2 &group->mode_sem
HALF_LOCKED2 &vm->svm.gpusvm.notifier_lock
TYPE_LOCK (struct xe_vm)->lock

drivers/gpu/drm/panthor/panthor_mmu.c panthor_vm_bind_job_update_resvs() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 1 exec 2237035702311317544,3400833796336033832
PARAM_VALUE 1 exec->contended 0,4096-ptr_max,(-1)
PARAM_VALUE 1 exec->flags 3
PARAM_VALUE 2 fence 4096-ptr_max
PARAM_VALUE 3 private_usage 3
PARAM_VALUE 4 extobj_usage 3
DATA_SOURCE 1 exec $0
NOCHECK_CALL
USER_DATA 1 exec->max_objects 1-131072[c]
LOCK2 global &drm_unplug_srcu

drivers/gpu/drm/panthor/panthor_mmu.c panthor_vm_update_resvs() -> drm_gpuvm_resv_add_fence()

Type Parameter Key Value
PARAM_VALUE 1 exec 2237035702311317544,3400833796336033832
PARAM_VALUE 1 exec->contended 0,4096-ptr_max,(-1)
PARAM_VALUE 1 exec->flags 3
PARAM_VALUE 2 fence 4096-ptr_max
PARAM_VALUE 3 private_usage 3
PARAM_VALUE 4 extobj_usage 3
DATA_SOURCE 1 exec $1
DATA_SOURCE 2 fence $2
DATA_SOURCE 3 private_usage $3
DATA_SOURCE 4 extobj_usage $4
NOCHECK_CALL
USER_DATA 1 exec->max_objects 1-131072[c]
LOCK2 global &drm_unplug_srcu