Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c, line 41
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, line 366
- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c, line 161
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_copy_mem_to_mem() -> amdgpu_copy_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->mman.buffer_funcs_enabled | 1 |
| PARAM_VALUE | 0 | adev->mman.move_entities | 4096-ptr_max |
| PARAM_VALUE | 1 | entity | 4096-ptr_max |
| PARAM_VALUE | 1 | entity->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | entity->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | entity->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | entity->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | entity->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | entity->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | entity->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 5 | resv->fences | 4096-ptr_max |
| PARAM_VALUE | 5 | resv->lock.ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 6 | fence | 9104788141293854720 |
| PARAM_VALUE | 7 | vm_needs_flush | 1 |
| BUF_SIZE | 5 | resv | (-1),176 |
| BUF_SIZE | 5 | resv | (-1),176 |
| CAPPED_DATA | 1 | &entity->lock | 1 |
| CAPPED_DATA | 5 | resv->fences | 1 |
| DATA_SOURCE | 0 | adev | $0 |
| DATA_SOURCE | 1 | entity | $1 |
| DATA_SOURCE | 5 | resv | $6 |
| BIT_INFO | 8 | copy_flags | 0x0,0x7fff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 4 | byte_count | 0-268435455[c] |
| UNITS | 4 | byte_count | unit_byte |
| LOCK2 | 1 | &entity->lock | |
| HALF_LOCKED2 | 5 | resv | |
| TYPE_LOCK | (struct amdgpu_ttm_buffer_entity)->lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c amdgpu_benchmark_do_move() -> amdgpu_copy_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->benchmark_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adev->benchmark_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | adev->benchmark_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | adev->benchmark_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | adev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | adev->dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | adev->gfx.rlc.cs_data->section->reg_count | 0-6,8,11,34,55-56,66,98-99,155,157-158,203,212,215,233,272,274,282,290,488 |
| PARAM_VALUE | 0 | adev->gfx.rlc.cs_data->section->reg_index | 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472 |
| PARAM_VALUE | 0 | adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896 |
| PARAM_VALUE | 0 | adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | adev->mman.bdev.pool.dev->iommu->attach_deferred | 0-1 |
| PARAM_VALUE | 0 | adev->mman.bdev.pool.dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | adev->mman.buffer_funcs | 1-u64max |
| PARAM_VALUE | 0 | adev->mman.default_entity.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adev->mman.default_entity.lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | adev->mman.default_entity.lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | adev->mman.default_entity.lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | adev->mman.default_entity.lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | adev->mman.default_entity.lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | entity | 4096-ptr_max |
| PARAM_VALUE | 1 | entity->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | entity->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | entity->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 5 | resv | 0 |
| PARAM_VALUE | 6 | fence | 5176086081002426368 |
| PARAM_VALUE | 7 | vm_needs_flush | 0 |
| PARAM_VALUE | 8 | copy_flags | 0 |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | &adev->mman.default_entity.lock | 1 |
| DATA_SOURCE | 0 | adev | $0 |
| DATA_SOURCE | 2 | src_offset | $2 |
| DATA_SOURCE | 3 | dst_offset | $3 |
| DATA_SOURCE | 4 | byte_count | $1 |
| LOCK2 | &attr->mutex | ||
| LOCK2 | 0 | &adev->benchmark_mutex | |
| LOCK2 | 0 | &adev->mman.default_entity.lock | |
| TYPE_LOCK | (struct amdgpu_device)->benchmark_mutex | ||
| TYPE_LOCK | (struct amdgpu_ttm_buffer_entity)->lock | ||
| TYPE_LOCK | (struct simple_attr)->mutex |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c svm_migrate_copy_memory_gart() -> amdgpu_copy_buffer()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->mman.buffer_funcs_scheds | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->mman.move_entities | 4096-ptr_max |
| PARAM_VALUE | 1 | entity | 4096-ptr_max |
| PARAM_VALUE | 1 | entity->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | entity->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 1 | entity->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 1 | entity->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 1 | entity->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | entity->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 1 | entity->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 4 | byte_count | 4096-4194304 |
| PARAM_VALUE | 5 | resv | 0 |
| PARAM_VALUE | 6 | fence | 6718202974423130112 |
| PARAM_VALUE | 7 | vm_needs_flush | 1 |
| PARAM_VALUE | 8 | copy_flags | 0 |
| BUF_SIZE | 1 | entity | 5696 |
| BUF_SIZE | 1 | entity | 5696 |
| CAPPED_DATA | 1 | &entity->lock | 1 |
| CAPPED_DATA | 4 | byte_count | 1 |
| DATA_SOURCE | 0 | adev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | byte_count | unit_byte |
| LOCK2 | &prange->migrate_mutex | ||
| LOCK2 | 1 | &entity->lock | |
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &process_info->lock | ||
| HALF_LOCKED2 | &svms->lock | ||
| TYPE_LOCK | (struct amdgpu_ttm_buffer_entity)->lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex |