Documented in 1 files:

Defined in 1 files as a function:

Referenced in 20 files:

Smatch caller information:

drivers/gpu/drm/drm_writeback.c drm_writeback_signal_completion() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 1-u64max
DATA_SOURCE 1 error $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/panthor/panthor_sched.c cs_slot_process_fault_event_locked() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 1 error (-22)
NOCHECK_CALL
LOCK2 &queue->fence_ctx.lock
LOCK2 &sched->lock
LOCK2 irq
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct panthor_queue)->fence_ctx.lock
TYPE_LOCK (struct panthor_scheduler)->lock

drivers/gpu/drm/panthor/panthor_sched.c group_term_post_processing() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 1 error (-125),(-110),(-22)
FUZZY_MAX 1 error (-22)
BIT_INFO 1 error 0xffffff82,0xffffffffffffffff
HARD_MAX 1 error (-22)
NOCHECK_CALL
LOCK2 &queue->fence_ctx.lock
LOCK2 irq
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct panthor_queue)->fence_ctx.lock

drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c amdgpu_tlb_fence_work() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error s32min-(-1),1-s32max
DATA_SOURCE 1 error r amdgpu_gmc_flush_gpu_tlb_pasid
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_pop_job() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125)
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/i915/i915_sw_fence_work.c fence_notify() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error s32min-(-1),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 flags

drivers/gpu/drm/scheduler/sched_fence.c drm_sched_fence_finished() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error s32min-(-1),1-s32max
DATA_SOURCE 1 error $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 1 error
UNITS 1 error unit_byte

drivers/dma-buf/st-dma-fence.c test_error() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-5)
BUF_SIZE 0 fence 128
DATA_SOURCE 0 fence r mock_fence
NOCHECK_CALL

drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_fence_driver_force_completion() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-62)
CAPPED_DATA 0 fence 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &drv->lock
LOCK2 flags
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &vinst->engine_reset_mutex
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct amdgpu_fence_driver)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_fence_driver_force_completion() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125)
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &drv->lock
LOCK2 flags
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &vinst->engine_reset_mutex
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct amdgpu_fence_driver)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_fence_driver_set_error() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
DATA_SOURCE 1 error $1 [m]
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
USER_DATA 1 error s32min-s32max
LOCK2 &attr->mutex
LOCK2 &drv->lock
LOCK2 flags
TYPE_LOCK (struct amdgpu_fence_driver)->lock
TYPE_LOCK (struct simple_attr)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_ring_set_fence_errors_and_reemit() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 1 error (-62)
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ring->fence_drv.lock
LOCK2 flags
LOCK2 rcu_read
HALF_LOCKED2 &adev->jpeg.jpeg_pg_lock
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &sdma_instance->engine_reset_mutex
HALF_LOCKED2 &vinst->engine_reset_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct amdgpu_fence_driver)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_ring_set_fence_errors_and_reemit() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 1 error (-125)
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &ring->fence_drv.lock
LOCK2 flags
LOCK2 rcu_read
HALF_LOCKED2 &adev->jpeg.jpeg_pg_lock
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &sdma_instance->engine_reset_mutex
HALF_LOCKED2 &vinst->engine_reset_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct amdgpu_fence_driver)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c amdgpu_ring_soft_recovery() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-61)
DATA_SOURCE 0 fence $2
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 flags
LOCK2 global &drm_unplug_srcu
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/v3d/v3d_submit.c v3d_submit_jobs() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-4095)-(-1)
BIT_INFO 1 error 0x0,0x0
NOCHECK_CALL
LOCK2 &v3d->sched_lock
TYPE_LOCK (struct v3d_dev)->sched_lock

drivers/gpu/drm/xe/xe_sched_job.c xe_fence_set_error() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125),(-62),(-5)
DATA_SOURCE 0 fence $0
DATA_SOURCE 1 error $1
BIT_INFO 1 error 0xffffff82,0xffffffffffffffff
HARD_MAX 1 error (-5)
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 irq_flags
HALF_LOCKED2 &pool->lock

