Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c, line 130
- drivers/gpu/drm/i915/gem/i915_gem_domain.c
- drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c, line 1716
- drivers/gpu/drm/i915/gt/selftest_workarounds.c, line 217
- drivers/gpu/drm/i915/gvt/cmd_parser.c, line 3033
- drivers/gpu/drm/i915/intel_gvt.c, line 294
Smatch caller information:
drivers/gpu/drm/i915/gvt/cmd_parser.c shadow_indirect_ctx() -> i915_gem_object_set_to_cpu_domain()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.dev->dev->dma_io_tlb_pools.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | obj->mm.get_dma_page.sg_idx | 0 |
| PARAM_VALUE | 0 | obj->mm.get_dma_page.sg_pos | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->mm.get_page.sg_pos | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->mm.pages | 16,4096-ptr_max |
| PARAM_VALUE | 0 | obj->mm.region->objects.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->mm.region->objects.lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | obj->mm.region->region_private->bdev->lru_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->mm.res | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->mm.res->bo | 0 |
| PARAM_VALUE | 0 | obj->mm.res->bus.addr | 0 |
| PARAM_VALUE | 0 | obj->mm.res->bus.is_iomem | 0 |
| PARAM_VALUE | 0 | obj->mm.res->bus.offset | 0 |
| PARAM_VALUE | 0 | obj->mm.rsgt | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->obj_link.next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->read_domains | 1,128 |
| PARAM_VALUE | 0 | obj->ttm.cached_io_rsgt | 1-u64max |
| PARAM_VALUE | 1 | write | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | obj->base.resv | |
| HALF_LOCKED2 | &vgpu->vgpu_lock |
drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c i915_gem_begin_cpu_access() -> i915_gem_object_set_to_cpu_domain()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base._resv.lock.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | obj->base.resv->lock.ctx | 0 |
| PARAM_VALUE | 0 | obj->obj_link.next | 159553267526410392,5253578350464016536,7921385115042738328 |
| PARAM_VALUE | 0 | obj->ops->adjust_lru | 0,4429992584214396928 |
| PARAM_VALUE | 0 | obj->ops->migrate | 0,1598800189128794112 |
| PARAM_VALUE | 0 | obj->ops->mmap_offset | 0,446096312805322752 |
| PARAM_VALUE | 0 | obj->ops->mmap_ops | 0,4661964159669587968 |
| PARAM_VALUE | 0 | obj->ops->pread | 0,7401744485809000448,8891031690581864448 |
| PARAM_VALUE | 0 | obj->ops->pwrite | 0,2096045760474890240,2800713264639791104 |
| PARAM_VALUE | 0 | obj->ops->release | 0,3174634900601434112,4896540049717575680,7664132821884952576,8446337041868943360,8964248445451067392 |
| PARAM_VALUE | 0 | obj->ops->shrink | 0,6389040613935005696,6985639316486627328 |
| PARAM_VALUE | 0 | obj->ops->truncate | 0,75591691694981120,2837679352212496384 |
| DATA_SOURCE | 0 | obj | r dma_buf_to_obj |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | obj->base.resv |
drivers/gpu/drm/i915/gem/i915_gem_context.c read_from_scratch() -> i915_gem_object_set_to_cpu_domain()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.dev->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | obj->base.import_attach->dmabuf->priv->comp.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->fences->max_fences | 0-4294967295 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | obj->base.resv->lock.ctx | 0 |
| PARAM_VALUE | 0 | obj->cache_dirty | 0 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | obj->mm.dirty | 1 |
| PARAM_VALUE | 0 | obj->mm.get_dma_page.sg_pos | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->mm.mapping | 0,18379471554275704832-18379471556423188479,18446612682070032384-18446612684217516031 |
| PARAM_VALUE | 0 | obj->mm.region->objects.lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | obj->mm.region->objects.lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->mm.region->objects.lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | obj->mm.region->objects.lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | obj->mm.region->region_private->bdev->lru_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->mm.region_link.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->obj_link.next | 899363081031504024,8116942592190632088 |
| PARAM_VALUE | 0 | obj->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->migrate | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->mmap_offset | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->mmap_ops | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->pread | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->pwrite | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->release | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->shrink | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->truncate | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->read_domains | 1,128 |
| PARAM_VALUE | 0 | obj->vma.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma.list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma.list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->write_domain | 0,2-65534 |
| PARAM_VALUE | 1 | write | 0 |
| CAPPED_DATA | 0 | obj->base.resv->fences | 1 |
| DATA_SOURCE | 0 | obj | $2 |
| LOCK2 | 0 | obj->base.resv |
drivers/gpu/drm/i915/gem/i915_gem_domain.c i915_gem_object_prepare_read() -> i915_gem_object_set_to_cpu_domain()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base._resv.lock.ww_class->is_wait_die | 0-1 |
| PARAM_VALUE | 0 | obj->base.dev->anon_inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | obj->base.dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | obj->base.dev->anon_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | obj->base.dev->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | obj->base.funcs->evict | 0 |
| PARAM_VALUE | 0 | obj->base.funcs->free | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->mmap | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->open | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->pin | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->rss | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->vmap | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 0 | obj->ops->adjust_lru | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->delayed_free | 0,5926832556445249536 |
| PARAM_VALUE | 0 | obj->ops->dmabuf_export | 0,2825331963569180672 |
| PARAM_VALUE | 0 | obj->ops->flags | 0,2,6,8,26 |
| PARAM_VALUE | 0 | obj->ops->get_pages | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->migrate | 0,1598800189128794112 |
| PARAM_VALUE | 0 | obj->ops->mmap_offset | 0,446096312805322752 |
| PARAM_VALUE | 0 | obj->ops->mmap_ops | 0,4661964159669587968 |
| PARAM_VALUE | 0 | obj->ops->name | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->pread | 0,7401744485809000448,8891031690581864448 |
| PARAM_VALUE | 0 | obj->ops->put_pages | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->pwrite | 0,2096045760474890240,2800713264639791104 |
| PARAM_VALUE | 0 | obj->ops->release | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->shrink | 0,6389040613935005696,6985639316486627328 |
| PARAM_VALUE | 0 | obj->ops->truncate | 0,75591691694981120,2837679352212496384 |
| PARAM_VALUE | 0 | obj->ops->unmap_virtual | 0,5981797077985529856 |
| PARAM_VALUE | 0 | *obj->mm.tlb | 0-4294967295 |
| PARAM_VALUE | 1 | write | 0 |
| BUF_SIZE | 0 | obj | (-1),1-s32max |
| BUF_SIZE | 0 | obj | (-1),1-s32max |
| DATA_SOURCE | 0 | obj | $0 |
| BIT_INFO | 0 | obj->cache_coherent | 0x0,0x3 |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->num_crtcs | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.size | |
| HALF_LOCKED2 | 0 | obj->base.resv |
drivers/gpu/drm/i915/gem/i915_gem_domain.c i915_gem_object_prepare_write() -> i915_gem_object_set_to_cpu_domain()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base._resv.lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 0 | obj->base.funcs->evict | 0 |
| PARAM_VALUE | 0 | obj->base.funcs->free | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->mmap | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->open | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->pin | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->rss | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.funcs->vmap | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 0 | obj->ops->adjust_lru | 0,4429992584214396928 |
| PARAM_VALUE | 0 | obj->ops->delayed_free | 0,5926832556445249536 |
| PARAM_VALUE | 0 | obj->ops->dmabuf_export | 0,2825331963569180672 |
| PARAM_VALUE | 0 | obj->ops->flags | 0,2,6,8,26 |
| PARAM_VALUE | 0 | obj->ops->get_pages | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->migrate | 0,1598800189128794112 |
| PARAM_VALUE | 0 | obj->ops->mmap_offset | 0,446096312805322752 |
| PARAM_VALUE | 0 | obj->ops->mmap_ops | 0,4661964159669587968 |
| PARAM_VALUE | 0 | obj->ops->name | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->pread | 0,7401744485809000448,8891031690581864448 |
| PARAM_VALUE | 0 | obj->ops->put_pages | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->pwrite | 0,2096045760474890240,2800713264639791104 |
| PARAM_VALUE | 0 | obj->ops->release | 0,3174634900601434112,4896540049717575680,7664132821884952576,8446337041868943360,8964248445451067392 |
| PARAM_VALUE | 0 | obj->ops->shrink | 0,6389040613935005696,6985639316486627328 |
| PARAM_VALUE | 0 | obj->ops->truncate | 0,75591691694981120,2837679352212496384 |
| PARAM_VALUE | 0 | obj->ops->unmap_virtual | 0,5981797077985529856 |
| PARAM_VALUE | 1 | write | 1 |
| DATA_SOURCE | 0 | obj | $0 |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->mode_config.num_colorop | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->mode_config.num_crtc | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->mode_config.num_total_plane | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.dev->num_crtcs | |
| NO_OVERFLOW_SIMPLE | 0 | obj->base.size | |
| HALF_LOCKED2 | 0 | obj->base.resv |
drivers/gpu/drm/i915/gem/i915_gem_domain.c i915_gem_set_domain_ioctl() -> i915_gem_object_set_to_cpu_domain()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->obj_link.next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->ops->flags | 0,2,6,8,26 |
| PARAM_VALUE | 0 | obj->userptr.notifier.mm | 0 |
| CAPPED_DATA | 1 | write | 1 |
| DATA_SOURCE | 0 | obj | r i915_gem_object_lookup |
| USER_DATA | 1 | write | 0-1[c][u] |
| LOCK2 | 0 | obj->base.resv |
drivers/gpu/drm/i915/gt/intel_workarounds.c check_whitelist() -> i915_gem_object_set_to_cpu_domain()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | obj | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->base.resv->fences->max_fences | 0-4294967295 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | obj->base.resv->lock.base.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | obj->base.resv->lock.ctx | 0 |
| PARAM_VALUE | 0 | obj->gvt_info->obj->vgpu->cache_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | obj->mm.dirty | 1 |
| PARAM_VALUE | 0 | obj->mm.region->objects.lock->first_waiter->task->blocked_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | obj->obj_link.next | 1348751653119840408,3925582039501209752,8116942592190632088 |
| PARAM_VALUE | 0 | obj->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma.list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | obj->vma.list.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | write | 0 |
| DATA_SOURCE | 0 | obj | r read_nonprivs |
| LOCK2 | 0 | obj->base.resv |