Defined in 2 files as a function:
- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c, line 53 (as a function)
- drivers/gpu/drm/msm/msm_gem_submit.c, line 127 (as a function)
Referenced in 2 files:
- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c, line 540
- drivers/gpu/drm/msm/msm_gem_submit.c, line 665
Smatch caller information:
drivers/gpu/drm/msm/msm_gem_submit.c msm_ioctl_gem_submit() -> submit_lookup_objects()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | submit | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->base.cb.func | 0 |
| PARAM_VALUE | 0 | submit->base.cb.node.next | 0 |
| PARAM_VALUE | 0 | submit->base.cb.node.prev | 0 |
| PARAM_VALUE | 0 | submit->base.credits | 1 |
| PARAM_VALUE | 0 | submit->base.dependencies.xa_flags | 33554436 |
| PARAM_VALUE | 0 | submit->base.dependencies.xa_head | 0 |
| PARAM_VALUE | 0 | submit->base.entity_stats | 0 |
| PARAM_VALUE | 0 | submit->base.finish_cb.func | 0 |
| PARAM_VALUE | 0 | submit->base.finish_cb.node.next | 0 |
| PARAM_VALUE | 0 | submit->base.finish_cb.node.prev | 0 |
| PARAM_VALUE | 0 | submit->base.karma.counter | 0 |
| PARAM_VALUE | 0 | submit->base.last_dependency | 0 |
| PARAM_VALUE | 0 | submit->base.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->base.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->base.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->base.list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->base.list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->base.queue_node.next | 0 |
| PARAM_VALUE | 0 | submit->base.s_fence | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->base.s_priority | 0 |
| PARAM_VALUE | 0 | submit->base.sched | 0 |
| PARAM_VALUE | 0 | submit->base.work.data.counter | 0 |
| PARAM_VALUE | 0 | submit->base.work.entry.next | 0 |
| PARAM_VALUE | 0 | submit->base.work.entry.prev | 0 |
| PARAM_VALUE | 0 | submit->base.work.func | 0 |
| PARAM_VALUE | 0 | submit->bos | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->dev | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->dev->dev_private | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->dev->unplugged | 0 |
| PARAM_VALUE | 0 | submit->fault_dumped | 0 |
| PARAM_VALUE | 0 | submit->gpu | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->hw_fence | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->node.next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->node.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->node.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->node.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->node.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->pid | 0,4096-ptr_max |
| PARAM_VALUE | 0 | submit->queue | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | submit->vm | 1-u64max |
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | file->pad | 0 |
| PARAM_VALUE | 2 | submit_bos | 4096-ptr_max |
| PARAM_VALUE | 2 | submit_bos->driver_priv | 4096-ptr_max |
| PARAM_VALUE | 2 | submit_bos->master_lookup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 2 | submit_bos->minor | 4096-ptr_max |
| PARAM_VALUE | 2 | submit_bos->minor->dev | 4096-ptr_max |
| BUF_SIZE | 0 | submit | 592-s32max |
| BUF_SIZE | 0 | submit | 592-s32max |
| BUF_SIZE | 0 | submit->vm | (-1),416 |
| BUF_SIZE | 1 | file | 128-16383 |
| BUF_SIZE | 1 | file | 128-16383 |
| BUF_SIZE | 2 | submit_bos | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | submit_bos | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | submit->queue->id | 1 |
| CAPPED_DATA | 1 | file->queueid | 1 |
| DATA_SOURCE | 0 | submit | r submit_create |
| DATA_SOURCE | 1 | file | $1 |
| DATA_SOURCE | 2 | submit_bos | $2 |
| USER_DATA | 1 | file->bos | 0-u64max[u] |
| USER_DATA | 1 | file->cmds | 0-u64max[u] |
| USER_DATA | 1 | file->fence | 0-u32max[u] |
| USER_DATA | 1 | file->fence_fd | s32min-s32max[u] |
| USER_DATA | 1 | file->flags | 0-u32max[u] |
| USER_DATA | 1 | file->in_syncobjs | 0-u64max[u] |
| USER_DATA | 1 | file->nr_bos | 0-u32max[u] |
| USER_DATA | 1 | file->nr_cmds | 0-u32max[u] |
| USER_DATA | 1 | file->nr_in_syncobjs | 0-u32max |
| USER_DATA | 1 | file->nr_out_syncobjs | 0-u32max |
| USER_DATA | 1 | file->out_syncobjs | 0-u64max[u] |
| USER_DATA | 1 | file->pad | 0[u] |
| USER_DATA | 1 | file->queueid | 0-u32max[c] |
| USER_DATA | 1 | file->syncobj_stride | 0-u32max[u] |
| NO_OVERFLOW_SIMPLE | 0 | submit->base.entity->num_sched_list | |
| USER_PTR | 1 | file | |
| LOCK2 | &queue->lock | ||
| TYPE_LOCK | (struct msm_gpu_submitqueue)->lock |
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c etnaviv_ioctl_gem_submit() -> submit_lookup_objects()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | submit | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->cmdbuf.size | 8,16-131080 |
| PARAM_VALUE | 0 | submit->cmdbuf.suballoc | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->cmdbuf.vaddr | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->ctx | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->ctx->mmu | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->exec_state | 0-2 |
| PARAM_VALUE | 0 | submit->flags | 0-14 |
| PARAM_VALUE | 0 | submit->gpu | 1-u64max |
| PARAM_VALUE | 0 | submit->mmu_context | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->nr_pmrs | 0-128 |
| PARAM_VALUE | 0 | submit->pid | 0,4096-ptr_max |
| PARAM_VALUE | 0 | submit->pmrs | 16,4096-ptr_max |
| PARAM_VALUE | 0 | submit->refcount.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | submit->sched_job.cb.func | 0 |
| PARAM_VALUE | 0 | submit->sched_job.cb.node.next | 0 |
| PARAM_VALUE | 0 | submit->sched_job.cb.node.prev | 0 |
| PARAM_VALUE | 0 | submit->sched_job.credits | 1 |
| PARAM_VALUE | 0 | submit->sched_job.dependencies.xa_flags | 33554436 |
| PARAM_VALUE | 0 | submit->sched_job.dependencies.xa_head | 0 |
| PARAM_VALUE | 0 | submit->sched_job.entity_stats | 0 |
| PARAM_VALUE | 0 | submit->sched_job.finish_cb.func | 0 |
| PARAM_VALUE | 0 | submit->sched_job.finish_cb.node.next | 0 |
| PARAM_VALUE | 0 | submit->sched_job.finish_cb.node.prev | 0 |
| PARAM_VALUE | 0 | submit->sched_job.karma.counter | 0 |
| PARAM_VALUE | 0 | submit->sched_job.last_dependency | 0 |
| PARAM_VALUE | 0 | submit->sched_job.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->sched_job.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->sched_job.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->sched_job.list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->sched_job.list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->sched_job.queue_node.next | 0 |
| PARAM_VALUE | 0 | submit->sched_job.s_fence | 4096-ptr_max |
| PARAM_VALUE | 0 | submit->sched_job.s_priority | 0 |
| PARAM_VALUE | 0 | submit->sched_job.sched | 0 |
| PARAM_VALUE | 0 | submit->sched_job.work.data.counter | 0 |
| PARAM_VALUE | 0 | submit->sched_job.work.entry.next | 0 |
| PARAM_VALUE | 0 | submit->sched_job.work.entry.prev | 0 |
| PARAM_VALUE | 0 | submit->sched_job.work.func | 0 |
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | file->driver_priv | 4096-ptr_max |
| PARAM_VALUE | 1 | file->master_lookup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | file->minor | 4096-ptr_max |
| PARAM_VALUE | 1 | file->minor->dev | 4096-ptr_max |
| PARAM_VALUE | 2 | submit_bos | 1-18446744073709551614 |
| PARAM_VALUE | 3 | nr_bos | 0-131072 |
| BUF_SIZE | 0 | submit | 416-4194720 |
| BUF_SIZE | 0 | submit | 416-4194720 |
| BUF_SIZE | 0 | submit->ctx | 16,48,104,120,152,248,256,352,424,464,576,768,968,1120,1424,2256,4712,13184 |
| BUF_SIZE | 1 | file | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | file | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | submit_bos | 0-2097152 |
| BUF_SIZE | 2 | submit_bos | 0-2097152 |
| DATA_SOURCE | 0 | submit | r submit_create |
| DATA_SOURCE | 1 | file | $2 |
| DATA_SOURCE | 2 | submit_bos | r __kvmalloc_node_noprof |
| FUZZY_MAX | 3 | nr_bos | 131072 |
| PARAM_COMPARE | 0 | submit->ctx->mmu | == $0->mmu_context |
| HARD_MAX | 3 | nr_bos | 131072 |
| MEM_ZERO | 0 | &submit->sched_job | |
| USER_DATA | 0 | submit->cmdbuf.size | 8,16-131080[c] |
| USER_DATA | 0 | submit->exec_state | 0[u] |
| USER_DATA | 0 | submit->flags | 0-14[u] |
| USER_DATA | 0 | submit->nr_pmrs | 0-128[u] |
| USER_DATA | 2 | submit_bos->flags | 0-u32max |
| USER_DATA | 2 | submit_bos->handle | 0-u32max |
| USER_DATA | 2 | submit_bos->presumed | 0-u64max |
| USER_DATA | 3 | nr_bos | 0-131072[u] |
| NO_OVERFLOW_SIMPLE | 0 | submit->nr_pmrs | |
| NO_OVERFLOW_SIMPLE | 0 | submit->sched_job.entity->num_sched_list | |
| UNITS | 3 | nr_bos | unit_array_size |
| USER_PTR | 2 | submit_bos |