drivers/dma-buf/sw_sync.c sw_sync_debugfs_release() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-2)
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &obj->lock
LOCK2 irq
TYPE_LOCK (struct sync_timeline)->lock

drivers/gpu/drm/panfrost/panfrost_job.c panfrost_jm_handle_irq() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 1 error (-125)
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &pfdev->js->job_lock
TYPE_LOCK (struct panfrost_job_slot)->job_lock

drivers/gpu/drm/panfrost/panfrost_job.c panfrost_job_handle_err() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 1 error (-125)
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &pfdev->js->job_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct panfrost_job_slot)->job_lock

drivers/gpu/drm/panfrost/panfrost_job.c panfrost_job_handle_err() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 1 error (-22)
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &pfdev->js->job_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct panfrost_job_slot)->job_lock

drivers/gpu/host1x/fence.c do_fence_timeout() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-110)
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/scheduler/sched_main.c drm_sched_resubmit_jobs() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125)
NOCHECK_CALL
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &v3d->reset_lock

drivers/gpu/drm/scheduler/sched_main.c drm_sched_resubmit_jobs() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-4095)-(-1)
NOCHECK_CALL
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &v3d->reset_lock

drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c amdgpu_userq_fence_driver_destroy() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125)
BUF_SIZE 0 fence 128
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &fence_drv->fence_list_lock
LOCK2 flags
HALF_LOCKED2 &xa->xa_lock
TYPE_LOCK (struct amdgpu_userq_fence_driver)->fence_list_lock

drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c amdgpu_userq_fence_driver_set_error() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125)
BUF_SIZE 0 fence 128
DATA_SOURCE 1 error $1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &fence_drv->fence_list_lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock
TYPE_LOCK (struct amdgpu_userq_fence_driver)->fence_list_lock

drivers/gpu/drm/xe/xe_preempt_fence.c preempt_fence_work_func() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error s32min-(-1),1-s32max
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_preempt_fence.c preempt_fence_work_func() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error s32min-(-12),(-10)-(-1)
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_preempt_fence.c preempt_fence_work_func() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-2)
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/scheduler/tests/mock_scheduler.c mock_sched_cancel_job() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125)
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &sched->lock
LOCK2 flags
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct drm_mock_scheduler)->lock

drivers/gpu/drm/scheduler/tests/mock_scheduler.c mock_sched_timedout_job() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-110)
PREEMPT_ADD <- disables preempt
NOCHECK_CALL
LOCK2 &sched->lock
LOCK2 flags
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct drm_mock_scheduler)->lock

drivers/gpu/drm/nouveau/nouveau_fence.c nouveau_fence_context_kill() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-19)
DATA_SOURCE 1 error $1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &fctx->lock
LOCK2 flags
HALF_LOCKED2 &event->list_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 flags
TYPE_LOCK (struct nouveau_fence_chan)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c amdgpu_job_prepare_job() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error s32min-(-1),1-s32max
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c amdgpu_job_run() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-125)
BUF_SIZE 0 fence 128
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &guc->submission_state.lock
HALF_LOCKED2 &sched->job_list_lock

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c amdgpu_job_stop_all_jobs_on_sched() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-133)
PREEMPT_ADD <- disables preempt
RX_PATH
NOCHECK_CALL
LOCK2 &rq->lock
HALF_LOCKED2 &hive->hive_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tmp_adev->reset_domain->sem
HALF_LOCKED2 global &drm_unplug_srcu
TYPE_LOCK (struct drm_sched_rq)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c amdgpu_job_stop_all_jobs_on_sched() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-133)
RX_PATH
NOCHECK_CALL
HALF_LOCKED2 &hive->hive_lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tmp_adev->reset_domain->sem
HALF_LOCKED2 global &drm_unplug_srcu

drivers/gpu/drm/amd/amdgpu/amdgpu_job.c amdgpu_job_timedout() -> dma_fence_set_error()

Type Parameter Key Value
PARAM_VALUE 0 fence 4096-ptr_max
PARAM_VALUE 1 error (-62)
NOCHECK_CALL
LOCK2 global &drm_unplug_srcu
HALF_LOCKED2 &pool->lock