Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c svm_migrate_ram_to_vram() -> svm_range_get_node_by_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prange | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->actual_loc | 0-4294967294 |
| PARAM_VALUE | 0 | prange->migrate_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | prange->migrate_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate | 0,4096-ptr_max |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate_finish | 0,2193403108630056960 |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate_start | 0,7606346720449052672 |
| PARAM_VALUE | 1 | gpu_id | 1-4294967294 |
| CAPPED_DATA | 0 | prange->actual_loc | 1 |
| CAPPED_DATA | 0 | prange->start | 1 |
| CAPPED_DATA | 1 | gpu_id | 1 |
| DATA_SOURCE | 0 | prange | $0 |
| DATA_SOURCE | 1 | gpu_id | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &svms->lock | ||
| LOCK2 | 0 | &prange->migrate_mutex | |
| HALF_LOCKED2 | &process_info->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex | ||
| TYPE_LOCK | (struct svm_range_list)->lock |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c svm_migrate_vram_to_ram() -> svm_range_get_node_by_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prange | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->actual_loc | 1-u32max |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate | 0,4096-ptr_max |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate_finish | 0,2193403108630056960 |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate_start | 0,7606346720449052672 |
| PARAM_VALUE | 1 | gpu_id | 1-u32max |
| CAPPED_DATA | 0 | prange->start | 1 |
| DATA_SOURCE | 0 | prange | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &prange->migrate_mutex | |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &p->svms.lock | ||
| HALF_LOCKED2 | &process_info->lock | ||
| HALF_LOCKED2 | &svms->lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c svm_range_best_prefetch_location() -> svm_range_get_node_by_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prange | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->migrate_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | prange->migrate_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate | 0,4096-ptr_max |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate_finish | 0,2193403108630056960 |
| PARAM_VALUE | 0 | prange->notifier.ops->invalidate_start | 0,7606346720449052672 |
| PARAM_VALUE | 0 | prange->prefetch_loc | 1-4294967294 |
| PARAM_VALUE | 1 | gpu_id | 1-4294967294 |
| DATA_SOURCE | 0 | prange | $0 |
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &process_info->lock | ||
| LOCK2 | &svms->lock | ||
| LOCK2 | 0 | &prange->migrate_mutex | |
| HALF_LOCKED2 | &p->mutex | ||
| TYPE_LOCK | (struct amdkfd_process_info)->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex | ||
| TYPE_LOCK | (struct svm_range_list)->lock |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c svm_range_best_restore_location() -> svm_range_get_node_by_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prange | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->migrate_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | prange->migrate_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | prange->preferred_loc | 1-4294967294 |
| PARAM_VALUE | 0 | prange->start | 0-35184372088831 |
| PARAM_VALUE | 0 | prange->svms | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->svms->deferred_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | gpu_id | 1-4294967294 |
| DATA_SOURCE | 0 | prange | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &svms->lock | ||
| LOCK2 | 0 | &prange->migrate_mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex | ||
| TYPE_LOCK | (struct svm_range_list)->lock |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_svm.c svm_range_best_restore_location() -> svm_range_get_node_by_id()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prange | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->actual_loc | 1-u32max |
| PARAM_VALUE | 0 | prange->bitmap_access | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->bitmap_aip | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->migrate_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | prange->migrate_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | prange->migrate_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | prange->migrate_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | prange->preferred_loc | 1-u32max |
| PARAM_VALUE | 0 | prange->start | 0-35184372088831 |
| PARAM_VALUE | 0 | prange->svms | 4096-ptr_max |
| PARAM_VALUE | 0 | prange->svms->deferred_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | gpu_id | 1-u32max |
| CAPPED_DATA | 0 | prange->preferred_loc | 1 |
| DATA_SOURCE | 0 | prange | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &svms->lock | ||
| LOCK2 | 0 | &prange->migrate_mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex | ||
| TYPE_LOCK | (struct svm_range_list)->lock |