Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- drivers/gpu/drm/i915/gem/i915_gem_pm.c, line 219
- drivers/gpu/drm/i915/gem/i915_gem_shmem.c, line 123
- drivers/gpu/drm/i915/gem/i915_gem_shrinker.c
- drivers/gpu/drm/i915/gem/selftests/huge_pages.c
- drivers/gpu/drm/i915/i915_debugfs.c
- drivers/gpu/drm/i915/i915_gem_gtt.c, line 47
- drivers/gpu/drm/i915/i915_trace.h, line 38
Smatch caller information:
drivers/gpu/drm/i915/gem/i915_gem_pm.c i915_gem_freeze_late() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->type | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | u64max |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | u32max |
| BUF_SIZE | 1 | i915 | (-1),424,1216 |
| BUF_SIZE | 1 | i915 | (-1),424,1216 |
| DATA_SOURCE | 1 | i915 | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/i915/i915_debugfs.c i915_drop_caches_set() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->gt | 4096-ptr_max |
| PARAM_VALUE | 2 | target | 9223372036854775807 |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 2 |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | i915 | $0 |
| NOCHECK_CALL | |||
| LOCK2 | &attr->mutex | ||
| TYPE_LOCK | (struct simple_attr)->mutex |
drivers/gpu/drm/i915/i915_debugfs.c i915_drop_caches_set() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->gt | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 2 | target | 9223372036854775807 |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 1 |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | i915 | $0 |
| NOCHECK_CALL | |||
| LOCK2 | &attr->mutex | ||
| TYPE_LOCK | (struct simple_attr)->mutex |
drivers/gpu/drm/i915/i915_gem_gtt.c i915_gem_gtt_prepare_pages() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 2 | target | 0-4503599627370495 |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | target | unit_page |
| HALF_LOCKED2 | obj->base.resv |
drivers/gpu/drm/i915/gem/i915_gem_shmem.c shmem_sg_alloc_table() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->drm.dev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->drm.dev->dma_mask | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | 0-u32max |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| CAPPED_DATA | 1 | i915->drm.dev | 1 |
| DATA_SOURCE | 1 | i915 | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | target | 0-u32max[c] |
drivers/gpu/drm/i915/gem/i915_gem_object.c igt_shrink_thp() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->drm.huge_mnt | 1-u64max |
| PARAM_VALUE | 1 | i915->drm.primary | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->drm.primary->dev->driver->fops->owner->refcnt.counter | 0-s32max |
| PARAM_VALUE | 1 | i915->runtime_pm.debug.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->type | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | u64max |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 7 |
| BUF_SIZE | 1 | i915 | (-1),424,1216 |
| BUF_SIZE | 1 | i915 | (-1),424,1216 |
| DATA_SOURCE | 1 | i915 | $0 |
| NOCHECK_CALL |
drivers/gpu/drm/i915/gem/i915_gem_object.c igt_shrink_thp() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->drm.huge_mnt | 1-u64max |
| PARAM_VALUE | 1 | i915->drm.primary | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->drm.primary->dev->driver->fops->owner->refcnt.counter | 0-s32max |
| PARAM_VALUE | 1 | i915->mm.obj_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | i915->runtime_pm.debug.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.runtime_status | 0,2 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->type | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | u64max |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 23 |
| BUF_SIZE | 1 | i915 | (-1),424,1216 |
| BUF_SIZE | 1 | i915 | (-1),424,1216 |
| DATA_SOURCE | 1 | i915 | $0 |
| NOCHECK_CALL |
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c i915_gem_shrink_all() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->drm.anon_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 1 | i915->drm.anon_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->type | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | u64max |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 3 |
| BUF_SIZE | 1 | i915 | s32min-(-1),1-s32max |
| BUF_SIZE | 1 | i915 | s32min-(-1),1-s32max |
| DATA_SOURCE | 1 | i915 | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | i915->uncore.fifo_count | 0-127,u32max |
| HALF_LOCKED2 | &attr->mutex |
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c i915_gem_shrinker_oom() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->type | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | u64max |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 19 |
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c i915_gem_shrinker_scan() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 3 | nr_scanned | 273323331379130384,2304079381943222288,3067962247664386064,4213384192971792400 |
| PARAM_VALUE | 3 | *nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 3 |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | target | 0-u64max |
| NO_OVERFLOW_SIMPLE | 2 | target | |
| UNITS | 1 | i915 | unit_byte |
| HALF_LOCKED2 | global &bch_register_lock |
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c i915_gem_shrinker_scan() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->mm.obj_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | i915->runtime_pm.debug.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.debug.list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.debug.quarantine.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.debug.quarantine.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->type | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | 1-u64max |
| PARAM_VALUE | 3 | nr_scanned | 273323331379130384,2304079381943222288,3067962247664386064,4213384192971792400 |
| PARAM_VALUE | 3 | *nr_scanned | 0-18446744073709551614 |
| PARAM_VALUE | 4 | shrink | 23 |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | i915 | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | target | 1-u64max |
| NO_OVERFLOW_SIMPLE | 3 | *nr_scanned | |
| UNITS | 1 | i915 | unit_byte |
| HALF_LOCKED2 | global &bch_register_lock |
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c i915_gem_shrinker_vmap() -> i915_gem_shrink()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ww | 0 |
| PARAM_VALUE | 1 | i915 | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev | 4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->class | 0,4096-ptr_max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.request | 0-4 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.runtime_error | s32min-(-17),(-15)-(-14),(-12),(-10)-s32max |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 1 | i915->runtime_pm.kdev->type | 0,4096-ptr_max |
| PARAM_VALUE | 2 | target | u64max |
| PARAM_VALUE | 3 | nr_scanned | 0 |
| PARAM_VALUE | 4 | shrink | 11 |