Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/gpu/drm/i915/gvt/aperture_gm.c, line 71
- drivers/gpu/drm/i915/i915_vma.c, line 910
- drivers/gpu/drm/i915/intel_gvt.c, line 297
- drivers/gpu/drm/i915/selftests/i915_gem_evict.c
- drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
Smatch caller information:
drivers/gpu/drm/i915/gvt/aperture_gm.c alloc_gm() -> i915_gem_gtt_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vm->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | ww | 0 |
| PARAM_VALUE | 2 | node | 4096-ptr_max |
| PARAM_VALUE | 3 | size | 67108864,134217728,268435456,402653184,536870912,1073741824,2147483648 |
| PARAM_VALUE | 4 | alignment | 4096 |
| PARAM_VALUE | 5 | color | u64max |
| PARAM_VALUE | 6 | start | 0,4096-u64max |
| PARAM_VALUE | 7 | end | 0,4096-u64max |
| PARAM_VALUE | 8 | flags | 8,32 |
| BUF_SIZE | 2 | node | 176 |
| FUZZY_MAX | 6 | start | 0 |
| FUZZY_MAX | 8 | flags | 32 |
| BIT_INFO | 6 | start | 0x0,0xfffffffffffff000 |
| BIT_INFO | 6 | start | 0x0,0xfffffffffffff000 |
| BIT_INFO | 7 | end | 0x0,0xfffffffffffff000 |
| BIT_INFO | 7 | end | 0x0,0xfffffffffffff000 |
| BIT_INFO | 8 | flags | 0x0,0x28 |
| HARD_MAX | 8 | flags | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | size | unit_byte |
| LOCK2 | >->ggtt->vm.mutex | ||
| LOCK2 | &gvt->lock | ||
| TYPE_LOCK | (struct i915_address_space)->mutex | ||
| TYPE_LOCK | (struct intel_gvt)->lock |
drivers/gpu/drm/i915/i915_vma.c i915_vma_insert() -> i915_gem_gtt_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vm | 4096-ptr_max |
| PARAM_VALUE | 0 | vm->gt->uncore->rpm->kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | vm->i915 | 4096-ptr_max |
| PARAM_VALUE | 0 | vm->i915->drm.anon_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | vm->i915->drm.anon_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | vm->i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 0 | vm->i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 0 | vm->i915->runtime_pm.kdev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 0 | vm->i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | vm->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vm->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | vm->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | vm->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 2 | node | 4096-ptr_max |
| PARAM_VALUE | 4 | alignment | 65536-u64max |
| PARAM_VALUE | 5 | color | 0-63 |
| PARAM_VALUE | 6 | start | 0,4096-u64max |
| BUF_SIZE | 0 | vm | (-1),1208 |
| BUF_SIZE | 0 | vm | (-1),1208 |
| DATA_SOURCE | 1 | ww | $1 |
| DATA_SOURCE | 3 | size | $2 [m] |
| DATA_SOURCE | 4 | alignment | $3 [m] |
| DATA_SOURCE | 8 | flags | $4 |
| FUZZY_MAX | 5 | color | 0 |
| FUZZY_MAX | 6 | start | 0 |
| BIT_INFO | 6 | start | 0x0,0xfffffffffffff000 |
| BIT_INFO | 6 | start | 0x0,0xfffffffffffff000 |
| BIT_INFO | 8 | flags | 0x0,0xffffffffffffff7f |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | node->size | 1-2149580798[c] |
| USER_DATA | 2 | node->start | 0-u64max[c] |
| USER_DATA | 3 | size | 1-2149580798[c] |
| USER_DATA | 4 | alignment | 65537-u64max[u] |
| USER_DATA | 6 | start | 0,4096-u64max[c] |
| USER_DATA | 8 | flags | 0-u32max |
| NO_OVERFLOW_SIMPLE | 0 | vm->total | |
| NO_OVERFLOW_SIMPLE | 1 | ww->contended->base.size | |
| NO_OVERFLOW_SIMPLE | 7 | end | |
| UNITS | 3 | size | unit_byte |
| UNITS | 7 | end | unit_byte |
| LOCK2 | 0 | &vm->mutex | |
| HALF_LOCKED2 | >->perf.lock | ||
| HALF_LOCKED2 | __flags | ||
| HALF_LOCKED2 | bo->base.resv | ||
| HALF_LOCKED2 | ce->timeline->hwsp_ggtt->obj->base.resv | ||
| HALF_LOCKED2 | engine->legacy.ring->vma->obj->base.resv | ||
| HALF_LOCKED2 | obj->base.resv | ||
| HALF_LOCKED2 | ppgtt->pd->pt.base->base.resv | ||
| HALF_LOCKED2 | rpcs->base.resv | ||
| HALF_LOCKED2 | timeline->hwsp_ggtt->obj->base.resv | ||
| HALF_LOCKED2 | vma->obj->base.resv | ||
| HALF_LOCKED2 | vma->obj->base.resv | ||
| TYPE_LOCK | (struct i915_address_space)->mutex |
drivers/gpu/drm/i915/i915_gem_gtt.c igt_gtt_insert() -> i915_gem_gtt_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vm | 4096-ptr_max |
| PARAM_VALUE | 0 | vm->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | ww | 0 |
| PARAM_VALUE | 2 | node | 4306207141745238016 |
| PARAM_VALUE | 2 | node->__subtree_last | 0 |
| PARAM_VALUE | 2 | node->color | 0,u64max |
| PARAM_VALUE | 2 | node->flags | 0 |
| PARAM_VALUE | 2 | node->hole_size | 0 |
| PARAM_VALUE | 2 | node->hole_stack.next | 0 |
| PARAM_VALUE | 2 | node->hole_stack.prev | 0 |
| PARAM_VALUE | 2 | node->mm | 0 |
| PARAM_VALUE | 2 | node->node_list.next | 0 |
| PARAM_VALUE | 2 | node->node_list.prev | 0 |
| PARAM_VALUE | 2 | node->rb.__rb_parent_color | 0 |
| PARAM_VALUE | 2 | node->rb.rb_left | 0 |
| PARAM_VALUE | 2 | node->rb.rb_right | 0 |
| PARAM_VALUE | 2 | node->rb_hole_addr.__rb_parent_color | 0 |
| PARAM_VALUE | 2 | node->rb_hole_addr.rb_left | 0 |
| PARAM_VALUE | 2 | node->rb_hole_addr.rb_right | 0 |
| PARAM_VALUE | 2 | node->rb_hole_size.__rb_parent_color | 0 |
| PARAM_VALUE | 2 | node->rb_hole_size.rb_left | 0 |
| PARAM_VALUE | 2 | node->rb_hole_size.rb_right | 0 |
| PARAM_VALUE | 2 | node->stack | 0 |
| PARAM_VALUE | 2 | node->subtree_max_hole | 0 |
| PARAM_VALUE | 3 | size | 1-u64max |
| PARAM_VALUE | 5 | color | u64max |
| PARAM_VALUE | 6 | start | 0,4096-u64max |
| PARAM_VALUE | 8 | flags | 0 |
| NO_OVERFLOW_SIMPLE | 2 | node->size | |
| NO_OVERFLOW_SIMPLE | 2 | node->start | |
| UNITS | 3 | size | unit_byte |
| UNITS | 7 | end | unit_byte |
| LOCK2 | &ggtt->vm.mutex | ||
| TYPE_LOCK | (struct i915_address_space)->mutex |
drivers/gpu/drm/i915/i915_gem_gtt.c insert_gtt_with_resource() -> i915_gem_gtt_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vm | 4096-ptr_max |
| PARAM_VALUE | 0 | vm->mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vm->mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | vm->mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | vm->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | ww | 0 |
| PARAM_VALUE | 2 | node | 4096-ptr_max |
| PARAM_VALUE | 4 | alignment | 0 |
| PARAM_VALUE | 6 | start | 0 |
| PARAM_VALUE | 8 | flags | 0 |
| CAPPED_DATA | 0 | &vm->mutex | 1 |
| NO_OVERFLOW_SIMPLE | 0 | vm->total | |
| NO_OVERFLOW_SIMPLE | 3 | size | |
| NO_OVERFLOW_SIMPLE | 7 | end | |
| UNITS | 3 | size | unit_byte |
| UNITS | 7 | end | unit_byte |
| LOCK2 | 0 | &vm->mutex | |
| TYPE_LOCK | (struct i915_address_space)->mutex |
drivers/gpu/drm/i915/i915_gem_evict.c igt_evict_contexts() -> i915_gem_gtt_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vm->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | ww | 0 |
| PARAM_VALUE | 2 | node | 1498394067764207616 |
| PARAM_VALUE | 3 | size | 16777216 |
| PARAM_VALUE | 4 | alignment | 0 |
| PARAM_VALUE | 5 | color | u64max |
| PARAM_VALUE | 6 | start | 0 |
| PARAM_VALUE | 8 | flags | 1 |
| MEM_ZERO | 2 | node | |
| UNITS | 7 | end | unit_byte |
| LOCK2 | &ggtt->vm.mutex | ||
| TYPE_LOCK | (struct i915_address_space)->mutex |
drivers/gpu/drm/i915/i915_gem_evict.c igt_evict_contexts() -> i915_gem_gtt_insert()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | vm->mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | vm->mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | vm->total | 1-u64max |
| PARAM_VALUE | 1 | ww | 0 |
| PARAM_VALUE | 2 | node | 4096-ptr_max |
| PARAM_VALUE | 3 | size | 1048576 |
| PARAM_VALUE | 4 | alignment | 0 |
| PARAM_VALUE | 5 | color | u64max |
| PARAM_VALUE | 6 | start | 0 |
| PARAM_VALUE | 7 | end | 1-u64max |
| PARAM_VALUE | 8 | flags | 1 |
| CAPPED_DATA | 7 | end | 1 |
| CAPPED_DATA | 7 | end | 1 |
| UNITS | 7 | end | unit_byte |
| LOCK2 | &ggtt->vm.mutex | ||
| TYPE_LOCK | (struct i915_address_space)->mutex |